
rdf:langString( $string as xs:string, $lang as xs:string ) as rdf:langString
Returns an rdf:langString value with the
given value and language tag. The rdf:langString type extends
xs:string, and represents a language tagged string in RDF.
This function is a built-in.
| Parameters | |
|---|---|
| string | The lexical value. |
| lang | The language. |
rdf:langString("http://foo/bar", "en")
=> an rdf:langString representing "http://foo/bar" in english
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.