You are here

function taxonomy_xml_rdf_namespaces in Taxonomy import/export via XML 6.2

Same name and namespace in other branches
  1. 7 taxonomy_xml.module \taxonomy_xml_rdf_namespaces()

Implements hook_rdf_namespaces().

Backport from D7 rdf_rdf_namespaces(), only a different useful set (from ARC) The D7 one mapped dc: to dc/terms - which was quite wrong

File

./rdf_format.inc, line 1404
Include routines for RDF parsing and taxonomy/term creation. @author dman http://coders.co.nz

Code

function taxonomy_xml_rdf_namespaces() {
  return array(
    'og' => 'http://ogp.me/ns#',
    'an' => 'http://www.w3.org/2000/10/annotation-ns#',
    'content' => 'http://purl.org/rss/1.0/modules/content/',
    'dc' => 'http://purl.org/dc/elements/1.1/',
    'dct' => 'http://purl.org/dc/terms/',
    'foaf' => 'http://xmlns.com/foaf/0.1/',
    'geo' => 'http://www.w3.org/2003/01/geo/wgs84_pos#',
    'ical' => 'http://www.w3.org/2002/12/cal/icaltzd#',
    'owl' => 'http://www.w3.org/2002/07/owl#',
    'posh' => 'http://poshrdf.org/ns/posh/',
    'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
    'rdfs' => 'http://www.w3.org/2000/01/rdf-schema#',
    'rev' => 'http://www.purl.org/stuff/rev#',
    'rss' => 'http://purl.org/rss/1.0/',
    'sioc' => 'http://rdfs.org/sioc/ns#',
    'sioct' => 'http://rdfs.org/sioc/types#',
    # The 2008 scheme never got stable or recommended

    #'skos' => 'http://www.w3.org/2008/05/skos#',

    # D7 etc settled on :
    'skos' => 'http://www.w3.org/2004/02/skos/core#',
    'uri' => 'http://www.w3.org/2006/uri#',
    'vcard' => 'http://www.w3.org/2006/vcard/ns#',
    'xfn' => 'http://gmpg.org/xfn/11#',
    'xml' => 'http://www.w3.org/XML/1998/namespace',
    'xsd' => 'http://www.w3.org/2001/XMLSchema#',
  );
}