diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-03 07:34:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-03 07:34:25 +0000 |
commit | ba93c4911c7b506c9f94ceac2fe404b6e96a9574 (patch) | |
tree | 3969c3d2261a9089c19dda063ccd4865da1ec6c0 /modules/rdf | |
parent | 6980775436323c7b973b588b5f3e86adcf1e5067 (diff) | |
download | brdo-ba93c4911c7b506c9f94ceac2fe404b6e96a9574.tar.gz brdo-ba93c4911c7b506c9f94ceac2fe404b6e96a9574.tar.bz2 |
- Patch #720610 by andrewmacpherson: move the core RDF namespace definitions in the rdf module.
Diffstat (limited to 'modules/rdf')
-rw-r--r-- | modules/rdf/rdf.module | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/rdf/rdf.module b/modules/rdf/rdf.module index 01a3f8c7a..34f7dac2d 100644 --- a/modules/rdf/rdf.module +++ b/modules/rdf/rdf.module @@ -71,6 +71,28 @@ function rdf_help($path, $arg) { define('RDF_DEFAULT_BUNDLE', ''); /** + * Implements hook_rdf_namespaces(). + */ +function rdf_rdf_namespaces() { + return array( + 'admin' => 'http://webns.net/mvcb/', + 'content' => 'http://purl.org/rss/1.0/modules/content/', + 'dc' => 'http://purl.org/dc/terms/', + 'foaf' => 'http://xmlns.com/foaf/0.1/', + 'owl' => 'http://www.w3.org/2002/07/owl#', + 'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', + 'rdfs' => 'http://www.w3.org/2000/01/rdf-schema#', + 'rss' => 'http://purl.org/rss/1.0/', + 'tags' => 'http://www.holygoat.co.uk/owl/redwood/0.1/tags/', + 'sioc' => 'http://rdfs.org/sioc/ns#', + 'sioct' => 'http://rdfs.org/sioc/types#', + 'ctag' => 'http://commontag.org/ns#', + 'skos' => 'http://www.w3.org/2004/02/skos/core#', + 'xsd' => 'http://www.w3.org/2001/XMLSchema#', + ); +} + +/** * Returns the mapping for attributes of a given type/bundle pair. * * @param $type |