Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / rdf / rdf.api.php
1 <?php
2
3 /**
4  * @file
5  * Hooks provided by the RDF module.
6  */
7
8 /**
9  * @addtogroup hooks
10  * @{
11  */
12
13 /**
14  * Allow modules to define namespaces for RDF mappings.
15  *
16  * Many common namespace prefixes are defined in rdf_rdf_namespaces(). However,
17  * if a module implements rdf mappings that use prefixes that are not
18  * defined in rdf_rdf_namespaces(), this hook should be used to define the new
19  * namespace prefixes.
20  *
21  * @return string[]
22  *   An associative array of namespaces where the key is the namespace prefix
23  *   and the value is the namespace URI.
24  *
25  * @ingroup rdf
26  */
27 function hook_rdf_namespaces() {
28   return [
29     'content'  => 'http://purl.org/rss/1.0/modules/content/',
30     'dc'       => 'http://purl.org/dc/terms/',
31     'foaf'     => 'http://xmlns.com/foaf/0.1/',
32     'og'       => 'http://ogp.me/ns#',
33     'rdfs'     => 'http://www.w3.org/2000/01/rdf-schema#',
34     'sioc'     => 'http://rdfs.org/sioc/ns#',
35     'sioct'    => 'http://rdfs.org/sioc/types#',
36     'skos'     => 'http://www.w3.org/2004/02/skos/core#',
37     'xsd'      => 'http://www.w3.org/2001/XMLSchema#',
38   ];
39 }
40
41 /**
42  * @} End of "addtogroup hooks".
43  */