Functions

The following functions are provided in Mulgara by default. Please note that Mulgara also includes the EXSLT functions by default. Other XPath function libraries may also be included through the user configuration file.

SPARQL

Prefix: sparql

Namespace: http://www.w3.org/2006/sparql-functions#

The functions in the sparql namespace are provided for completeness. They are not as functional as the built-in functions, as they do not have the same access to the inner components of the query engine, and some data is lost when shifting to external libraries.

  • sparql:bound
  • sparql:isIRI
  • sparql:isURI
  • sparql:isBlank
  • sparql:isLiteral
  • sparql:str
  • sparql:lang
  • sparql:datatype
  • sparql:langMatches
  • sparql:logical-or
  • sparql:logical-and

XQuery 1.0, XPath 2.0 Functions

Prefix: fn

Namespace: http://www.w3.org/2005/xpath-functions/#

XQuery 1.0, XPath 2.0 Operators

Prefix: op

Namespace: none

ARQ Functions

Prefix: afn

Namespace: http://jena.hpl.hp.com/ARQ/function#

SMF Functions

Prefix: smf

Namespace: http://www.topquadrant.com/sparqlmotion/smf.html#smf:

  • This operates on sequences and singletons, but sequences are currently unavailable to external libraries.
  • The semantics of this operation are not perfectly aligned with XPath.