Skip to content

Commit

Permalink
Finish 3.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Mar 15, 2021
2 parents b045f19 + 9d0a9e6 commit a06cc04
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.2
3.1.3
5 changes: 5 additions & 0 deletions etc/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {}
}
15 changes: 15 additions & 0 deletions spec/rdfa_reader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<div itemscope='' itemtype='https://schema.org/Person'>
<link itemprop='additionalType' href='http://xmlns.com/foaf/0.1/Person' />
</div>
)
ttl = %q(
[ a <https://schema.org/Person>, <http://xmlns.com/foaf/0.1/Person>;
<https://schema.org/additionalType> <http://xmlns.com/foaf/0.1/Person>
] .
)

expect(parse(md, vocab_expansion: true)).to be_equivalent_graph(ttl, logger: @logger)
end
end

context "test-files", skip: true do
Expand Down
15 changes: 15 additions & 0 deletions spec/reader_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
<div itemscope='' itemtype='https://schema.org/Person'>
<link itemprop='additionalType' href='http://xmlns.com/foaf/0.1/Person' />
</div>
)
ttl = %q(
[ a <https://schema.org/Person>, <http://xmlns.com/foaf/0.1/Person>;
<https://schema.org/additionalType> <http://xmlns.com/foaf/0.1/Person>
] .
)

expect(parse(md, vocab_expansion: true)).to be_equivalent_graph(ttl, logger: @logger)
end
end

context "test-files" do
Expand Down
5 changes: 5 additions & 0 deletions spec/test-files/test-registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a06cc04

Please sign in to comment.