Created
October 7, 2010 23:13
-
-
Save dajobe/616084 to your computer and use it in GitHub Desktop.
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
$ cat tests/sparql/examples/ex11_0.rq | |
PREFIX a: <http://www.w3.org/2000/10/annotation-ns#> | |
PREFIX dc: <http://purl.org/dc/elements/1.1/> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
SELECT ?annot | |
WHERE { ?annot a:annotates <http://www.w3.org/TR/rdf-sparql-query/> . | |
?annot dc:created ?date . | |
FILTER ( ?date < xsd:dateTime("2005-01-01T00:00:00Z") ) } | |
$ utils/roqet -d debug -D data/dc.rdf tests/sparql/examples/ex11_0.rq 2>&1 | grep -v rasqal_ | |
lt-roqet: Querying from file tests/sparql/examples/ex11_0.rq | |
Query variables-use map (B=bound, M=mentioned, U=used): | |
GP# Type annot date | |
-- Verbs M | |
-- GROUP BY | |
-- HAVING | |
-- ORDER BY | |
0 Group | |
1 Basic M M | |
2 Filter M | |
Query: | |
Project( | |
Filter( | |
BGP( | |
triple(variable(annot), uri<http://www.w3.org/2000/10/annotation-ns#annotates>, uri<http://www.w3.org/TR/rdf-sparql-query/>) , | |
triple(variable(annot), uri<http://purl.org/dc/elements/1.1/created>, variable(date)) | |
) , | |
expr(op lt(expr(variable(date)), expr(datetime(2005-01-01T00:00:00Z)))) | |
) , | |
Variables([ variable(annot) ]) | |
) | |
project( | |
filter( | |
triple pattern( | |
) | |
) | |
) | |
query verb: SELECT | |
data graphs: [data graph(file:///home/dajobe/dev/redland/rasqal/data/dc.rdf, flags 2)] | |
named variables: [variable(annot), variable(date)] | |
anonymous variables: [] | |
bound variables: [variable(annot)] | |
triples: [triple(variable(annot), uri<http://www.w3.org/2000/10/annotation-ns#annotates>, uri<http://www.w3.org/TR/rdf-sparql-query/>), triple(variable(annot), uri<http://purl.org/dc/elements/1.1/created>, variable(date))] | |
prefixes: [prefix(a as http://www.w3.org/2000/10/annotation-ns#), prefix(dc as http://purl.org/dc/elements/1.1/), prefix(xsd as http://www.w3.org/2001/XMLSchema#)] | |
query graph pattern: graph pattern[0] Group(over 2 graph patterns[ | |
graph pattern[1] Basic(over 2 triples[ | |
triple(variable(annot), uri<http://www.w3.org/2000/10/annotation-ns#annotates>, uri<http://www.w3.org/TR/rdf-sparql-query/>) , | |
triple(variable(annot), uri<http://purl.org/dc/elements/1.1/created>, variable(date)) | |
] | |
) , | |
graph pattern[2] Filter( | |
expr(op lt(expr(variable(date)), expr(datetime(2005-01-01T00:00:00Z)))) | |
) | |
] | |
) | |
lt-roqet: Query has a variable bindings result | |
lt-roqet: Query returned 0 results | |
query verb: SELECT | |
data graphs: [data graph(file:///home/dajobe/dev/redland/rasqal/data/dc.rdf, flags 2)] | |
named variables: [variable(annot), variable(date)] | |
anonymous variables: [] | |
bound variables: [variable(annot)] | |
triples: [triple(variable(annot), uri<http://www.w3.org/2000/10/annotation-ns#annotates>, uri<http://www.w3.org/TR/rdf-sparql-query/>), triple(variable(annot), uri<http://purl.org/dc/elements/1.1/created>, variable(date))] | |
prefixes: [prefix(a as http://www.w3.org/2000/10/annotation-ns#), prefix(dc as http://purl.org/dc/elements/1.1/), prefix(xsd as http://www.w3.org/2001/XMLSchema#)] | |
query graph pattern: graph pattern[0] Group(over 2 graph patterns[ | |
graph pattern[1] Basic(over 2 triples[ | |
triple(variable(annot), uri<http://www.w3.org/2000/10/annotation-ns#annotates>, uri<http://www.w3.org/TR/rdf-sparql-query/>) , | |
triple(variable(annot), uri<http://purl.org/dc/elements/1.1/created>, variable(date)) | |
] | |
) , | |
graph pattern[2] Filter( | |
expr(op lt(expr(variable(date)), expr(datetime(2005-01-01T00:00:00Z)))) | |
) | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment