Support zip import of RDF data with title in dc:title element #110
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
JIRA Ticket: https://jira.duraspace.org/browse/ISLANDORA-2171
What does this Pull Request do?
The University of Canterbury QuakeStudies archive uses Islandora with RDF datastreams instead of MODS. To allow bulk ingest via the Zip importer, I've modified the importer code to handle an RDF datastream. The RDF should define a dc:title element. An XSLT to map from RDF to DC is required (not included).
A brief description of what the intended result of the PR will be and/or what problem it solves.
Content models using RDF instead of MODS can be imported via the Zip importer.
What's new?
How should this be tested?
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:schema="http://schema.org" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <dc:title>Test photograph 1 (BULK INGEST)</dc:title> </rdf:RDF>
`<xsl:stylesheet version="1.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:srw_dc="info:srw/schema/1/dc-schema"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:schema="http://schema.org"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:qsr="http://quakestudies.canterbury.ac.nz"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="rdf:RDF">
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
xsl:apply-templates/
</oai_dc:dc>
</xsl:for-each>
</xsl:template>
<xsl:template match="dc:*">
xsl:copy
<xsl:value-of select="."/>
</xsl:copy>
</xsl:template> <xsl:template match="*"/>
</xsl:stylesheet>`
drush -u 1 vset --yes zip_importer_path_rdf_to_dc "sites/all/modules/custom/quakestudies_rdf/transforms/quakestudies_object_to_dc.xsl"
A description of what steps someone could take to:
See above.
Additional Notes:
Any additional information that you think would be helpful when reviewing this PR.
Example:
Zip importer docs will need to be updated.
Interested parties
@Islandora/7-x-1-x-committers