From 4357f107c20b5a2f3e039e5562837be18c4e56bc Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Mon, 15 Mar 2021 15:01:12 -0700 Subject: [PATCH 1/2] Update registry to expand https://schema.org/additionalType in addition to http://schema.org/additionalType. --- etc/registry.json | 5 +++++ spec/rdfa_reader_spec.rb | 15 +++++++++++++++ spec/reader_spec.rb | 15 +++++++++++++++ spec/test-files/test-registry.json | 5 +++++ 4 files changed, 40 insertions(+) diff --git a/etc/registry.json b/etc/registry.json index b708921..36739a2 100644 --- a/etc/registry.json +++ b/etc/registry.json @@ -4,5 +4,10 @@ "additionalType": {"subPropertyOf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"} } }, + "https://schema.org/": { + "properties": { + "additionalType": {"subPropertyOf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"} + } + }, "http://microformats.org/profile/hcard": {} } diff --git a/spec/rdfa_reader_spec.rb b/spec/rdfa_reader_spec.rb index a9a43cb..15058e2 100644 --- a/spec/rdfa_reader_spec.rb +++ b/spec/rdfa_reader_spec.rb @@ -848,6 +848,21 @@ expect(parse(md, vocab_expansion: true)).to be_equivalent_graph(ttl, logger: @logger) end + + it "always expands (schemas)" do + md = %q( +
+ +
+ ) + ttl = %q( + [ a , ; + + ] . + ) + + expect(parse(md, vocab_expansion: true)).to be_equivalent_graph(ttl, logger: @logger) + end end context "test-files", skip: true do diff --git a/spec/reader_spec.rb b/spec/reader_spec.rb index b56ed18..ec81af6 100644 --- a/spec/reader_spec.rb +++ b/spec/reader_spec.rb @@ -858,6 +858,21 @@ expect(parse(md, vocab_expansion: true)).to be_equivalent_graph(ttl, logger: @logger) end + + it "always expands (schemas)" do + md = %q( +
+ +
+ ) + ttl = %q( + [ a , ; + + ] . + ) + + expect(parse(md, vocab_expansion: true)).to be_equivalent_graph(ttl, logger: @logger) + end end context "test-files" do diff --git a/spec/test-files/test-registry.json b/spec/test-files/test-registry.json index 54aabf6..52d24a6 100644 --- a/spec/test-files/test-registry.json +++ b/spec/test-files/test-registry.json @@ -12,6 +12,11 @@ "additionalType": {"subPropertyOf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"} } }, + "https://schema.org/": { + "properties": { + "additionalType": {"subPropertyOf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type"} + } + }, "http://microformats.org/profile/hcard": {}, "http://vocabulary.unordered/": { "propertyURI": "vocabulary", From 9d0a9e6cdb9b9216bbd1531eecd82ac6db64bee0 Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Mon, 15 Mar 2021 15:09:58 -0700 Subject: [PATCH 2/2] Version 3.1.3. --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index ef538c2..ff365e0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.2 +3.1.3