[redland-dev] [Redland librdf RDF API 0000519]: SPARQL query-related methods crash on certain literals
Mantis Bug Tracker
mantis-bug-sender at librdf.org
Tue Jul 31 05:47:35 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://bugs.librdf.org/mantis/view.php?id=519
======================================================================
Reported By: Cordawyn
Assigned To:
======================================================================
Project: Redland librdf RDF API
Issue ID: 519
Category: query engine
Reproducibility: always
Severity: crash
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-07-31 09:47
Last Modified: 2012-07-31 09:47
======================================================================
Summary: SPARQL query-related methods crash on certain
literals
Description:
SPARQL queries containing integer literals in form:
"4"^^<http://www.w3.org/2001/XMLSchema#int>
(note to quotes)
cause a crash when calling "librdf_query_results_finished".
When written as:
4^^<http://www.w3.org/2001/XMLSchema#int>
(without quotes)
"librdf_new_query" issues a warning:
librdf error �k7� - syntax error, unexpected HATHAT, expecting '}'
But everything works fine for "4"^^<http://www.w3.org/2001/XMLSchema#integer> or
4^^<http://www.w3.org/2001/XMLSchema#integer> .
I guess there are 2 problems here:
1) "int" vs "integer"
2) quotes are not handled as optional (although they should be, if I
understand SPARQL specs correctly - see "4.1.2 Syntax for Literals").
Steps to Reproduce:
Try the following SPARQL query via "librdf_model_query_execute":
SELECT ?s WHERE { ?s ?p "4"^^<http://www.w3.org/2001/XMLSchema#int> }
then call "librdf_query_results_finished".
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-07-31 09:47 Cordawyn New Issue
======================================================================
More information about the redland-dev
mailing list