diff --git a/VERSION b/VERSION index ef538c2..ff365e0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.2 +3.1.3 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",