123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?php
- function hook_rdf_mapping() {
- return array(
- array(
- 'type' => 'node',
- 'bundle' => 'blog',
- 'mapping' => array(
- 'rdftype' => array('sioct:Weblog'),
- 'title' => array(
- 'predicates' => array('dc:title'),
- ),
- 'created' => array(
- 'predicates' => array('dc:date', 'dc:created'),
- 'datatype' => 'xsd:dateTime',
- 'callback' => 'date_iso8601',
- ),
- 'body' => array(
- 'predicates' => array('content:encoded'),
- ),
- 'uid' => array(
- 'predicates' => array('sioc:has_creator'),
- 'type' => 'rel',
- ),
- 'name' => array(
- 'predicates' => array('foaf:name'),
- ),
- ),
- ),
- );
- }
- function hook_rdf_namespaces() {
- return array(
- '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#',
- );
- }
|