Loading TOC...

MarkLogic Server 11.0 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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.