Loading TOC...

MarkLogic Server 11.0 Product Documentation
sem:curie-expand

sem:curie-expand(
   $curie as xs:string,
   [$mapping as map:map]
) as sem:iri

Summary

This function expands a CURIE (Compact URI) into a sem:iri object. This raises SEM-UNKNOWNPREFIX if no mapping is available. For more information about the default prefixes, see sem:prefixes.

Parameters
curie A CURIE string.
mapping An optional set of prefix mappings. If not specified, a default set of prefixes is used.

Example

xquery version "1.0-ml"; 
 
import module namespace sem = "http://marklogic.com/semantics" 
      at "/MarkLogic/semantics.xqy";
    
sem:curie-expand("foaf:person2")
	
(: expands and returns the sem:iri object :)
=>
    http://xmlns.com/foaf/0.1/person2

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