function organigrams_rdf_mapping in Organigrams 7
Implements hook_rdf_mapping().
File
- ./
organigrams.module, line 626 - Defines the organigrams functions and entity types.
Code
function organigrams_rdf_mapping() {
return array(
array(
'type' => 'organigrams_item',
'bundle' => RDF_DEFAULT_BUNDLE,
'mapping' => array(
'rdftype' => array(
'skos:Concept',
),
'name' => array(
'predicates' => array(
'rdfs:label',
'skos:prefLabel',
),
),
'oid' => array(
'predicates' => array(
'skos:inScheme',
),
'type' => 'rel',
),
'parent' => array(
'predicates' => array(
'skos:broader',
),
'type' => 'rel',
),
),
),
array(
'type' => 'organigrams',
'bundle' => RDF_DEFAULT_BUNDLE,
'mapping' => array(
'rdftype' => array(
'skos:ConceptScheme',
),
'name' => array(
'predicates' => array(
'dc:title',
),
),
'description' => array(
'predicates' => array(
'rdfs:comment',
),
),
),
),
);
}