[redland-dev] [Rasqal RDF Query Library 0000427]: INSERT/DELETE with """ quoting doesn't quite work

Mantis Bug Tracker mantis-bug-sender at librdf.org
Mon Feb 14 16:07:19 CET 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=427 
====================================================================== 
Reported By:                swh
Assigned To:                
====================================================================== 
Project:                    Rasqal RDF Query Library
Issue ID:                   427
Category:                   api
Reproducibility:            always
Severity:                   minor
Priority:                   low
Status:                     new
Query Language:             sparql11-update 
====================================================================== 
Date Submitted:             2011-02-14 15:07
Last Modified:              2011-02-14 15:07
====================================================================== 
Summary:                    INSERT/DELETE with """ quoting doesn't quite work
Description: 
In INSERT statements that use triple quoting (""") second and subsequenct
triples are dropped by the parser:

$ roqet -d debug -e 'INSERT DATA { <x> <y> """foo""" . <x> <y> """bar""" }' -i
sparql11-update
roqet: Running query 'INSERT DATA { <x> <y> """foo""" . <x> <y> """bar""" }'
Query:
query verb: INSERT
data graphs: []
named variables: []
anonymous variables: []
triples: []
prefixes: []
update operations: [update-operation(type=UPDATE, applies: one graph,
insert-templates=[triple(uri<file:///Users/swh/Projects/4store/tests/httpd/x>,
uri<file:///Users/swh/Projects/4store/tests/httpd/y>, string("foo"))])]


Steps to Reproduce: 
$ roqet -d debug -e 'INSERT DATA { <x> <y> """foo""" . <x> <y> """bar""" }' -i
sparql11-update
roqet: Running query 'INSERT DATA { <x> <y> """foo""" . <x> <y> """bar""" }'
Query:
query verb: INSERT
data graphs: []
named variables: []
anonymous variables: []
triples: []
prefixes: []
update operations: [update-operation(type=UPDATE, applies: one graph,
insert-templates=[triple(uri<file:///Users/swh/Projects/4store/tests/httpd/x>,
uri<file:///Users/swh/Projects/4store/tests/httpd/y>, string("foo"))])]

note, triple quoting, followed by single quoting is fine:

$ roqet -d debug -e 'INSERT DATA { <x> <y> """foo""" . <x> <y> "bar" }' -i
sparql11-update
roqet: Running query 'INSERT DATA { <x> <y> """foo""" . <x> <y> "bar" }'
Query:
query verb: INSERT
data graphs: []
named variables: []
anonymous variables: []
triples: []
prefixes: []
update operations: [update-operation(type=UPDATE, applies: one graph,
insert-templates=[triple(uri<file:///Users/swh/Projects/4store/tests/httpd/x>,
uri<file:///Users/swh/Projects/4store/tests/httpd/y>, string("foo")),
triple(uri<file:///Users/swh/Projects/4store/tests/httpd/x>,
uri<file:///Users/swh/Projects/4store/tests/httpd/y>, string("bar"))])]


Additional Information: 
Also, maybe related, @lang doesn't work with """:

$ roqet -d debug -e 'INSERT DATA { <x> <y> """foo"""@en-GB }' -i sparql11-update
roqet: Running query 'INSERT DATA { <x> <y> """foo"""@en-GB }'
roqet: Error - URI file:///Users/swh/Projects/4store/tests/httpd/:1 - SPARQL
syntax error at '@'
roqet: Parsing query 'INSERT DATA { <x> <y> """foo"""@en-GB }' failed



====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-14 15:07 swh            New Issue                                    
======================================================================



More information about the redland-dev mailing list