Touring XQuery/XPath

These notes are to inform the SPARQL Invocation instructions. This document is not endorsed by W3C, the XQuery working group, or anyone at all.

Document Roadmap

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:

SPARQL's FILTER Evalution

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:

  1. URI promotionxsd:anyURI => xsd:string when the latter is needed.
  2. conversion of xsd:untypedAtomicxsd:untypedAtomic => expected type, xsd:double for numeric arguments
Eric Prud'hommeaux
$Id: Overview.html,v 1.3 2005/11/18 15:12:17 eric Exp $