On Mon, Aug 12, 2013 at 11:19 AM, Iain Ritchie <[email protected]> wrote: > Thanks a lot - Point noted on the incorrect time zone format. > > Regarding the latitude/longitude, my mistake and I suppose float would be > the most appropriate: > > INSERT DATA { > > <http://someURI> > > <http://someURI/Latitude> > > "51.5049832"^^<http://www.w3.org/2001/XMLSchema#xsd:float> > > } > > > Regarding the parse error with the quotations: > > > - Replacement with single ' worked fine. > > - Replacement with \" allows the insert to occur but the \ is then > contained in the literal that is inserted: > > > INSERT DATA { <http://someURI> <http://someURI/hasText> "How to deal with a > quotation \" in the middle of a string"} > > > - Replacement with """ results in a parse error again. > > > INSERT DATA { <http://someURI> <http://someURI/hasText> "How to deal with a > quotation """ in the middle of a string"} > > > Forgive me if I misunderstood something on this topic.
According to the SPARQL grammar [1], you can use """ and ''' to quote string literals. E.g., you can do """ This is a big multi line string that includes some "single quotation marks". Hooray! """ [1] http://www.w3.org/TR/sparql11-query/#grammar -- Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
