-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation for RDF-based QueryEvaluationTest
- Loading branch information
Showing
101 changed files
with
2,850 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,3 +142,5 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
report-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ twine >= 3.8 | |
types-python-dateutil >= 2.8 | ||
types-requests >= 2.27 | ||
wheel >= 0.37 | ||
xmltodict >= 0.12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
## run RDF tests | ||
``` | ||
$ pytest tests/rdf_tests/test_rdf_basic.py -k test_rdf_runner -s | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
BASE <http://example.org/x/> | ||
PREFIX : <> | ||
|
||
SELECT * WHERE { :x ?p ?v } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0"?> | ||
<sparql | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema#" | ||
xmlns="http://www.w3.org/2005/sparql-results#" > | ||
<head> | ||
<variable name="v"/> | ||
<variable name="p"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="v"> | ||
<literal>d:x ns:p</literal> | ||
</binding> | ||
<binding name="p"> | ||
<uri>http://example.org/ns#p</uri> | ||
</binding> | ||
</result> | ||
<result> | ||
<binding name="v"> | ||
<literal>x:x x:p</literal> | ||
</binding> | ||
<binding name="p"> | ||
<uri>http://example.org/x/p</uri> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
BASE <http://example.org/x/> | ||
PREFIX : <#> | ||
|
||
SELECT * WHERE { :x ?p ?v } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<sparql | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema#" | ||
xmlns="http://www.w3.org/2005/sparql-results#" > | ||
<head> | ||
<variable name="v"/> | ||
<variable name="p"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="v"> | ||
<literal>z:x z:p</literal> | ||
</binding> | ||
<binding name="p"> | ||
<uri>http://example.org/x/#p</uri> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
PREFIX ns: <http://example.org/ns#> | ||
PREFIX x: <http://example.org/x/> | ||
|
||
SELECT * WHERE { x:x ns:p ?v } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<sparql | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema#" | ||
xmlns="http://www.w3.org/2005/sparql-results#" > | ||
<head> | ||
<variable name="v"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="v"> | ||
<literal>d:x ns:p</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
BASE <http://example.org/x/> | ||
|
||
SELECT * WHERE { <x> <p> ?v } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<sparql | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema#" | ||
xmlns="http://www.w3.org/2005/sparql-results#" > | ||
<head> | ||
<variable name="v"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="v"> | ||
<literal>x:x x:p</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
BASE <http://example.org/x/> | ||
|
||
SELECT * WHERE { <#x> <#p> ?v } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0"?> | ||
<sparql | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema#" | ||
xmlns="http://www.w3.org/2005/sparql-results#" > | ||
<head> | ||
<variable name="v"/> | ||
</head> | ||
<results> | ||
<result> | ||
<binding name="v"> | ||
<literal>z:x z:p</literal> | ||
</binding> | ||
</result> | ||
</results> | ||
</sparql> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
PREFIX : <http://example.org/> | ||
PREFIX foaf: <http://xmlns.com/foaf/0.1/> | ||
SELECT ?x | ||
WHERE { | ||
?x foaf:name "John Smith" ; | ||
a foaf:Womble . | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0"?> | ||
<sparql | ||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema#" | ||
xmlns="http://www.w3.org/2005/sparql-results#" > | ||
<head> | ||
<variable name="x"/> | ||
</head> | ||
<results /> | ||
</sparql> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@prefix ns: <http://example.org/ns#> . | ||
@prefix x: <http://example.org/x/> . | ||
@prefix z: <http://example.org/x/#> . | ||
|
||
x:x ns:p "d:x ns:p" . | ||
x:x x:p "x:x x:p" . | ||
|
||
z:x z:p "z:x z:p" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@prefix : <http://example.org/ns#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
|
||
:x :list0 () . | ||
:x :list1 ("1"^^xsd:integer) . | ||
:x :list2 ("11"^^xsd:integer "22"^^xsd:integer) . | ||
:x :list3 ("111"^^xsd:integer "222"^^xsd:integer "333"^^xsd:integer) . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@prefix : <http://example.org/ns#> . | ||
|
||
# This file uses UNIX line end conventions. | ||
|
||
:x1 :p1 "x" . | ||
:x2 :p2 """x | ||
y""" . | ||
|
||
:x3 :p3 """x | ||
y"""^^:someType . | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@prefix : <http://example.org/ns#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
|
||
:x :p1 "true"^^xsd:boolean . | ||
:x :p2 "false"^^xsd:boolean . | ||
|
||
:x rdf:type :C . | ||
|
||
:x :n1 "123.0"^^xsd:decimal . | ||
:x :n2 "456."^^xsd:decimal . | ||
|
||
:x :n3 "+5"^^xsd:integer . | ||
:x :n4 "-18"^^xsd:integer . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@prefix : <http://example.org/ns#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
:x :p1 "1"^^xsd:integer . | ||
:x :p2 "2"^^xsd:integer . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@prefix : <http://example.org/ns#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
:x :p1 "1"^^xsd:integer . | ||
:x :p1 "2"^^xsd:integer . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@prefix : <http://example.org/> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
|
||
:john a foaf:Person ; | ||
foaf:name "John Smith" . | ||
|
||
|
Oops, something went wrong.