annotate core/modules/rdf/rdf.api.php @ 19:fa3358dc1485 tip

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