Mercurial > hg > isophonics-drupal-site
view core/modules/rdf/rdf.api.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php /** * @file * Hooks provided by the RDF module. */ /** * @addtogroup hooks * @{ */ /** * Allow modules to define namespaces for RDF mappings. * * Many common namespace prefixes are defined in rdf_rdf_namespaces(). However, * if a module implements rdf mappings that use prefixes that are not * defined in rdf_rdf_namespaces(), this hook should be used to define the new * namespace prefixes. * * @return string[] * An associative array of namespaces where the key is the namespace prefix * and the value is the namespace URI. * * @ingroup rdf */ function hook_rdf_namespaces() { return [ 'content' => 'http://purl.org/rss/1.0/modules/content/', 'dc' => 'http://purl.org/dc/terms/', 'foaf' => 'http://xmlns.com/foaf/0.1/', 'og' => 'http://ogp.me/ns#', 'rdfs' => 'http://www.w3.org/2000/01/rdf-schema#', 'sioc' => 'http://rdfs.org/sioc/ns#', 'sioct' => 'http://rdfs.org/sioc/types#', 'skos' => 'http://www.w3.org/2004/02/skos/core#', 'xsd' => 'http://www.w3.org/2001/XMLSchema#', ]; } /** * @} End of "addtogroup hooks". */