File tree Expand file tree Collapse file tree 4 files changed +40
-0
lines changed
Expand file tree Collapse file tree 4 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 44 "additionalType" : {"subPropertyOf" : " http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }
55 }
66 },
7+ "https://schema.org/" : {
8+ "properties" : {
9+ "additionalType" : {"subPropertyOf" : " http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }
10+ }
11+ },
712 "http://microformats.org/profile/hcard" : {}
813}
Original file line number Diff line number Diff line change 848848
849849 expect ( parse ( md , vocab_expansion : true ) ) . to be_equivalent_graph ( ttl , logger : @logger )
850850 end
851+
852+ it "always expands (schemas)" do
853+ md = %q(
854+ <div itemscope='' itemtype='https://schema.org/Person'>
855+ <link itemprop='additionalType' href='http://xmlns.com/foaf/0.1/Person' />
856+ </div>
857+ )
858+ ttl = %q(
859+ [ a <https://schema.org/Person>, <http://xmlns.com/foaf/0.1/Person>;
860+ <https://schema.org/additionalType> <http://xmlns.com/foaf/0.1/Person>
861+ ] .
862+ )
863+
864+ expect ( parse ( md , vocab_expansion : true ) ) . to be_equivalent_graph ( ttl , logger : @logger )
865+ end
851866 end
852867
853868 context "test-files" , skip : true do
Original file line number Diff line number Diff line change 858858
859859 expect ( parse ( md , vocab_expansion : true ) ) . to be_equivalent_graph ( ttl , logger : @logger )
860860 end
861+
862+ it "always expands (schemas)" do
863+ md = %q(
864+ <div itemscope='' itemtype='https://schema.org/Person'>
865+ <link itemprop='additionalType' href='http://xmlns.com/foaf/0.1/Person' />
866+ </div>
867+ )
868+ ttl = %q(
869+ [ a <https://schema.org/Person>, <http://xmlns.com/foaf/0.1/Person>;
870+ <https://schema.org/additionalType> <http://xmlns.com/foaf/0.1/Person>
871+ ] .
872+ )
873+
874+ expect ( parse ( md , vocab_expansion : true ) ) . to be_equivalent_graph ( ttl , logger : @logger )
875+ end
861876 end
862877
863878 context "test-files" do
Original file line number Diff line number Diff line change 1212 "additionalType" : {"subPropertyOf" : " http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }
1313 }
1414 },
15+ "https://schema.org/" : {
16+ "properties" : {
17+ "additionalType" : {"subPropertyOf" : " http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }
18+ }
19+ },
1520 "http://microformats.org/profile/hcard" : {},
1621 "http://vocabulary.unordered/" : {
1722 "propertyURI" : " vocabulary" ,
You can’t perform that action at this time.
0 commit comments