Skip to content

Commit 13eebbf

Browse files
rubensworksafs
authored andcommitted
Add SPARQL evaluation tests for triple terms and reified triples
These tests are derived from the rdf-star SPARQL evaluation tests. https://github.com/w3c/rdf-star/tree/main/tests/sparql/eval Closes #140
1 parent 3341e16 commit 13eebbf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+3252
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
PREFIX : <http://example/>
2+
3+
SELECT * {
4+
<<:a :b :c>> ?p ?o
5+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"head": {
3+
"vars": [
4+
"o",
5+
"p"
6+
]
7+
},
8+
"results": {
9+
"bindings": [
10+
{
11+
"o": {
12+
"value": {
13+
"subject": {
14+
"value": "http://example/a",
15+
"type": "uri"
16+
},
17+
"predicate": {
18+
"value": "http://example/b",
19+
"type": "uri"
20+
},
21+
"object": {
22+
"value": "http://example/c",
23+
"type": "uri"
24+
}
25+
},
26+
"type": "triple"
27+
},
28+
"p": {
29+
"value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies",
30+
"type": "uri"
31+
}
32+
},
33+
{
34+
"o": {
35+
"value": "http://example/z",
36+
"type": "uri"
37+
},
38+
"p": {
39+
"value": "http://example/q",
40+
"type": "uri"
41+
}
42+
}
43+
]
44+
}
45+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
PREFIX : <http://example/>
2+
3+
SELECT * {
4+
<<?s :b :c>> ?p ?o
5+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"head": {
3+
"vars": [
4+
"o",
5+
"p",
6+
"s"
7+
]
8+
},
9+
"results": {
10+
"bindings": [
11+
{
12+
"s": {
13+
"value": "http://example/a",
14+
"type": "uri"
15+
},
16+
"p": {
17+
"value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#reifies",
18+
"type": "uri"
19+
},
20+
"o": {
21+
"value": {
22+
"subject": {
23+
"value": "http://example/a",
24+
"type": "uri"
25+
},
26+
"predicate": {
27+
"value": "http://example/b",
28+
"type": "uri"
29+
},
30+
"object": {
31+
"value": "http://example/c",
32+
"type": "uri"
33+
}
34+
},
35+
"type": "triple"
36+
}
37+
},
38+
{
39+
"s": {
40+
"value": "http://example/a",
41+
"type": "uri"
42+
},
43+
"p": {
44+
"value": "http://example/q",
45+
"type": "uri"
46+
},
47+
"o": {
48+
"value": "http://example/z",
49+
"type": "uri"
50+
}
51+
}
52+
]
53+
}
54+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
PREFIX : <http://example/>
2+
3+
SELECT * {
4+
<<:a ?p :c>> ?q :z .
5+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{ "head": {
2+
"vars": [ "p" , "q" ]
3+
} ,
4+
"results": {
5+
"bindings": [
6+
{
7+
"p": { "type": "uri" , "value": "http://example/b" } ,
8+
"q": { "type": "uri" , "value": "http://example/q" }
9+
}
10+
]
11+
}
12+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
PREFIX : <http://example/>
2+
3+
SELECT * {
4+
<<:a :b ?o>> ?q :z .
5+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{ "head": {
2+
"vars": [ "o" , "q" ]
3+
} ,
4+
"results": {
5+
"bindings": [
6+
{
7+
"o": { "type": "uri" , "value": "http://example/c" } ,
8+
"q": { "type": "uri" , "value": "http://example/q" }
9+
}
10+
]
11+
}
12+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
PREFIX : <http://example/>
2+
3+
SELECT * {
4+
<<?a ?b :nomatch >> ?q :z .
5+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{ "head": {
2+
"vars": [ "a" , "b" , "q" ]
3+
} ,
4+
"results": {
5+
"bindings": [
6+
7+
]
8+
}
9+
}

0 commit comments

Comments
 (0)