From 889e63ffcfc3f6e3d2c1f43b382e8a991fb89524 Mon Sep 17 00:00:00 2001
From: Andy Seaborne The SPARQL grammar covers both SPARQL Query and [[[SPARQL11-UPDATE]]].
- A SPARQL Request String is
- a SPARQL Query String or SPARQL Update String and is a Unicode character string
- (c.f. section 6.1 String concepts of [[CHARMOD]]) in the language defined by the following
- grammar.Notes
SPARQL Grammar
SPARQL Request String
+ SPARQL String
+ An RDF string is + a sequence of + Unicode code points + which are Unicode scalar values. + Unicode scalar values do not include the + surrogate code points. +
- A SPARQL Query String starts - at the QueryUnit production.
+ + A SPARQL query string is a + SPARQL Request String that conforms to the grammar starting at + the QueryUnit production. +- A SPARQL Update String starts - at the UpdateUnit production.
-For compatibility with future versions of Unicode, the characters in this string may + + A SPARQL update string is a + SPARQL Request String that conforms to the grammar starting at + the UpdateUnit production. +
+
+ For compatibility with future versions of Unicode, the characters in this string may
include Unicode codepoints that are unassigned as of the date of this publication (see
[[[UAX31]]] [[UAX31]] section 4 Pattern Syntax). For productions with excluded character
classes (for example [^<>'{}|^`]
), the characters are excluded from the
- range #x0 - #x10FFFF
.
#x0 - #x10FFFF
.
+
A SPARQL Query String is processed for codepoint escape sequences before parsing by the +
+ A SPARQL string is processed for codepoint escape sequences before parsing by the grammar defined in EBNF below. The codepoint escape sequences for a SPARQL query string - are:
+ are: +A Unicode code point in the range U+0 to U+FFFF inclusive corresponding to the - encoded hexadecimal value. | + encoded hexadecimal value, excluding U+D800 to U+DFFF, the + surrogate code points. +|
@@ -10559,7 +10580,9 @@ Codepoint Escape SequencesHEX HEX HEX HEX HEX HEX |
A Unicode code point in the range U+0 to U+10FFFF inclusive corresponding to the - encoded hexadecimal value. | + encoded hexadecimal value, excluding U+D800 to U+DFFF, the + surrogate code points. +
Codepoint escape sequences can appear anywhere in the query string. They are processed +
+ Codepoint escape sequences can appear anywhere in the query string. They are processed
before parsing based on the grammar rules and so may be replaced by codepoints with
- significance in the grammar, such as ":
" marking a prefixed name.
:
" marking a prefixed name.
+
These escape sequences are not included in the grammar below. Only escape sequences for
characters that would be legal at that point in the grammar may be given. For example, the
variable "?x\u0020y
" is not legal (\u0020
is a space and is not
- permitted in a variable name).