Skip to content

Commit 448a612

Browse files
authored
Updates N-Triples tests to use triple term syntax (#134)
* Updates N-Tripes tests to use triple term syntax instead of quoted triples.
1 parent 60520d3 commit 448a612

19 files changed

+154
-127
lines changed

rdf/rdf12/rdf-n-triples/syntax/index.html

Lines changed: 99 additions & 79 deletions
Large diffs are not rendered by default.

rdf/rdf12/rdf-n-triples/syntax/manifest.ttl

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,10 @@ trs:manifest rdf:type mf:Manifest ;
2828
trs:ntriples-star-1
2929
trs:ntriples-star-2
3030
trs:ntriples-star-3
31-
trs:ntriples-star-4
32-
trs:ntriples-star-5
3331

3432
trs:ntriples-star-bnode-1
35-
trs:ntriples-star-bnode-2
3633

3734
trs:ntriples-star-nested-1
38-
trs:ntriples-star-nested-2
3935

4036
trs:ntriples-base-1
4137
trs:ntriples-base-2
@@ -44,6 +40,12 @@ trs:manifest rdf:type mf:Manifest ;
4440
trs:ntriples-star-bad-2
4541
trs:ntriples-star-bad-3
4642
trs:ntriples-star-bad-4
43+
trs:ntriples-star-bad-5
44+
45+
trs:ntriples-star-bad-quoted-1
46+
trs:ntriples-star-bad-quoted-2
47+
trs:ntriples-star-bad-quoted-3
48+
trs:ntriples-star-bad-quoted-4
4749

4850
trs:ntriples-star-bnode-bad-annotated-syntax-1
4951
trs:ntriples-star-bnode-bad-annotated-syntax-2
@@ -55,52 +57,34 @@ trs:manifest rdf:type mf:Manifest ;
5557
) .
5658

5759
trs:ntriples-star-1 rdf:type rdft:TestNTriplesPositiveSyntax ;
58-
mf:name "N-Triples-star - subject quoted triple" ;
60+
mf:name "N-Triples-star - triple term" ;
5961
mf:action <ntriples-star-syntax-1.nt> ;
6062
.
6163

6264
trs:ntriples-star-2 rdf:type rdft:TestNTriplesPositiveSyntax ;
63-
mf:name "N-Triples-star - object quoted triple" ;
65+
mf:name "N-Triples-star - whitespace and terms" ;
6466
mf:action <ntriples-star-syntax-2.nt> ;
6567
.
6668

6769
trs:ntriples-star-3 rdf:type rdft:TestNTriplesPositiveSyntax ;
68-
mf:name "N-Triples-star - subject and object quoted triples" ;
69-
mf:action <ntriples-star-syntax-3.nt> ;
70-
.
71-
72-
trs:ntriples-star-4 rdf:type rdft:TestNTriplesPositiveSyntax ;
73-
mf:name "N-Triples-star - whitespace and terms" ;
74-
mf:action <ntriples-star-syntax-4.nt> ;
75-
.
76-
77-
trs:ntriples-star-5 rdf:type rdft:TestNTriplesPositiveSyntax ;
7870
mf:name "N-Triples-star - Nested, no whitespace" ;
79-
mf:action <ntriples-star-syntax-5.nt> ;
71+
mf:action <ntriples-star-syntax-3.nt> ;
8072
.
8173

8274
# Blank nodes
8375

8476
trs:ntriples-star-bnode-1 rdf:type rdft:TestNTriplesPositiveSyntax ;
85-
mf:name "N-Triples-star - Blank node subject" ;
77+
mf:name "N-Triples-star - Blank node object" ;
8678
mf:action <ntriples-star-bnode-1.nt> ;
8779
.
8880

89-
trs:ntriples-star-bnode-2 rdf:type rdft:TestNTriplesPositiveSyntax ;
90-
mf:name "N-Triples-star - Blank node object" ;
91-
mf:action <ntriples-star-bnode-2.nt> ;
92-
.
81+
# Nesting
9382

9483
trs:ntriples-star-nested-1 rdf:type rdft:TestNTriplesPositiveSyntax ;
95-
mf:name "N-Triples-star - Nested subject term" ;
84+
mf:name "N-Triples-star - Nested term" ;
9685
mf:action <ntriples-star-nested-1.nt> ;
9786
.
9887

99-
trs:ntriples-star-nested-2 rdf:type rdft:TestNTriplesPositiveSyntax ;
100-
mf:name "N-Triples-star - Nested object term" ;
101-
mf:action <ntriples-star-nested-2.nt> ;
102-
.
103-
10488
# Base direction
10589

