function rdf_example_rdf_namespaces in Examples for Developers 7
Implements hook_rdf_namespaces().
This hook should be used to define any prefixes used by this module that are not already defined in core by rdf_rdf_namespaces.
See also
Related topics
File
- rdf_example/
rdf_example.module, line 61 - This is an example outlining how a module can be used to define RDF mappings. We define mappings for a node type defined in this module. We also customize mappings for a node type that is defined in another module, node_example.
Code
function rdf_example_rdf_namespaces() {
return array(
// Google's namespace for their custom vocabularies.
'v' => 'http://rdf.data-vocabulary.org/#',
);
}