From 9a24b3dd121bedde70835cf22b208a5b36a24eea Mon Sep 17 00:00:00 2001 From: Jared Whiklo Date: Tue, 3 Jan 2017 07:47:26 -0600 Subject: [PATCH] Add default RDF mapping for NonRdfSource (#18) * Add default rdf mapping * Fix the id * Correct rdf types --- ...ng.fedora_resource_type.non_rdf_source.yml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 islandora/config/install/rdf.mapping.fedora_resource_type.non_rdf_source.yml diff --git a/islandora/config/install/rdf.mapping.fedora_resource_type.non_rdf_source.yml b/islandora/config/install/rdf.mapping.fedora_resource_type.non_rdf_source.yml new file mode 100644 index 00000000..c6eac02a --- /dev/null +++ b/islandora/config/install/rdf.mapping.fedora_resource_type.non_rdf_source.yml @@ -0,0 +1,43 @@ +langcode: en +status: true +dependencies: + config: + - islandora.fedora_resource_type.non_rdf_source + module: + - islandora +id: fedora_resource_type.non_rdf_source +targetEntityType: fedora_resource +bundle: non_rdf_source +types: + - 'schema:Thing' + - 'ldp:NonRDFSource' +fieldMappings: + title: + properties: + - 'dc11:title' + - 'rdf:label' + created: + properties: + - 'schema:dateCreated' + datatype_callback: + callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value' + changed: + properties: + - 'schema:dateModified' + datatype_callback: + callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value' + rdf_type: + properties: + - 'rdf:type' + uid: + properties: + - 'schema:author' + mapping_type: rel + fedora_has_parent: + properties: + - 'fedora:hasParent' + mapping_type: rel + ldp_contains: + properties: + - 'ldp:contains' + mapping_type: rel \ No newline at end of file