Loading TOC...

sem.curieExpand

sem.curieExpand(
   $curie as String,
   [$mapping as Object]
) 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
$curieA CURIE string.
$mappingAn optional set of prefix mappings. If not specified, a default set of prefixes is used.

Example

var sem = require("/MarkLogic/semantics.xqy");
    
sem.curieExpand("foaf:person2");
	
// expands and returns the sem.iri object 
=> 
    http://xmlns.com/foaf/0.1/person2

Comments

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