Version
6.0.0
Question
If any such instantiation produces a triple containing an unbound variable or an illegal RDF construct, such as a literal in subject or predicate position, then that triple is not included in the output RDF graph.
https://www.w3.org/TR/sparql11-query/#construct
Executing this:
prefix u: <uri:>
construct {
u:thingA u:a [ u:time ?then ] .
u:thingB u:time ?then .
[ u:timeB ?then ]
}
where {
bind(now() as ?now)
}
With an empty a.ttl...
$ /path/apache-jena-6.0.0/bin/sparql --data=a.ttl --query=./a.rq
PREFIX u: <uri:>
u:thingA u:a [] .
Based on reading the SPARQL 1.1 doc I don't expect any triples to be produced.
Applying the rule from the inside out...
?then is not bound
- therefore don't produce
[ u:time ?then ]
- if
[ u:time ?then ] isn't produced
- then
u:thingA u:a [ u:time ?then ] shouldn't be produced
Version
6.0.0
Question
https://www.w3.org/TR/sparql11-query/#construct
Executing this:
With an empty
a.ttl...Based on reading the SPARQL 1.1 doc I don't expect any triples to be produced.
Applying the rule from the inside out...
?thenis not bound[ u:time ?then ][ u:time ?then ]isn't producedu:thingA u:a [ u:time ?then ]shouldn't be produced