MarkLogic 9 Product Documentation
sem.isLiteral

sem.isLiteral(
   value as xs.anyAtomicType
) as Boolean

Summary

Returns true if the argument is an RDF literal - that is, derived from type xs:anyAtomicType, but not derived from type sem:iri. This XQuery function backs up the SPARQL isLiteral() function.

This function is a built-in.

Parameters
value The value to test.

Example

sem.isLiteral("subject text");
=>
true
Powered by MarkLogic Server | Terms of Use | Privacy Policy