Loading TOC...

rdf.langString

rdf.langString(
   string as String,
   lang as 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

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