The following issue has been SUBMITTED. ====================================================================== http://bugs.librdf.org/mantis/view.php?id=305 ====================================================================== Reported By: mainka Assigned To: ====================================================================== Project: Rasqal RDF Query Library Issue ID: 305 Category: query engine Reproducibility: always Severity: major Priority: normal Status: new Query Language: sparql ====================================================================== Date Submitted: 2009-05-13 18:22 Last Modified: 2009-05-13 18:22 ====================================================================== Summary: bound gives incoherent results Description: graph : @prefix foaf: <http://xmlns.com/foaf/0.1/> . @prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
_:a foaf:givenName "Alice". _:b foaf:givenName "Bob" . _:b dc:date "2005-04-04T04:04:04Z"^^xsd:dateTime . query 1: roqet: Running query 'PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> SELECT ?name WHERE { ?x foaf:givenName ?name . OPTIONAL { ?x dc:date ?date } . FILTER ( !bound(?date) ) }' roqet: Query has a variable bindings result result: [name=string("Alice")] roqet: Query returned 1 results As expected... But : query 2: roqet: Running query 'PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX dc: <http://purl.org/dc/elements/1.1/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> SELECT ?name WHERE { ?x foaf:givenName ?name . OPTIONAL { ?x dc:date ?date } . FILTER ( bound(?date) ) }' roqet: Query has a variable bindings result roqet: Query returned 0 results Shouldn't it return "Bob"? ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2009-05-13 18:22 mainka New Issue 2009-05-13 18:22 mainka Query Language => sparql ====================================================================== _______________________________________________ redland-dev mailing list [email protected] http://lists.librdf.org/mailman/listinfo/redland-dev
