Hi Lars,


I'm sending the following SPARQL Update statement to Virtuoso:

insert data into <file:/C:/Bouvet/OntopiaServer/apache-tomcat/common/ classes/ifs.xtm> { <http://psi.ontopia.net/customers/ifs/ su5566629993> <http://www.w3.org/2000/01/rdf-schema#label> "MM'S LUNCH & CATERING" .<http://psi.ontopia.net/customers/ifs/ su5566629993> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://psi.ontopia.net/customers/ifs/supplier > . }


To which Virtuoso replies:

37000 Error SP030: SPARQL compiler, line 0: Unterminated short double-quoted string at ''

SPARQL query:
insert data into <file:/C:/Bouvet/OntopiaServer/apache-tomcat/common/ classes/ifs.xtm> { <http://psi.ontopia.net/customers/ifs/ su5566629993> <http://www.w3.org/2000/01/rdf-schema#label> "MM'S LUNCH

This makes me think the '&' character is the problem. The BNF given here doesn't define the "String" production:
http://docs.openlinksw.com/virtuoso/rdfsparql.html

However, according to production [88] here, it's definitely legal:
http://www.w3.org/Submission/SPARQL-Update/#rSTRING_LITERAL2

As far as i can see this issue has been resolved in the upcoming release of VOS:

$ isql 1111

SQL> sparql insert data into <file:/C:/Bouvet/OntopiaServer/apache- tomcat/common/classes/ifs.xtm> { <http://psi.ontopia.net/customers/ifs/su5566629993 > <http://www.w3.org/2000/01/rdf-schema#label> "MM'S LUNCH & CATERING" .<http://psi.ontopia.net/customers/ifs/su5566629993> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type > <http://psi.ontopia.net/customers/ifs/supplier> . } ;
callret-0
VARCHAR
_______________________________________________________________________________

Insert into <file:/C:/Bouvet/OntopiaServer/apache-tomcat/common/ classes/ifs.xtm>, 2 (or less) triples -- done

1 Rows. -- 22 msec.
SQL> sparql select * from <file:/C:/Bouvet/OntopiaServer/apache-tomcat/ common/classes/ifs.xtm> where {?s ?p ?o}; s p o VARCHAR VARCHAR VARCHAR
_______________________________________________________________________________

http://psi.ontopia.net/customers/ifs/ su5566629993 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://psi.ontopia.net/customers/ifs/supplier http://psi.ontopia.net/customers/ifs/ su5566629993 http://www.w3.org/2000/01/rdf-schema#label MM'S LUNCH & CATERING

2 Rows. -- 1 msec.



Note that the next VOS release is scheduled to happen over the next few days.


Patrick

Reply via email to