10690
trs:ntriples-base-1 rdf:type rdft:TestNTriplesPositiveSyntax ;
@@ -116,25 +100,50 @@ trs:ntriples-base-2 rdf:type rdft:TestNTriplesPositiveSyntax ;
116100
## Bad syntax
117101

118102
trs:ntriples-star-bad-1 rdf:type rdft:TestNTriplesNegativeSyntax ;
119-
mf:name "N-Triples-star - Bad - quoted triple as predicate" ;
103+
mf:name "N-Triples-star - Bad - triple term as predicate" ;
120104
mf:action <ntriples-star-bad-syntax-1.nt> ;
121105
.
122106

123107
trs:ntriples-star-bad-2 rdf:type rdft:TestNTriplesNegativeSyntax ;
124-
mf:name "N-Triples-star - Bad - quoted triple, literal subject" ;
108+
mf:name "N-Triples-star - Bad - triple term, literal subject" ;
125109
mf:action <ntriples-star-bad-syntax-2.nt> ;
126110
.
127111

128112
trs:ntriples-star-bad-3 rdf:type rdft:TestNTriplesNegativeSyntax ;
129-
mf:name "N-Triples-star - Bad - quoted triple, literal predicate" ;
113+
mf:name "N-Triples-star - Bad - triple term, literal predicate" ;
130114
mf:action <ntriples-star-bad-syntax-3.nt> ;
131115
.
132116

133117
trs:ntriples-star-bad-4 rdf:type rdft:TestNTriplesNegativeSyntax ;
134-
mf:name "N-Triples-star - Bad - quoted triple, blank node predicate" ;
118+
mf:name "N-Triples-star - Bad - triple term, blank node predicate" ;
135119
mf:action <ntriples-star-bad-syntax-4.nt> ;
136120
.
137121

122+
trs:ntriples-star-bad-5 rdf:type rdft:TestNTriplesNegativeSyntax ;
123+
mf:name "N-Triples-star - Bad - triple term as subject" ;
124+
mf:action <ntriples-star-bad-syntax-5.nt> ;
125+
.
126+
127+
trs:ntriples-star-bad-quoted-1 rdf:type rdft:TestNTriplesNegativeSyntax ;
128+
mf:name "N-Triples-star - Bad - subject quoted triple" ;
129+
mf:action <ntriples-star-bad-quoted-syntax-1.nt> ;
130+
.
131+
132+
trs:ntriples-star-bad-quoted-2 rdf:type rdft:TestNTriplesNegativeSyntax ;
133+
mf:name "N-Triples-star - Bad - object quoted triple" ;
134+
mf:action <ntriples-star-bad-quoted-syntax-2.nt> ;
135+
.
136+
137+
trs:ntriples-star-bad-quoted-3 rdf:type rdft:TestNTriplesNegativeSyntax ;
138+
mf:name "N-Triples-star - Bad - subject and object quoted triples" ;
139+
mf:action <ntriples-star-bad-quoted-syntax-3.nt> ;
140+
.
141+
142+
trs:ntriples-star-bad-quoted-4 rdf:type rdft:TestNTriplesNegativeSyntax ;
143+
mf:name "N-Triples-star - Bad - quoted triples whitespace and terms" ;
144+
mf:action <ntriples-star-bad-quoted-syntax-4.nt> ;
145+
.
146+
138147
# Annotation syntax is not permitted in nt
139148

140149
trs:ntriples-star-bnode-bad-annotated-syntax-1 rdf:type rdft:TestNTriplesNegativeSyntax ;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<< <http://example/s> <http://example/p> <http://example/o> >> <http://example/q> <http://example/z> .
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<http://example/x> <http://example/p> << <http://example/s> <http://example/p> <http://example/o> >> .
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<< <http://example/s1> <http://example/p1> <http://example/o1> >> <http://example/q> << <http://example/s2> <http://example/p2> <http://example/o2> >> .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<http://example/a> << <http://example/s> <http://example/p> <http://example/o> >> <http://example/z> .
1+
<http://example/a> <<( <http://example/s> <http://example/p> <http://example/o> )>> <http://example/z> .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<< "XYZ" <http://example/p> <http://example/o> >> <http://example/q> <http://example/z> .
1+
<http://example/q> <http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies> <<( "XYZ" <http://example/p> <http://example/o> )>> .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<< <http://example/s> "XYZ" <http://example/o> >> <http://example/q> <http://example/z> .
1+
<http://example/q> <http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies> <<( <http://example/s> "XYZ" <http://example/o> )>> .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<< <http://example/s> _:label <http://example/o> >> <http://example/q> <http://example/z> .
1+
<http://example/q> <http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies> << <http://example/s> _:label <http://example/o> >> .

0 commit comments

Comments
 (0)