sem.lang

sem.lang(
   value as xs.anyAtomicType
) as String

Summary

Returns the language of the value passed in, or the empty string if the value has no language. Only values derived from rdf:langString have a language. This XQuery function backs up the SPARQL lang() function.

This function is a built-in.

Parameters
value The value to return the language of.

Example

sem.lang("hello");
=>
empty (because the term has no language value)
Powered by MarkLogic Server | Terms of Use | Privacy Policy