Loading TOC...

MarkLogic 10 Product Documentation
sem:lang

sem:lang(
   $value as xs:anyAtomicType
) as xs: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)

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