You are here

function fully_qualified_from_curie in Taxonomy import/export via XML 7

Resolve shortnames back into namespaces.

1 call to fully_qualified_from_curie()
rdf_entity_to_xml in ./rdf_utils.inc
Given a D7 entity with its 'rdf_mapping' available, create and fill in data on an RDF/XML node in an XML document.

File

./rdf_utils.inc, line 171
Experimental library for working with RDF within taxonomy_xml

Code

function fully_qualified_from_curie($curie) {
  $ns = rdf_get_namespaces();
  list($prefix, $id) = explode(':', $curie);
  return array(
    'p' => $prefix,
    'id' => $id,
    'ns' => $ns[$prefix],
  );
}