Loading TOC...

MarkLogic 12 EA 1 Product Documentation
sql:collated-string

sql:collated-string(
   $string as xs:string,
   $collationURI as xs:string
) as rdf:collatedString

Summary

Returns an rdf:collatedString value with the given value and collation tag. The rdf:collatedString type extends xs:string , and represents a collation tagged string in RDF.

This function is a built-in.

Parameters
string The lexical value.
collationURI The collation URI.

Example

sql:collated-string("http://foo/bar", "http://marklogic.com/collation/fr/S1/EO")
=> an rdf:collatedString 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.