- From: Sandro Hawke <sandro@w3.org>
- Date: Wed, 09 Jan 2013 09:30:37 -0500
- To: Gavin Carothers <gavin@carothers.name>, Eric Prud'hommeaux <eric@w3.org>
- CC: W3C RDF WG <public-rdf-wg@w3.org>
- Message-ID: <50ED7F0D.9010504@w3.org>
It's trivial, but any particular reason to diverge from SPARQL and rename the string literal non-terminals? Turtle has: [22] |STRING_LITERAL_QUOTE| ::= '|"|' ([|^#x22#x5C#xA#xD|] || | ECHAR <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#grammar-production-ECHAR> || | UCHAR <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#grammar-production-UCHAR>)|*| '|"|' [23] |STRING_LITERAL_SINGLE_QUOTE| ::= "|'|" ([|^#x27#x5C#xA#xD|] || | ECHAR <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#grammar-production-ECHAR> || | UCHAR <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#grammar-production-UCHAR>)|*| "|'|" [24] |STRING_LITERAL_LONG_SINGLE_QUOTE| ::= "|'''|" (("|'|" || | "|''|")? [|^'\|] || | ECHAR <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#grammar-production-ECHAR> || | UCHAR <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#grammar-production-UCHAR>)|*| "|'''|" [25] |STRING_LITERAL_LONG_QUOTE| ::= '|"""|' (('|"|' || | '|""|')? [|^"\|] || | ECHAR <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#grammar-production-ECHAR> || | UCHAR <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#grammar-production-UCHAR>)|*| '|"""|' SPARQL has: |[156] | |STRING_LITERAL1| ::= |"'" ( ([^#x27#x5C#xA#xD]) | ECHAR <http://www.w3.org/TR/sparql11-query/#rECHAR> )* "'"| |[157] | |STRING_LITERAL2| ::= |'"' ( ([^#x22#x5C#xA#xD]) | ECHAR <http://www.w3.org/TR/sparql11-query/#rECHAR> )* '"'| |[158] | |STRING_LITERAL_LONG1| ::= |"'''" ( ( "'" | "''" )? ( [^'\] | ECHAR <http://www.w3.org/TR/sparql11-query/#rECHAR> ) )* "'''"| |[159] | |STRING_LITERAL_LONG2| ::= |'"""' ( ( '"' | '""' )? ( [^"\] | ECHAR <http://www.w3.org/TR/sparql11-query/#rECHAR> ) )* '"""'| I'd think we should just stick with the productions from SPARQL (modulo UCHAR which is an orthogonal issue). -- Sandro
Received on Wednesday, 9 January 2013 14:30:44 UTC