Skip to content

Commit 8ee0206

Browse files
committed
Disallow triple terms in subject position
1 parent a2244b3 commit 8ee0206

14 files changed

+57
-26
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PREFIX : <http://example.com/ns#>
2+
3+
SELECT * {
4+
VALUES ?x {
5+
<<(:s :p :o )>>
6+
<<( <<(:s :p :o )>> :q :z )>>
7+
}
8+
VALUES (?y ?z) { (<<(:s :p :o )>> 123 )
9+
(123 <<(:s :p :o )>> ) }
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PREFIX : <http://example.com/ns#>
2+
3+
SELECT * {
4+
5+
<<(:x ?R :z )>> :p <<(:a :b ?C )>> .
6+
7+
<<( <<(:x ?R :z )>> :p <<(:a :b [] )>> )>>
8+
:q
9+
<<( <<([] ?R :z )>> :p <<(:a :b [] )>> )>> .
10+
}

sparql/sparql12/syntax-triple-terms-negative/manifest.ttl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
:annotated-reifier-path
2828
:annotated-reifier-reifier-alternate-path
2929
:annotated-reifier-variable-path
30+
:basic-tripleterm-subject
3031
:bind-anonreified
3132
:bind-reified
3233
:bindbnode-anonreifier
@@ -35,6 +36,7 @@
3536
:bnode-predicate-anonreifier
3637
:bnode-predicate-reifier
3738
:bnode-predicate-tripleterm
39+
:compound-tripleterm-subject
3840
:list-anonreifier-01
3941
:list-anonreifier-02
4042
:list-reifier-01
@@ -43,6 +45,7 @@
4345
:list-tripleterm-02
4446
:nested-annotated-path-anonreifier
4547
:nested-annotated-path-reifier
48+
:nested-tripleterm-subject
4649
:quoted-list-object-anonreifier
4750
:quoted-list-object-reifier
4851
:quoted-list-object-tripleterm
@@ -158,6 +161,11 @@
158161
mf:name "annotated-reifier-variable-path.rq" ;
159162
mf:action <annotated-reifier-variable-path.rq> .
160163

164+
:basic-tripleterm-subject rdf:type mf:NegativeSyntaxTest11 ;
165+
dawgt:approval dawgt:Proposed ;
166+
mf:name "basic-tripleterm-subject.rq" ;
167+
mf:action <basic-tripleterm-subject.rq> .
168+
161169
:bind-anonreified rdf:type mf:NegativeSyntaxTest11 ;
162170
dawgt:approval dawgt:Proposed ;
163171
mf:name "bind-anonreified.rq" ;
@@ -198,6 +206,11 @@
198206
mf:name "bnode-predicate-tripleterm.rq" ;
199207
mf:action <bnode-predicate-tripleterm.rq> .
200208

209+
:compound-tripleterm-subject rdf:type mf:NegativeSyntaxTest11 ;
210+
dawgt:approval dawgt:Proposed ;
211+
mf:name "compound-tripleterm-subject.rq" ;
212+
mf:action <compound-tripleterm-subject.rq> .
213+
201214
:list-anonreifier-01 rdf:type mf:NegativeSyntaxTest11 ;
202215
dawgt:approval dawgt:Proposed ;
203216
mf:name "list-anonreifier-01.rq" ;
@@ -238,6 +251,11 @@
238251
mf:name "nested-annotated-path-reifier.rq" ;
239252
mf:action <nested-annotated-path-reifier.rq> .
240253

254+
:nested-tripleterm-subject rdf:type mf:NegativeSyntaxTest11 ;
255+
dawgt:approval dawgt:Proposed ;
256+
mf:name "nested-tripleterm-subject.rq" ;
257+
mf:action <nested-tripleterm-subject.rq> .
258+
241259
:quoted-list-object-anonreifier rdf:type mf:NegativeSyntaxTest11 ;
242260
dawgt:approval dawgt:Proposed ;
243261
mf:name "quoted-list-object-anonreifier.rq" ;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
PREFIX : <http://example.com/ns#>
2+
3+
SELECT * {
4+
<<(?S :p :o )>> :r :z .
5+
<<( <<(?S :p :o )>> :r :z )>> :q 1 .
6+
}

sparql/sparql12/syntax-triple-terms-positive/basic-tripleterm-05.rq

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PREFIX : <http://example.com/ns#>
33
SELECT * {
44
VALUES ?x {
55
<<(:s :p :o )>>
6-
<<( <<(:s :p :o )>> :q :z )>>
6+
<<( :x :q <<(:s :p :o )>> )>>
77
}
88
VALUES (?y ?z) { (<<(:s :p :o )>> 123 )
99
(123 <<(:s :p :o )>> ) }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
PREFIX : <http://example.com/ns#>
22

3-
CONSTRUCT { <<(:s :p :o )>> :q :z }
3+
CONSTRUCT { :s :q <<(:s :p :o )>> }
44
WHERE {}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PREFIX : <http://example.com/ns#>
22

33
CONSTRUCT WHERE {
4-
<<(?s ?p ?o )>> ?q ?z .
4+
:s ?q <<(?s ?p :o )>> .
55
?a ?b <<(?s ?p ?o )>> .
66
}

sparql/sparql12/syntax-triple-terms-positive/compound-tripleterm.rq

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ PREFIX : <http://example.com/ns#>
22

33
SELECT * {
44

5-
<<(:x ?R :z )>> :p <<(:a :b ?C )>> .
6-
7-
<<( <<(:x ?R :z )>> :p <<(:a :b [] )>> )>>
5+
?s :p <<(:a :b ?C )>> .
6+
?s
87
:q
9-
<<( <<([] ?R :z )>> :p <<(:a :b [] )>> )>> .
8+
<<( ?s1 :p <<(:a :b [] )>> )>> .
109
}

sparql/sparql12/syntax-triple-terms-positive/manifest.ttl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
:nested-reifier-01
103103
:nested-reifier-02
104104
:nested-tripleterm-01
105-
:nested-tripleterm-02
106105
:update-anonreifier-01
107106
:update-anonreifier-02
108107
:update-anonreifier-03
@@ -584,11 +583,6 @@
584583
mf:name "nested-tripleterm-01.rq" ;
585584
mf:action <nested-tripleterm-01.rq> .
586585

587-
:nested-tripleterm-02 rdf:type mf:PositiveSyntaxTest11 ;
588-
dawgt:approval dawgt:Proposed ;
589-
mf:name "nested-tripleterm-02.rq" ;
590-
mf:action <nested-tripleterm-02.rq> .
591-
592586
:update-anonreifier-01 rdf:type mf:PositiveUpdateSyntaxTest11 ;
593587
dawgt:approval dawgt:Proposed ;
594588
mf:name "update-anonreifier-01.rq" ;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PREFIX : <http://example.com/ns#>
22

33
SELECT * {
4-
<<(?S :p :o )>> :r :z .
5-
<<( <<(?S :p :o )>> :r :z )>> :q 1 .
4+
:s :r <<(?S :p :o )>> .
5+
:s :q <<( :s1 :r <<(?S :p :o )>> )>> .
66
}

0 commit comments

Comments
 (0)