The following issue has been SUBMITTED. ====================================================================== http://bugs.librdf.org/mantis/view.php?id=443 ====================================================================== Reported By: Dave Beckett Assigned To: Dave Beckett ====================================================================== Project: Rasqal RDF Query Library Issue ID: 443 Category: query engine Reproducibility: have not tried Severity: minor Priority: normal Status: assigned Query Language: sparql ====================================================================== Date Submitted: 2011-05-07 22:15 Last Modified: 2011-05-07 22:15 ====================================================================== Summary: "1"^^xsd:boolean does not evaluate as true Description: A query with "1"^^xsd:boolean does not evaluate as true.
Expected: "1" is a true value (XSD spec) Steps to Reproduce: >From http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601374 QUOTE Please consider the following RDF graph representations: $ rdfproc -s sqlite +sparql-2010-10-25.sqlite \ serialize ntriples <uuid:d9054928-e048-11df-a0c0-4040a5e6bfa3#subject> <uuid:d9054928-e048-11df-a0c0-4040a5e6bfa3#predicate> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> . $ rdfproc -s sqlite +sparql-2010-10-25.sqlite.http://bugs.librdf.org/mantis/view.php?id=4#c5~ \ serialize ntriples <uuid:d9054928-e048-11df-a0c0-4040a5e6bfa3#subject> <uuid:d9054928-e048-11df-a0c0-4040a5e6bfa3#predicate> "1"^^<http://www.w3.org/2001/XMLSchema#boolean> . $ Following [1, 2], my understanding is that these are representations of essentially the same graph. Thus, I'd expect that the following SPARQL query to produce identical results for both of the storages, contrary to what actually happens: $ rdfproc -s sqlite +sparql-2010-10-25.sqlite \ query sparql - 'SELECT ?s ?p WHERE { ?s ?p true . }' rdfproc: Query returned bindings results: result: [s=[uuid:d9054928-e048-11df-a0c0-4040a5e6bfa3#subject], p=[uuid:d9054928-e048-11df-a0c0-4040a5e6bfa3#predicate]] rdfproc: Query returned 1 results $ rdfproc -s sqlite +sparql-2010-10-25.sqlite.http://bugs.librdf.org/mantis/view.php?id=4#c5~ \ query sparql - 'SELECT ?s ?p WHERE { ?s ?p true . }' rdfproc: Query returned bindings results: rdfproc: Query returned 0 results $ [1] http://www.w3.org/TR/xmlschema11-2/#boolean [2] http://www.w3.org/TR/xmlschema11-2/#f-booleanLexmap END QUOTE Additional Information: See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601374 Found in redland 1.0.10 in Oct 2010 which would be rasqal 0.9.17 - 0.9.20 range. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-05-07 22:15 Dave Beckett New Issue 2011-05-07 22:15 Dave Beckett Status new => assigned 2011-05-07 22:15 Dave Beckett Assigned To => Dave Beckett ====================================================================== _______________________________________________ redland-dev mailing list [email protected] http://lists.librdf.org/mailman/listinfo/redland-dev
