Loading TOC...

sem.langMatches

sem.langMatches(
   $lang-tag as String,
   $lang-range as String
) as Boolean

Summary

Returns true if $lang-tag matches $lang-range according to the basic filtering scheme defined in RFC4647. This XQuery function backs up the SPARQL langMatches() function.

This function is a built-in.

Parameters
$lang-tag The language tag.
$lang-range The language range.

Example

var triple = sem.triple(sem.iri("subject"), sem.iri("predicate"), "object");
sem.langMatches(sem.tripleSubject(triple), "fr");
=>
false

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy