You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These differences are subtle, but just big enough that they trip up the EasyRDF parser in some cases.
10. Turtle compared to SPARQL (Informative)
the SPARQL Query Language for RDF (SPARQL) uses a Turtle/N3 style syntax for the Triple patterns including the same forms of abbreviated forms given here.
SPARQL includes at least the following syntax that is not in Turtle (not a complete list):
RDF Literals are allowed in triple subjects
Variables are allowed in any part of the triple of the form ?name or $name
Long literals can use use single quote (') characters: ''' ... '''
The constants allowed for XSD booleans: true and false are case independent. In Turtle they are not, only lowercase forms are allowed.
SPARQL allows '.'s in names in all positions apart from the first or last. These would correspond to rules:
SPARQL allows digits in the first character of the PN_LOCAL lexical token. In Turtle, the only ascii characters allowed in a nameStartChar[30] are [A-Z] | "_" | [a-z].
Turtle allows prefix and base declarations[30] anywhere outside of a triple. In SPARQL, they are only allowed in the Prologue (at the start of the SPARQL query).
See: https://www.w3.org/TeamSubmission/turtle/#sec-diff-sparql
These differences are subtle, but just big enough that they trip up the EasyRDF parser in some cases.
The text was updated successfully, but these errors were encountered: