|
|
@ -10,71 +10,76 @@ |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string $bundle |
|
|
|
* @param string $bundle |
|
|
|
* The bundle to associate with the RDF mapping. |
|
|
|
* The bundle to associate with the RDF mapping. |
|
|
|
|
|
|
|
* @param string $rdf_type |
|
|
|
|
|
|
|
* The RDF type to associate with the bundle. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* return array |
|
|
|
|
|
|
|
* The default RDF mapping for Islandora content types. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function islandora_get_default_rdf_mapping($bundle) { |
|
|
|
function islandora_get_default_rdf_mapping($bundle, $rdf_type) { |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
array( |
|
|
|
array( |
|
|
|
'type' => 'node', |
|
|
|
'type' => 'node', |
|
|
|
'bundle' => $bundle, |
|
|
|
'bundle' => $bundle, |
|
|
|
'mapping' => array( |
|
|
|
'mapping' => array( |
|
|
|
'rdftype' => array('islandora:collection'), |
|
|
|
'rdftype' => array($rdf_type), |
|
|
|
'field_dcterms_contributor' => array( |
|
|
|
ISLANDORA_DCTERMS_CONTRIBUTOR_FIELD => array( |
|
|
|
'predicates' => array('dc:contributor'), |
|
|
|
'predicates' => array('dc:contributor'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_coverage' => array( |
|
|
|
ISLANDORA_DCTERMS_COVERAGE_FIELD => array( |
|
|
|
'predicates' => array('dc:coverage'), |
|
|
|
'predicates' => array('dc:coverage'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_creator' => array( |
|
|
|
ISLANDORA_DCTERMS_CREATOR_FIELD => array( |
|
|
|
'predicates' => array('dc:creator'), |
|
|
|
'predicates' => array('dc:creator'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_date' => array( |
|
|
|
ISLANDORA_DCTERMS_DATE_FIELD => array( |
|
|
|
'predicates' => array('dc:date'), |
|
|
|
'predicates' => array('dc:date'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_description' => array( |
|
|
|
ISLANDORA_DCTERMS_DESCRIPTION_FIELD => array( |
|
|
|
'predicates' => array('dc:description'), |
|
|
|
'predicates' => array('dc:description'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_format' => array( |
|
|
|
ISLANDORA_DCTERMS_FORMAT_FIELD => array( |
|
|
|
'predicates' => array('dc:format'), |
|
|
|
'predicates' => array('dc:format'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_identifier' => array( |
|
|
|
ISLANDORA_DCTERMS_IDENTIFIER_FIELD => array( |
|
|
|
'predicates' => array('dc:identifier'), |
|
|
|
'predicates' => array('dc:identifier'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_language' => array( |
|
|
|
ISLANDORA_DCTERMS_LANGUAGE_FIELD => array( |
|
|
|
'predicates' => array('dc:language'), |
|
|
|
'predicates' => array('dc:language'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_publisher' => array( |
|
|
|
ISLANDORA_DCTERMS_PUBLISHER_FIELD => array( |
|
|
|
'predicates' => array('dc:publisher'), |
|
|
|
'predicates' => array('dc:publisher'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_relation' => array( |
|
|
|
ISLANDORA_DCTERMS_RELATION_FIELD => array( |
|
|
|
'predicates' => array('dc:relation'), |
|
|
|
'predicates' => array('dc:relation'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_rights' => array( |
|
|
|
ISLANDORA_DCTERMS_RIGHTS_FIELD => array( |
|
|
|
'predicates' => array('dc:rights'), |
|
|
|
'predicates' => array('dc:rights'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_source' => array( |
|
|
|
ISLANDORA_DCTERMS_SOURCE_FIELD => array( |
|
|
|
'predicates' => array('dc:source'), |
|
|
|
'predicates' => array('dc:source'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_subject' => array( |
|
|
|
ISLANDORA_DCTERMS_SUBJECT_FIELD => array( |
|
|
|
'predicates' => array('dc:subject'), |
|
|
|
'predicates' => array('dc:subject'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_title' => array( |
|
|
|
ISLANDORA_DCTERMS_TITLE_FIELD => array( |
|
|
|
'predicates' => array('dc:title'), |
|
|
|
'predicates' => array('dc:title'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|
'field_dcterms_type' => array( |
|
|
|
ISLANDORA_DCTERMS_TYPE_FIELD => array( |
|
|
|
'predicates' => array('dc:type'), |
|
|
|
'predicates' => array('dc:type'), |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
'datatype' => 'xsd:string', |
|
|
|
), |
|
|
|
), |
|
|
|