Browse Source

Issue 439 (#15)

* Add a Collection bundle for FedoraResource

* update rdf mapping

* field type changes, add enforced module

* Default collection rdf mapping

* Forgot uuid

* Adding pcdm namespace

* Using hasURN for uuids.

* Adding dc back in
pull/756/head
dannylamb 8 years ago committed by Jared Whiklo
parent
commit
589d3e651d
  1. 1
      islandora/islandora.module
  2. 12
      islandora_collection/config/install/rdf.mapping.fedora_resource_type.collection.yml

1
islandora/islandora.module

@ -81,5 +81,6 @@ function islandora_rdf_namespaces() {
'ore' => 'http://www.openarchives.org/ore/terms/', 'ore' => 'http://www.openarchives.org/ore/terms/',
'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
'islandora' => 'http://islandora.ca/CLAW/', 'islandora' => 'http://islandora.ca/CLAW/',
'pcdm' => 'http://pcdm.org/models#',
); );
} }

12
islandora_collection/config/install/rdf.mapping.fedora_resource_type.collection.yml

@ -12,24 +12,24 @@ id: fedora_resource.collection
targetEntityType: fedora_resource targetEntityType: fedora_resource
bundle: collection bundle: collection
types: types:
- 'schema:Thing' - 'pcdm:Collection'
- 'ldp:RDFSource' - 'schema:CollectionPage'
- 'ldp:Container'
fieldMappings: fieldMappings:
field_description: field_description:
properties: properties:
- 'dc:description' - 'dc:description'
field_memberof: field_memberof:
properties: properties:
- 'dc:isPartOf' - 'pcdm:memberOf'
uuid:
properties:
- 'islandora:hasURN'
name: name:
properties: properties:
- 'dc:title' - 'dc:title'
- 'rdf:label'
created: created:
properties: properties:
- 'schema:dateCreated' - 'schema:dateCreated'
- 'dc:created'
datatype_callback: datatype_callback:
callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value' callable: 'Drupal\rdf\CommonDataConverter::dateIso8601Value'
changed: changed:

Loading…
Cancel
Save