Triply-Dev / YASGUI.legacy

Yet another SPARQL GUI
http://legacy.yasgui.org
MIT License
44 stars 8 forks source link

Syntax check fails if INSERT DATA INTO is used #285

Closed nucknorris closed 9 years ago

nucknorris commented 9 years ago

Hi,

if I'm using a regular INSERT DATA the syntax check works just fine. However, if I try using an INSERT DATA INTO the syntax check fails even though the query is valid.

Example:

PREFIX dc: <http://purl.org/dc/elements/1.1/>
INSERT DATA INTO <http://example/bookStore>
{ <http://example/book3>  dc:title  "Fundamentals of Compiler Design" }
LaurensRietveld commented 9 years ago

Strictly speaking, this query is invalid. (see http://www.w3.org/TR/sparql11-query/#sparqlGrammar) The 'INSERT DATA INTO' is not in the latest SPARQL 1.1 recommendation. I know some triple-stores support it (e.g. virtuoso), but I'd like to stay clear of implementing non-standards compliant exceptions (unless you can convince me otherwise ;))

nucknorris commented 9 years ago

You're completely right. I wasn't paying attention to the 1.1 Update. It looks like the "new" INTO is the GRAPH syntax in the INSERT statement (http://www.w3.org/TR/2013/REC-sparql11-update-20130321/#insertData)

So, thanks for the fast reply and keep up the good work. Finally a good SPARQL GUI that is actually usable :)