sem:langMatches( $lang-tag as xs:string, $lang-range as xs:string ) as xs:boolean
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. |
let $triple := sem:triple(sem:iri("subject"), sem:iri("predicate"), "object") return sem:langMatches(sem:triple-subject($triple), "fr") => false
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.