justin2004 opened a new issue, #3866: URL: https://github.com/apache/jena/issues/3866
### 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: ```sparql 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`... ```turtle $ /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 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
