These notes are to inform the SPARQL Invocation instructions. This document is not endorsed by W3C, the XQuery working group, or anyone at all.
Interpretation of an XQuery like
<root> <example name="roadmap"> { doc('http://www.w3.org/2005/11/XQuery-evaluation-recipies.html')//div[id='roadmap']/pre/@text() } </example> </root>
involves the following documents:
[93] | FunctionCall |
::= | QName "(" (ExprSingle ("," ExprSingle)*)? ")" |
[68] | PathExpr |
::= | ("/" RelativePathExpr?) |
[69] | RelativePathExpr |
::= | StepExpr (("/" | "//") StepExpr)* |
[83] | Predicate |
::= | "[" Expr "]" |
fn:boolean
to create an xsd:boolean
from an input sequence.SPARQL offers query constraints similar to SQL's WHERE function. The specification of SPARQL constraints is designed to be compatible with XQuery predicate evaluation. Casting Constructor Functions check Extensions Extensions.
SPARQL does not currently emulate the following possibly applicable behavior from XQuery:
xsd:anyURI
=> xsd:string
when the latter is needed.xsd:untypedAtomic
— xsd:untypedAtomic
=> expected type, xsd:double
for numeric arguments