<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/sem.curieExpand.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>sem.curieExpand</api:function-name><api:suggest>sem.curieexpand</api:suggest><api:suggest>sem</api:suggest><api:suggest>curieexpand</api:suggest><api:function-link mode="xquery" fullname="sem:curie-expand">/apidoc/8.0/sem:curie-expand.xml</api:function-link><api:function mode="javascript" name="curieExpand" lib="sem" category="Semantics" hidden="false" bucket="MarkLogic Built-In Functions" prefix="sem" namespace="http://marklogic.com/semantics" fullname="sem.curieExpand"><api: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 <a href="./sem:prefixes" xmlns="http://www.w3.org/1999/xhtml">sem:prefixes</a>. 
	</api:summary><api:params><api:param name="curie" type="xs:string"><api:param-description>A CURIE string.</api:param-description><api:param-name>curie</api:param-name><api:param-type>String</api:param-type></api:param><api:param name="mapping" type="map:map" optional="true"><api:param-description>An 
	    optional set of prefix mappings. If not specified, a default 
	    set of prefixes is used.</api:param-description><api:param-name>mapping</api:param-name><api:param-type>Object</api:param-type></api:param></api:params><api:return>sem.iri</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var sem = require("/MarkLogic/semantics.xqy");
    
sem.curieExpand("foaf:person2");
	
// expands and returns the sem.iri object 
=&gt; 
    http://xmlns.com/foaf/0.1/person2
</pre></api:example></api:function></api:function-page>