MarkLogic 12 EA 2 Product Documentation
rdf:langString

rdf:langString(
   $string as xs:string,
   $lang as xs:string
) as rdf:langString

Summary

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.

Example

rdf:langString("http://foo/bar", "en")
=> an rdf:langString representing "http://foo/bar" in english

Powered by MarkLogic Server | Terms of Use | Privacy Policy