
sem:lang( $value as xs:anyAtomicType ) as xs:string
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. |
sem:lang("hello")
=>
empty (because the term has no language value)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.