<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/sem.prefixes.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>sem.prefixes</api:function-name><api:suggest>sem.prefixes</api:suggest><api:suggest>sem</api:suggest><api:suggest>prefixes</api:suggest><api:function-link mode="xquery" fullname="sem:prefixes">/apidoc/8.0/sem:prefixes.xml</api:function-link><api:function mode="javascript" name="prefixes" lib="sem" category="Semantics" hidden="false" bucket="MarkLogic Built-In Functions" prefix="sem" namespace="http://marklogic.com/semantics" fullname="sem.prefixes"><api:summary>This function returns a set of prefix mappings for 
		use with CURIE processing. Calling this function returns the 
		internal set of default prefixes. The default mappings include 
		prefixes that are widely used and agreed upon, including 
		"cc" (Creative Commons), "dc" (Dublin Core), 
		"dcterms" (Dublin Core Terms), "dbpedia" (dbpedia resources), 
		"dbpedia-owl" (dbpedia ontology), "geonames" (geonames 
		ontology), "foaf" (FOAF), "media" (MediaRSS), "owl" (OWL), "
		rdf" (RDF), "product" (productV2), "rdfs" (RDF Schema), 
		"skos" (SKOS), "vcard" (VCard vocab), "void" (Vocabulary 
		of Interlinked Datasets), "wikidata" (wikidata entities), 
		"xhtml" (XHTML), and "xs" (XML Schema).
	</api:summary><api:params><api:param name="prefixdef" type="xs:string?"><api:param-description>A string specifying 
		  prefixes in RDFa @prefix format 
		  ("prefix: http://base1 prefix2: http://base2").
	  </api:param-description><api:param-name>prefixdef</api:param-name><api:param-type>String?</api:param-type></api:param><api:param name="include-common" type="xs:boolean?" optional="true"><api:param-description>Whether to include the default set of 
		  mappings. The default is true.
	  </api:param-description><api:param-name>include-common</api:param-name><api:param-type>Boolean?</api:param-type></api:param></api:params><api:return>Object</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var sem = require("/MarkLogic/semantics.xqy");

var prefixes = sem.prefixes("dc: http://purl.org/dc/elements/1.1/ \n\
	schema: http://schema.org/"); 
sem.curieExpand("dc:title") 
	
(: returns an IRI :)
=&gt;
    http://purl.org/dc/elements/1.1/title	
    </pre></api:example></api:function></api:function-page>