- From: Dimitris Kontokostas <jimkont@gmail.com>
- Date: Wed, 24 Sep 2014 10:45:34 +0300
- To: Andy Seaborne <andy@seaborne.org>
- Cc: Linked Data community <public-lod@w3.org>
- Message-ID: <CA+u4+a1EsvtFNr+ZZ_CKyzw00qxQyT-31pKnFEV0WuMosSvxvw@mail.gmail.com>
Thanks for the link Andy, it makes sense now. Best, Dimitris On Tue, Sep 23, 2014 at 5:19 PM, Andy Seaborne <andy@seaborne.org> wrote: > You can have \u in string literal in SPARQL -- it happens a different in > SPARQL. > > \u processing is applied to the input char stream via > http://www.w3.org/TR/sparql11-query/#codepointEscape > > (it's this, not the Turtle way, for historical reasons i.e. compatibility > with SPARQL 1.1) > > Andy > > > On 23/09/14 08:45, Dimitris Kontokostas wrote: > >> Hello, >> >> With the recent discussion on RDF/LD patching I looked on the SPARUL [1] >> & Turtle [2] specs and was surprised to notice that they are not 100% >> compatible. >> >> The difference I found was in the escaping of literal values where, in >> turtle we are allowed to have unicode escaping while in SPARUL we are not >> >> Turtle [26] |UCHAR| ::= '|\u|' HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> || |'|\U|' HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> HEX >> <http://www.w3.org/TR/turtle/#grammar-production-HEX> >> >> >> This means we cannot just reuse turtle blocks inside insert/delete >> SPARUL blocks without pre-processing. Am I correct or did I overlook >> something? >> In addition, does the aforementioned rule add anything in turtle besides >> extra serialization options? >> >> Best, >> Dimitris >> >> [1] http://www.w3.org/TR/sparql11-query/#rSTRING_LITERAL1 >> [2] http://www.w3.org/TR/turtle/#grammar-production-STRING_LITERAL_QUOTE >> >> >> -- >> Dimitris Kontokostas >> Department of Computer Science, University of Leipzig >> Research Group: http://aksw.org >> Homepage:http://aksw.org/DimitrisKontokostas >> > > -- Kontokostas Dimitris
Received on Wednesday, 24 September 2014 07:46:24 UTC