Skip to content

Commit b211170

Browse files
committed
Add RDF/XML 1.1 test for recursive use of reifications.
1 parent 13fa5f4 commit b211170

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed

rdf/rdf11/rdf-xml/manifest.ttl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
<#rdfms-rdf-names-use-warn-002>
149149
<#rdfms-rdf-names-use-warn-003>
150150
<#rdfms-reification-required-test001>
151+
<#rdfms-reification-required-test002>
151152
<#rdfms-seq-representation-test001>
152153
<#rdfms-syntax-incomplete-test001>
153154
<#rdfms-syntax-incomplete-test002>
@@ -1432,6 +1433,15 @@ statements for all description elements.
14321433
mf:action <rdfms-reification-required/test001.rdf>;
14331434
mf:result <rdfms-reification-required/test001.nt> .
14341435

1436+
<#rdfms-reification-required-test002> a rdft:TestXMLEval;
1437+
mf:name "rdfms-reification-required-test002";
1438+
rdfs:comment """
1439+
A parser must generate inside of other reifications
1440+
""";
1441+
rdft:approval rdft:Approved;
1442+
mf:action <rdfms-reification-required/test002.rdf>;
1443+
mf:result <rdfms-reification-required/test002.nt> .
1444+
14351445
<#rdfms-seq-representation-test001> a rdft:TestXMLEval;
14361446
mf:name "rdfms-seq-representation-test001";
14371447
rdfs:comment """
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
# Copyright World Wide Web Consortium, (Massachusetts Institute of
3+
# Technology, Institut National de Recherche en Informatique et en
4+
# Automatique, Keio University).
5+
#
6+
# All Rights Reserved.
7+
#
8+
# Please see the full Copyright clause at
9+
# <http://www.w3.org/Consortium/Legal/copyright-software.html>
10+
#
11+
#####################################################################
12+
<http://example.org/b> <http://example.org/prop> <http://example.org/c> .
13+
<http://example.com/#reify2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.org/b> .
14+
<http://example.com/#reify2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://example.org/prop> .
15+
<http://example.com/#reify2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://example.org/c> .
16+
<http://example.com/#reify2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
17+
<http://example.org/a> <http://example.org/prop> <http://example.org/b> .
18+
<http://example.com/#reify> <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.org/a> .
19+
<http://example.com/#reify> <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://example.org/prop> .
20+
<http://example.com/#reify> <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://example.org/b> .
21+
<http://example.com/#reify> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> .
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!--
2+
Copyright World Wide Web Consortium, (Massachusetts Institute of
3+
Technology, Institut National de Recherche en Informatique et en
4+
Automatique, Keio University).
5+
6+
All Rights Reserved.
7+
8+
Please see the full Copyright clause at
9+
<http://www.w3.org/Consortium/Legal/copyright-software.html>
10+
11+
-->
12+
<!--
13+
14+
Description:
15+
16+
A parser must generate inside of other reifications.
17+
-->
18+
19+
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
20+
xmlns:eg="http://example.org/"
21+
xml:base="http://example.com/">
22+
23+
<rdf:Description rdf:about="http://example.org/a">
24+
<eg:prop rdf:ID="reify">
25+
<rdf:Description rdf:about="http://example.org/b">
26+
<eg:prop rdf:ID="reify2" rdf:resource="http://example.org/c"/>
27+
</rdf:Description>
28+
</eg:prop>
29+
</rdf:Description>
30+
</rdf:RDF>

0 commit comments

Comments
 (0)