You are here

function rdfx_get_nsids in RDF Extensions 7.2

2 calls to rdfx_get_nsids()
rdfx_get_tid in ./rdfx.terms.inc
_rdfx_save_vocabulary in ./rdfx.terms.inc
Saves the main namespace mapping for a vocabulary graph and the additional namespace mappings as defined in the document.

File

./rdfx.terms.inc, line 477
Functions for managing RDF Terms.

Code

function rdfx_get_nsids($main_ns) {
  $gid = rdfx_get_gid($main_ns);
  $nsids = db_query("SELECT uri, nsid FROM {rdfx_namespaces} WHERE gid = :gid", array(
    ':gid' => $gid,
  ))
    ->fetchAllKeyed();
  return $nsids;
}