function rdf_test_rdf_mapping
Implements hook_rdf_mapping().
File
-
modules/
rdf/ tests/ rdf_test.module, line 11
Code
function rdf_test_rdf_mapping() {
return array(
array(
'type' => 'test_entity',
'bundle' => 'test_bundle',
'mapping' => array(
'rdftype' => array(
'sioc:Post',
),
'title' => array(
'predicates' => array(
'dc:title',
),
),
'created' => array(
'predicates' => array(
'dc:created',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'uid' => array(
'predicates' => array(
'sioc:has_creator',
'dc:creator',
),
'type' => 'rel',
),
'foobar' => array(
'predicates' => array(
'foo:bar',
),
),
'foobar1' => array(
'datatype' => 'foo:bar1type',
'predicates' => array(
'foo:bar1',
),
),
'foobar_objproperty1' => array(
'predicates' => array(
'sioc:has_creator',
'dc:creator',
),
'type' => 'rel',
),
'foobar_objproperty2' => array(
'predicates' => array(
'sioc:reply_of',
),
'type' => 'rev',
),
),
),
array(
'type' => 'node',
'bundle' => 'blog',
'mapping' => array(
'rdftype' => array(
'sioct:Weblog',
),
),
),
);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.