<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.archivematica.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Amberleahey</id>
	<title>Archivematica - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.archivematica.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Amberleahey"/>
	<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/Special:Contributions/Amberleahey"/>
	<updated>2026-06-03T05:07:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12752</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12752"/>
		<updated>2018-10-31T14:59:50Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica [https://wiki.archivematica.org/Archivematica_1.8_and_Storage_Service_0.13_release_notes (v1.8)], integration with the Dataverse repository as a transfer source type supports the selection and processing of Dataverse research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early proof-of-concept integration project in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12751</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12751"/>
		<updated>2018-10-31T14:59:17Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica [https://wiki.archivematica.org/Archivematica_1.8_and_Storage_Service_0.13_release_notes (v1.8)], integration with the Dataverse repository as a transfer source type supports the selection and processing of Dataverse research datasets for the creation of Archival Information Packages (AIPs).   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early proof-of-concept integration project in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12750</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12750"/>
		<updated>2018-10-31T14:58:17Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica [https://wiki.archivematica.org/Archivematica_1.8_and_Storage_Service_0.13_release_notes (v1.8)], integration with the Dataverse repository as a transfer source type supports the selection and processing of Archival Information Packages (AIPs) for Dataverse research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early proof-of-concept integration project in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Archivematica_1.8_and_Storage_Service_0.13_release_notes&amp;diff=12749</id>
		<title>Archivematica 1.8 and Storage Service 0.13 release notes</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Archivematica_1.8_and_Storage_Service_0.13_release_notes&amp;diff=12749"/>
		<updated>2018-10-31T14:55:46Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main_Page|Home]] &amp;gt; [[Release_Notes|Release Notes]] &amp;gt; Major release notes template&lt;br /&gt;
&lt;br /&gt;
'''Work in progress'''&lt;br /&gt;
&lt;br /&gt;
==Supported environments==&lt;br /&gt;
&lt;br /&gt;
Link to installation instructions.&lt;br /&gt;
&lt;br /&gt;
Specify supported environments.&lt;br /&gt;
&lt;br /&gt;
Make special note of any changes to supported environment.&lt;br /&gt;
&lt;br /&gt;
==Added==&lt;br /&gt;
&lt;br /&gt;
===Dataverse integration===&lt;br /&gt;
&lt;br /&gt;
Archivematica can now be configured to use a [https://dataverse.org/ Dataverse] research data repository as a transfer source location. Dataverse transfer source locations can be configured to display all available datasets or a subset of them. Datasets are retrieved directly using the Dataverse API and processed using a new “Dataverse” transfer type. New Dataverse specific processing includes:&lt;br /&gt;
&lt;br /&gt;
* fixity checking using checksums generated by dataverse&lt;br /&gt;
* retrieval of derivative and metadata files associated with tabular data files&lt;br /&gt;
* creation of a Dataverse METS file describing the dataset as retrieved from Dataverse&lt;br /&gt;
* Dataverse metadata included in the AIP METS&lt;br /&gt;
&lt;br /&gt;
Some advanced or more complex use cases are not fully supported, such as handling of datasets with restricted files, versioning of datasets and reingest of datasets. For a full list of known issues and enhancement ideas, refer to the [https://github.com/archivematica/Issues/labels/OCUL%3A%20AM-Dataverse Archivematica issues repository using Dataverse label] and the [https://wiki.archivematica.org/Dataverse Archivematica-Dataverse Integration Project Wiki].   &lt;br /&gt;
&lt;br /&gt;
This work was sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). Thank you!&lt;br /&gt;
&lt;br /&gt;
* Issue: See [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse waffle board] for all issues with the Dataverse label. &lt;br /&gt;
* Documentation: [https://www.archivematica.org/en/docs/archivematica-1.8/user-manual/transfer/dataverse/ Dataverse Integration]&lt;br /&gt;
&lt;br /&gt;
===Processing configuration reset and download buttons===&lt;br /&gt;
&lt;br /&gt;
A new installation of Archivematica comes with a pre-set processing configuration called &amp;quot;default&amp;quot;, and a second one (used only in Jisc workflows) called &amp;quot;automated&amp;quot;. In testing, users are encouraged to change the configurations to suit their workflows, but may need to reset the configuration to the installation pre-sets. A reset button has been added so that users can easily change the default and automated processing configurations back to their installation pre-sets.&lt;br /&gt;
&lt;br /&gt;
The second part of this feature is the addition of a download button for the processing configuration files. If you create a custom processing configuration, you can download the resulting processingMCP.xml file using the button and then include it at the top level of your transfer. Archivematica will then use this to automate your transfer selections, rather than the default configuration.&lt;br /&gt;
&lt;br /&gt;
This work was sponsored by Jisc. Thank you!&lt;br /&gt;
&lt;br /&gt;
* Issue: [https://github.com/artefactual/archivematica/issues/1138 #1138]&lt;br /&gt;
* Documentation: [https://www.archivematica.org/docs/archivematica-1.8/user-manual/administer/dashboard-admin/#processing-configuration Processing configuration documentation]&lt;br /&gt;
&lt;br /&gt;
===Public URL===&lt;br /&gt;
&lt;br /&gt;
Archivematica now has a concept of a public URL in the general configuration. Archivematica usually registers itself with the Storage Service, but if you have deployed Archivematica in an environment where the URL or IP address changes frequently (i.e. in some Docker environments) this can cause issues. In these types of environments, users can now declare a stable public URL that Archivematica can use to register with the Storage Service.&lt;br /&gt;
&lt;br /&gt;
This work was sponsored by Jisc. Thank you!&lt;br /&gt;
&lt;br /&gt;
* Issue: [https://github.com/artefactual/archivematica/issues/1140 1140]&lt;br /&gt;
* Documentation: [https://www.archivematica.org/docs/archivematica-1.8/admin-manual/installation-setup/customization/dashboard-config/#admin-dashboard-general General configuration]&lt;br /&gt;
&lt;br /&gt;
==Changed==&lt;br /&gt;
&lt;br /&gt;
Enhancements or major fixes.&lt;br /&gt;
&lt;br /&gt;
===Streamline checksum verification===&lt;br /&gt;
&lt;br /&gt;
This enhancement de-duplicates checksum verification in Archivematica, which helps to improve the performance of Archivematica in processing large transfers (many files and/or large files). This enhancement includes three changes:&lt;br /&gt;
&lt;br /&gt;
* Remove the &amp;quot;Verify checksums generated on ingest&amp;quot; micro-service&lt;br /&gt;
* Enhance the &amp;quot;Verify AIP&amp;quot; micro-service to bulk query the database for transfer-generated checksums and then verify that they match what is documented in the bag-generated manifest-&amp;lt;ALGORITHM&amp;gt;.txt.&lt;br /&gt;
* Have &amp;quot;Verify AIP&amp;quot; create an AIP-level &amp;quot;fixity check&amp;quot; PREMIS:EVENT that it can pass to the Storage Service, which will document this verification in the pointer file.&lt;br /&gt;
&lt;br /&gt;
This should not impact regular workflows, but it is worth noting that there is no AIP-level fixity check PREMIS event for uncompressed AIPs, which don't have pointer files. For uncompressed AIPs, there are still object-level fixity events in place. Note that there is an issue in the Archivematica Issues repository regarding this note - [https://github.com/artefactual/archivematica-storage-service/issues/324 Problem: uncompressed AIPs need pointer files #32]&lt;br /&gt;
&lt;br /&gt;
This work was sponsored by Columbia University Library. Thank you!&lt;br /&gt;
&lt;br /&gt;
* Issue: [https://github.com/artefactual/archivematica/issues/918 918]&lt;br /&gt;
&lt;br /&gt;
===Indexing can be enabled/disabled for Transfers and/or Archival Storage===&lt;br /&gt;
&lt;br /&gt;
Previously, the ElasticSearch index feature could be disabled globally as a scalability measure since indexing consumes a lot of resources. However, this also disabled Backlog and Appraisal features (which also uses indexing) and which some users still wanted to access. As of release 1.8, Archivematica can be deployed to run with indexing enabled just for Transfers (Backlog and Appraisal enabled), just for Archival Storage (Backlog and Appraisal disabled), for both indexes, or for none.&lt;br /&gt;
&lt;br /&gt;
* Issue: [https://github.com/artefactual/archivematica/issues/1172 1172]&lt;br /&gt;
* Documentation: [https://www.archivematica.org/docs/archivematica-1.8/admin-manual/installation-setup/installation/installation/#elasticsearch Installation &amp;gt; Elasticsearch]&lt;br /&gt;
&lt;br /&gt;
===Configure email settings===&lt;br /&gt;
&lt;br /&gt;
This change improves the ways that the email client in Archivematica can be configured, including allowing an administrator to set the sender email address for emails sent by Archivematica (i.e. normalization reports, failure reports) to comply with local IT requirements.&lt;br /&gt;
&lt;br /&gt;
This work was sponsored by Jisc. Thank you!&lt;br /&gt;
&lt;br /&gt;
* Issue: [https://github.com/artefactual/archivematica/issues/1128 1128]&lt;br /&gt;
* Documentation: [https://www.archivematica.org/docs/archivematica-1.8/admin-manual/installation-setup/customization/customization/#email-notification-configuration Email notification configuration]&lt;br /&gt;
&lt;br /&gt;
===Download processing configuration and reset to default===&lt;br /&gt;
&lt;br /&gt;
Previous versions of Archivematica introduced the ability to add custom processing configurations, but users had to retrieve the custom configuration file via the command line to use it. There is now a download button on Administration &amp;gt; Processing configuration so that you can download the processing config from the user interface.&lt;br /&gt;
&lt;br /&gt;
You can also reset a processing configuration to the installation pre-set by clicking on the new reset button on Administration &amp;gt; Processing configuration.&lt;br /&gt;
&lt;br /&gt;
The documentation for using a custom processing configuration has also been updated.&lt;br /&gt;
&lt;br /&gt;
This work was sponsored by Jisc. Thank you!&lt;br /&gt;
&lt;br /&gt;
* Issue: [https://github.com/artefactual/archivematica/issues/1138 1138], [https://github.com/artefactual/archivematica/issues/800 800]&lt;br /&gt;
* Documentation: [https://www.archivematica.org/en/docs/archivematica-1.8/user-manual/administer/dashboard-admin/#processing-configuration Processing configuration (user manual)], [https://www.archivematica.org/en/docs/archivematica-1.8/admin-manual/installation-setup/customization/dashboard-config/#processing-configuration Processing configuration (administrator manual)], [https://www.archivematica.org/en/docs/archivematica-1.8/admin-manual/installation-setup/customization/dashboard-config/#using-a-custom-processing-configuration-file Using a custom processing configuration file]&lt;br /&gt;
&lt;br /&gt;
===MCP batching for scalability &amp;amp; performance===&lt;br /&gt;
&lt;br /&gt;
This feature refactors how tasks are scheduled, executed &amp;amp; managed within Archivematica, by grouping tasks into batches. It introduces processing efficiencies that significantly decrease the processing power and time required to complete Transfer and Ingest. It includes new configuration options to further optimize processing efficiency for particular types of Transfers (e.g. few large files vs. many small files) and for different deployment patterns (e.g. installing components across multiple machines). &lt;br /&gt;
&lt;br /&gt;
This feature does not impact the functionality or appearance of Archivematica.&lt;br /&gt;
&lt;br /&gt;
This work was sponsored by Jisc. Thank you!  &lt;br /&gt;
&lt;br /&gt;
* Issue: [https://github.com/artefactual/archivematica/issues/938 938]&lt;br /&gt;
* Documentation: Scaling Archivematica [update with link when PR 182 is merged];&lt;br /&gt;
&lt;br /&gt;
===Binder integration improvements===&lt;br /&gt;
&lt;br /&gt;
Archivematica has had an integration with [https://binder.readthedocs.io/en/latest/user-manual/overview/intro.html Binder] for several years. Binder is an open-source web application for managing time-based media and born-digital artworks that also depends on TMS.&lt;br /&gt;
&lt;br /&gt;
Since Binder is built off of [https://www.accesstomemory.org/ AtoM], much of the integration configuration was repurposed from the AtoM integration. Archivematica 1.8 makes it explicit, for example, that the job &amp;quot;DIP Upload to AtoM&amp;quot; is actually &amp;quot;DIP Upload to AtoM/Binder&amp;quot;. In the Administration tab, the configuration section for AtoM has also been renamed to include Binder.&lt;br /&gt;
&lt;br /&gt;
Enhancing the Binder integration itself, Archivematica's transfer tab now includes an &amp;quot;Access system ID&amp;quot; box. This allows users to pre-populate an access system ID for AtoM or Binder, so that DIPs can be automatically uploaded without having to stop at the Upload DIP microservice. Users can still use the Upload DIP popup if desired.&lt;br /&gt;
&lt;br /&gt;
Finally, we've added documentation on using Binder with Archivematica.&lt;br /&gt;
&lt;br /&gt;
This work was sponsored by Tate. Thank you!&lt;br /&gt;
&lt;br /&gt;
* Documentation: [https://www.archivematica.org/en/docs/archivematica-1.8/admin-manual/installation-setup/integrations/integrations/#binder-integration Binder integration], [https://www.archivematica.org/en/docs/archivematica-1.8/admin-manual/installation-setup/integrations/binder-setup/#binder-setup Using Binder with Archivematica], [https://www.archivematica.org/en/docs/archivematica-1.8/user-manual/access/access/#upload-a-dip-to-binder Upload a DIP to Binder]&lt;br /&gt;
* Issues: [https://github.com/archivematica/Issues/issues/23 23]&lt;br /&gt;
&lt;br /&gt;
===Translations===&lt;br /&gt;
&lt;br /&gt;
First added in 1.7, translations in Archivematica are growing! In this release, we've pulled in translations for Archivematica.org, the documentation, the FPR, the Storage Service, and the Archivematica interface. The biggest part that is still missing is the Archivematica's workflow engine - that is, all of the microservice and job names in the interface. We are planning to include workflow translations in 1.9.&lt;br /&gt;
&lt;br /&gt;
Thanks to our wonderful community of translators on [https://www.transifex.com/artefactual/archivematica/dashboard/ Transifex], Archivematica resources can now be translated from English into French, Spanish, Japanese, Portuguese, Brazilian Portuguese, and Swedish. Note that the completeness of each language for each resource depends on volunteer contributions in Transifex.&lt;br /&gt;
&lt;br /&gt;
This work was originally sponsored by the Canadian Council on Archives through a DHCP grant. Thank you!&lt;br /&gt;
&lt;br /&gt;
* Issue: [https://github.com/archivematica/Issues/issues/231 231]&lt;br /&gt;
* Documentation: [https://www.archivematica.org/en/docs/archivematica-1.8/user-manual/administer/dashboard-admin/#language-choice Languages], [https://www.archivematica.org/en/docs/archivematica-1.8/user-manual/translations/translations/#translations Translating Archivematica]&lt;br /&gt;
&lt;br /&gt;
===File format identification updates===&lt;br /&gt;
&lt;br /&gt;
Archivematica 1.8 is now up to date with PRONOM v.94! For more information on new data added to PRONOM, check the [http://www.nationalarchives.gov.uk/aboutapps/pronom/release-notes.xml PRONOM release notes].&lt;br /&gt;
&lt;br /&gt;
This work was sponsored by the Denver Art Museum. Thank you!&lt;br /&gt;
&lt;br /&gt;
==Fixed==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/16 ASCII codes can't decode when the filename contains a backtick]&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/42 AIP re-ingest fails]&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/43 PREMIS events from previous transfers are re-appearing]&lt;br /&gt;
* [https://github.com/artefactual/archivematica/issues/1132 Metadata reingest fails when dc:type is null]&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/46 Use 7-zip without compression (Copy) mode]&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/69 Cannot store AIP in DSpace due to file extension returned]&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/123 DSpace REST login error in SS]&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/124 Unable to edit DSpace REST Space settings in SS]&lt;br /&gt;
* [https://github.com/artefactual/archivematica-storage-service/issues/391 Packages cannot be stored in DSpace via its REST API]&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/140 Metadata added before &amp;quot;Approve Transfer&amp;quot; disappears]&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/173 Generate AIP METS fails for bag SIPs if bag-info.txt has multiple instances of the same label]&lt;br /&gt;
* [https://github.com/artefactual/archivematica/issues/1104 Zip files with diacritic characters are failing to extract]&lt;br /&gt;
* [https://github.com/archivematica/Issues/issues/220 restructureBagForComplianceFileUUIDsAssigned needs to create intermediate directories for Zipped bag transfers] - '''Community contribution''' by Hillel Arnold. Thank you!&lt;br /&gt;
* [https://github.com/artefactual/archivematica/issues/1050 Ingest fails if Archivematica isn't connected to the Internet]&lt;br /&gt;
&lt;br /&gt;
==Upgraded tools and dependencies==&lt;br /&gt;
&lt;br /&gt;
* Fido has been upgraded to version 1.3.12&lt;br /&gt;
* Siegfried has been upgraded to version 1.7.10&lt;br /&gt;
* FITS has been upgraded to version 1.1.0&lt;br /&gt;
&lt;br /&gt;
==End of life dependencies==&lt;br /&gt;
&lt;br /&gt;
===Archivists' Toolkit integration===&lt;br /&gt;
&lt;br /&gt;
Archivists' Toolkit has been deprecated since 2013. The Archivists' Toolkit DIP upload feature has not had active development or testing since then. There are no plans to start testing or to fix any problems with the feature. As a result, there is a [https://github.com/archivematica/Issues/issues/174 proposal deprecate this feature in Archivematica 1.9]. Community response is welcome via a comment on the issue in GitHub.&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12748</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12748"/>
		<updated>2018-10-31T14:51:25Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of [https://wiki.archivematica.org/Archivematica_1.8_and_Storage_Service_0.13_release_notes Archivematica v1.8], integration with the Dataverse repository as a transfer source type supports the selection and processing of Archival Information Packages (AIPs) for Dataverse research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early proof-of-concept integration project in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12747</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12747"/>
		<updated>2018-10-31T14:50:39Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica v1.8 [https://wiki.archivematica.org/Archivematica_1.8_and_Storage_Service_0.13_release_notes], integration with the Dataverse repository as a transfer source type supports the selection and processing of Archival Information Packages (AIPs) for Dataverse research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early proof-of-concept integration project in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12746</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12746"/>
		<updated>2018-10-31T14:49:54Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica v1.8, integration with the Dataverse repository as a transfer source type supports the selection and processing of Archival Information Packages (AIPs) for Dataverse research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early proof-of-concept integration project in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12745</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12745"/>
		<updated>2018-10-31T14:46:04Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica v1.8, integration with the Dataverse repository as a transfer source type supports the selection and processing of Archival Information Packages (AIPs) for Dataverse research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early Proof of Concept integration in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12744</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12744"/>
		<updated>2018-10-31T14:45:20Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica v1.8, integration with the Dataverse repository as a transfer source type supports the selection and processing of Dataverse research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early Proof of Concept integration in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12743</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12743"/>
		<updated>2018-10-31T14:44:46Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica v1.8, integration with a Dataverse repository as a transfer source type supports the selection and processing of Dataverse research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early Proof of Concept integration in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12742</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12742"/>
		<updated>2018-10-31T14:44:13Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica v1.8, integration with Dataverse repository as a transfer source type supports the selection and processing of Dataverse research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early Proof of Concept integration in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12741</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12741"/>
		<updated>2018-10-31T14:43:27Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica v1.8, integration with Dataverse repository as a transfer source type supports the selection and processing of research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early Proof of Concept integration in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12740</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12740"/>
		<updated>2018-10-31T14:41:44Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. As of Archivematica v1.8, integration with Dataverse as a transfer source location supports selection and processing of research datasets.   &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early Proof of Concept integration in 2015, which was only made available in a development branch of Archivematica. Phase 2 of this project improves on that original integration work and merges it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
	<entry>
		<id>https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12739</id>
		<title>Dataverse</title>
		<link rel="alternate" type="text/html" href="https://wiki.archivematica.org/index.php?title=Dataverse&amp;diff=12739"/>
		<updated>2018-10-31T14:33:05Z</updated>

		<summary type="html">&lt;p&gt;Amberleahey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Main Page]] &amp;gt; [[Documentation]] &amp;gt; [[Requirements]] &amp;gt; Dataverse&lt;br /&gt;
&lt;br /&gt;
This page sets out the requirements and designs for integration with [http://dataverse.org Dataverse]. &lt;br /&gt;
&lt;br /&gt;
This page was originally created as part of an early Proof of Concept integration in 2015, which was only made available in a development branch of Archivematica. We have now started a phase 2 project to improve on that original integration work and merge it into a public release of Archivematica (v1.8).  This work is being sponsored by [https://scholarsportal.info/ Scholars Portal], a service of the Ontario Council of University Libraries (OCUL). &lt;br /&gt;
&lt;br /&gt;
[[Category:Feature requirements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Current Status==&lt;br /&gt;
&lt;br /&gt;
'''September 6, 2018'''&lt;br /&gt;
Development work is almost complete. QA is in progress. Changes are scheduled to be included in version 1.8 of Archviematica. To see the current status of work, and any outstanding issue, please see the Waffle Board or Board's linked to [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse below]:&lt;br /&gt;
&lt;br /&gt;
* [https://waffle.io/artefactual/archivematica?label=OCUL:%20AM-Dataverse Waffle board for the Dataverse Feature]&lt;br /&gt;
&lt;br /&gt;
This [https://drive.google.com/open?id=1XlHZF2Sryg_79qzw7G-R4PeWmMcPgRug screencast] provides a demonstration of the current implementation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Overview of Dataverse to Archivematica Integration ==&lt;br /&gt;
&lt;br /&gt;
=== Feature Files ===&lt;br /&gt;
On this project we are using [http://docs.behat.org/en/v2.5/guides/1.gherkin.html Gherkin] feature files to define the desired behaviour of preserving a dataset from a Dataverse.  Feature files are also known as Acceptance Tests, because they specify the behaviour that we will test at the end of the project. The draft versions &amp;amp; comments are documented in this [https://docs.google.com/document/d/1KqhpTuiSY2_B5oAM1cgXHAA72hmiUa8SBh4laylTkGo/edit feature file]. &lt;br /&gt;
&lt;br /&gt;
'''Feature: Preserve a Dataverse dataset''' &lt;br /&gt;
 &lt;br /&gt;
  Alma is an Archivematica user &lt;br /&gt;
  And they want to preserve a dataset published in a Dataverse&lt;br /&gt;
    ''Definitions''  &lt;br /&gt;
    Dataverse Dataset: A dataset that has been published in a Dataverse, including all &lt;br /&gt;
    original files uploaded to dataverse, and any derivative files created by Dataverse.  &lt;br /&gt;
    Dataverse METS: A metadata file using the METS standard that describes a dataset; &lt;br /&gt;
    including descriptive metadata, list of all objects in the dataset, their structure &lt;br /&gt;
    and relationships to each other. &lt;br /&gt;
  ''Scenario: Manual Selection of Dataset''&lt;br /&gt;
    Given the Storage Service is configured to connect to a Dataverse Repository &lt;br /&gt;
      And the dataset has been published in Dataverse &lt;br /&gt;
  When the user selects the transfer type “Dataverse” &lt;br /&gt;
    And the user selects the dataset to be preserved  &lt;br /&gt;
    And the user enters the &amp;lt;Transfer Name&amp;gt;&lt;br /&gt;
    And the user enters the (optional) &amp;lt;Accession number&amp;gt; &lt;br /&gt;
    And the users clicks the “Start Transfer” Button&lt;br /&gt;
  Then Archivematica copies the files from Dataverse to a local processing directory   &lt;br /&gt;
    And the Approve Transfer microservice asks the user to approve the transfer&lt;br /&gt;
    And the user selects yes &lt;br /&gt;
    And the Verify Transfer Compliance microservice creates the Dataverse METS&lt;br /&gt;
    And the Dataverse metadata files are generated and included in a metadata directory &lt;br /&gt;
    And the Verify Transfer Compliance microservice confirms this is a valid Dataverse Transfer&lt;br /&gt;
    And the Verify Transfer Checksums microservice confirms the checksums provided by dataverse match those generated for each file in the dataset&lt;br /&gt;
    And the AIP Mets File includes the Dataverse generated events&lt;br /&gt;
    And the completed AIP is stored in the specified Dataverse storage location&lt;br /&gt;
 &lt;br /&gt;
===Dataverse Workflow===&lt;br /&gt;
&lt;br /&gt;
[[File:Dataverse_Workflow_overview.png|800px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''1) User Selects Dataset''' &lt;br /&gt;
When the Storage Service is configured to connect to Dataverse, the Transfer Browser in the Dashboard will display a list of all Dataverse Transfer Source Locations. Transfer Source locations can be configured to filter on search terms, or on a particular dataverse. See (TODO - add link to SS documentation). Users can browse through the datasets available, select one and set the Transfer type to Dataverse. &lt;br /&gt;
&lt;br /&gt;
'''2) Storage Service Retrieves Dataset'''&lt;br /&gt;
The storage services uses the Dataverse API to retrieve the selected dataset. API credentials are stored in the Storage Service Space. &lt;br /&gt;
&lt;br /&gt;
'''3) Prepare Transfer''' &lt;br /&gt;
&lt;br /&gt;
Archivematica creates a metadata file called agents.json that includes the agent information configured in the storage service. This information is used to populate the PREMIS agent details in the METS files. See [[Dataverse#agents.json]] for more details. &lt;br /&gt;
&lt;br /&gt;
When a dataset includes a &amp;quot;bundle&amp;quot; of related files for tabular data, it is provided as a .zip file. Archivematica extracts all of the files in bundles at this stage. Other .zip files are not affected, and can be extracted or not using the standard processing configuration options. See TO DO - ADD LINK TO dataset section&lt;br /&gt;
&lt;br /&gt;
'''4) Transfer &amp;amp; Ingest'''&lt;br /&gt;
&lt;br /&gt;
Archivematica performs transfer and ingest processes using the standard processing configuration options. Additional processing for Dataverse datasets include&lt;br /&gt;
* creating a Dataverse METS that describes the dataset as provided by Dataverse&lt;br /&gt;
* fixity check of files using checksums provided by Dataverse&lt;br /&gt;
* including Dataverse metadata (from the Dataverse METS) in the final AIP METS &lt;br /&gt;
&lt;br /&gt;
'''5) Store the AIP'''&lt;br /&gt;
&lt;br /&gt;
The AIP is stored in whatever location has been configured. Scholar's Portal intend to store their AIPs in an S3 location (which is a standard configuration option as of Storage Service version 0.12). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse Datasets ==&lt;br /&gt;
&lt;br /&gt;
=== Dataset Metadata file - dataset.json ===&lt;br /&gt;
This file is provided by Dataverse. It contains citation and other study-level metadata, an entity_id field that is used to identify the study in Dataverse, version information, a list of data files with their own entity_id values, and md5 checksums for each (original) data file. (It does not currently provide checksums for derivatives or metadata files created by dataverse)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agents Metadata file - agents.json ===&lt;br /&gt;
This file is created by Archivematica. It includes the Agent information that is entered into the Storage Service when configuring a Dataverse Location. To do: add link to final docs once they are updated. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
=== Bundles for tabular data files ===&lt;br /&gt;
&lt;br /&gt;
When Dataverse [http://guides.dataverse.org/en/latest/user/tabulardataingest/index.html ingests some forms of tabular data], it creates derivatives of the original data file and additional metadata files. All of these files are provided in a [http://guides.dataverse.org/en/latest/user/dataset-management.html?highlight=bundle bundle] as a zipped package, containing: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The original file uploaded by the user;&lt;br /&gt;
* Different derivative (alternative) formats of the original file (e.g. tab-delimited file, R data file)&lt;br /&gt;
* Variable Metadata (as a DDI Codebook XML file);&lt;br /&gt;
* Data File Citation (currently in either RIS or EndNote XML format); &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''TO DO''' - update notes on how bundles are retrieved. the original version of this documentation included these notes which need to be updated / corrected: &lt;br /&gt;
&lt;br /&gt;
[4] If json file has content_type of tab separated values, Archivematica issues API call for multiple file (&amp;quot;bundled&amp;quot;) content download. This returns a zipped package for tsv files containing the .tab file, the original uploaded file, several other derivative formats, a DDI XML file and file citations in Endnote and RIS formats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dataverse METS file ==&lt;br /&gt;
&lt;br /&gt;
Archivematica generates a Dataverse METS file that describes the contents of the dataset as retrieved from Dataverse. The Dataverse METS includes: &lt;br /&gt;
* descriptive metadata about the dataset, mapped to the [https://www.ddialliance.org/Specification/DDI-Codebook/2.5/ DDI standard]&lt;br /&gt;
* a &amp;lt;mets:fileSec&amp;gt; section that lists all files provided, grouped by type (original, metadata or derivative)&lt;br /&gt;
* a &amp;lt;mets:structMap&amp;gt; section that describes the structure of the files as provided by Dataverse (particularly helpful for understanding which files were provided in 'bundles')&lt;br /&gt;
&lt;br /&gt;
The Dataverse METS is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/metadata/transfers/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
(This is also where you will find the dataset.json metadata file provided by Dataverse, and the agents.json metadata file created by Archivematica). &lt;br /&gt;
&lt;br /&gt;
=== Sample Dataverse METS file ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Original Dataverse study retrieved through API call:&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*dataset.json (a JSON file generated by Dataverse consisting of study-level metadata and information about data files)&lt;br /&gt;
*Study_info.pdf (a non-tabular data file)&lt;br /&gt;
*A zipped bundle consisting of the following:&lt;br /&gt;
**YVR_weather_data.sav (an SPSS SAV file uploaded by the researcher)&lt;br /&gt;
**YVR_weather_data.tab (a TAB file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR weather_data.RData (an R file generated from the SPSS SAV file by Dataverse)&lt;br /&gt;
**YVR_weather_data-ddi.xml, YVR_weather_datacitation-endnote.xml, and YVR_weather_datacitation-ris.ris (three metadata files generated for the TAB file by Dataverse)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Resulting Dataverse METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*The fileSec in the METS file consists of three file groups, USE=&amp;quot;original&amp;quot; (the PDF and SAV files); USE=&amp;quot;derivative&amp;quot; (the TAB and R files); and USE=&amp;quot;metadata&amp;quot; (the JSON file and the three metadata files from the zipped bundle).&lt;br /&gt;
*All of the files unpacked from the Dataverse bundle have a GROUPID attribute to indicate the relationship between them. If the transfer had consisted of more than one bundle, each set of unpacked files would have its own GROUPID.&lt;br /&gt;
*Three dmdSecs have been generated:&lt;br /&gt;
**dmdSec_1, consisting of a small number of study-level DDI terms&lt;br /&gt;
**dmdSec_2, consisting of an mdRef to the JSON file&lt;br /&gt;
**dmdSec_3, consisting of an mdRef to the DDI XML file&lt;br /&gt;
*In the structMap, dmdSec_1 and dmdSec_2 are linked to the study as a whole, while dmdSec_3 is linked to the TAB file. The endnote and ris files have not been made into dmdSecs because they contain small subsets of metadata which are already captured in dmdSec_1 and the DDI xml file.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:METS1G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS2G.png|900px|thumb|center]]&lt;br /&gt;
[[File:METS3G.png|900px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Metadata sources for METS file&amp;lt;/b&amp;gt;&lt;br /&gt;
The table below shows how elements in the METS files are populated from metadata or files provided with Dataverse Datasets. &lt;br /&gt;
&lt;br /&gt;
More metadata from dataverse could be mapped into the METS files. Scholar's Portal would like to see more metadata in the AIP to enable better indexing &amp;amp; search / discovery of datasets. To show which fields could be used, we took a version of the Dataverse metadata crosswalk, and created our own version that includes Archivematica. The [https://docs.google.com/spreadsheets/d/18Xn4yR-nvbZV5lfrxVNQ8GHM18ilZ_IPocP9UeOtCY4/edit?usp=sharing Dataverse 4.0+ to Archivematica Metadata Crosswalk] provides the same details in the table below but also highlights additional fields that should ultimately be mapped into METS.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;10&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!style=&amp;quot;width:15%&amp;quot;|'''METS element'''&lt;br /&gt;
!style=&amp;quot;width:25%&amp;quot;|'''Information source'''&lt;br /&gt;
!style=&amp;quot;width:40%&amp;quot;|'''Notes'''&lt;br /&gt;
|-&lt;br /&gt;
|ddi:titl&lt;br /&gt;
|json: citation/typeName: &amp;quot;title&amp;quot;, value: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo&lt;br /&gt;
|json: authority, identifier&lt;br /&gt;
|json example: &amp;quot;authority&amp;quot;: &amp;quot;10.5072/FK2/&amp;quot;, &amp;quot;identifier&amp;quot;: &amp;quot;0MOPJM&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:IDNo agency attribute&lt;br /&gt;
|json: protocol&lt;br /&gt;
|json example: &amp;quot;protocol&amp;quot;: &amp;quot;doi&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|ddi:AuthEntity&lt;br /&gt;
|json: citation/typeName: &amp;quot;authorName&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:distrbtr&lt;br /&gt;
|json: &amp;quot;publisher&amp;quot;: &amp;quot;Root Dataverse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version date attribute&lt;br /&gt;
|json: &amp;quot;releaseTime&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version type attribute&lt;br /&gt;
|json: &amp;quot;versionState&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:version&lt;br /&gt;
|json: &amp;quot;versionNumber&amp;quot;, &amp;quot;versionMinorNumber&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ddi:restrctn&lt;br /&gt;
|json: &amp;quot;termsOfUse&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;original&amp;quot;&lt;br /&gt;
|json: datafile&lt;br /&gt;
|Each non-tabular data file is listed as a datafile in the files section. Each TAB file derived by Dataverse for uploaded tabular file formats is also listed as a datafile, with the original file uploaded by the researcher indicated by &amp;quot;originalFileFormat&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
|All files that are included in a bundle, except for the original file and the metadata files (see below).&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
|Any files with .json or .ris extension, any -ddi.xml files and -endnote.xml files&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUM&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;: [value]&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CHECKSUMTYPE&lt;br /&gt;
|json: datafile/&amp;quot;md5&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|GROUPID&lt;br /&gt;
|Generated by ingest tool. Each file unpacked from a bundle is given the same group id.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Transfer METS file ==&lt;br /&gt;
During transfer processing, a Transfer METS file is created. This is found in the final AIP in this location: &amp;lt;AIP Name&amp;gt;/data/objects/submissionDocumentation/&amp;lt;transfer name&amp;gt;/METS.xml&lt;br /&gt;
&lt;br /&gt;
This is an existing (standard) process that hasn't been changed in this project.&lt;br /&gt;
&lt;br /&gt;
== AIP METS file ==&lt;br /&gt;
&lt;br /&gt;
=== Basic METS file structure ===&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) METS file will follow the basic structure for a standard Archivematica AIP METS file described at [[METS]]. A new fileGrp USE=&amp;quot;derivative&amp;quot; will be added to indicate TAB, RData and other derivatives generated by Dataverse for uploaded tabular data format files.&lt;br /&gt;
&lt;br /&gt;
=== dmdSecs in AIP METS file ===&lt;br /&gt;
&lt;br /&gt;
The dmdSecs in the Dataverse METS file will be copied over to the AIP METS file.&lt;br /&gt;
&lt;br /&gt;
=== Additions to PREMIS for derivative files ===&lt;br /&gt;
&lt;br /&gt;
In the PREMIS Object entity, relationships between original and derivative tabular format files from Dataverse will be described using PREMIS relationship semantic units. A PREMIS derivation event will be added to indicate the derivative file was generated from the original file, and a Dataverse Agent will be added to indicate the Event was carried out by Dataverse prior to ingest, rather than by Archivematica. &lt;br /&gt;
&lt;br /&gt;
'''Note''' We originally considered adding a creation event for the derivative files as well, but decided that it's not necessary as the event can be inferred from the derivation event and the PREMIS object relationships.&lt;br /&gt;
&lt;br /&gt;
'''Note''' &amp;quot;Derivation&amp;quot; is not an event type on the Library of Congress controlled vocabulary list at http://id.loc.gov/vocabulary/preservation/eventType.html. However, we have submitted it as a proposed new term (November 2015) at http://premisimplementers.pbworks.com/w/page/102413902/Preservation%20Events%20Controlled%20Vocabulary - a list of new terms that is being considered by the PREMIS Editorial Committee.&lt;br /&gt;
&lt;br /&gt;
'''Update''' ''April 2018'': The most recently available Event Type Controlled List (June 2017) does not yet have derivation as a controlled type, https://www.loc.gov/standards/premis/v3/preservation-events.pdf&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
Original SPSS SAV file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;is source of&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[TAB file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;derivation&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;URI&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;premis:agentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierType&amp;gt;URI&amp;lt;/premis:agentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:agentIdentifierValue&amp;gt;http://dataverse.scholarsportal.info/dvn/&amp;lt;/premis:agentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:agentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentName&amp;gt;SP Dataverse Network&amp;lt;/premis:agentName&amp;gt;&lt;br /&gt;
&amp;lt;premis:agentType&amp;gt;organization&amp;lt;/premis:agentType&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Derivative TAB file&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relationshipType&amp;gt;derivation&amp;lt;/premis:relationshipType&amp;gt;&lt;br /&gt;
    &amp;lt;premis:relationshipSubType&amp;gt;has source&amp;lt;/premis:relationshipSubType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentification&amp;gt;                  &lt;br /&gt;
    &amp;lt;premis:relatedObjectIdentifierType&amp;gt;UUID&amp;lt;/premis:relatedObjectIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:relatedObjectIdentifierValue&amp;gt;[SPSS SAV file UUID]&amp;lt;/premis:relatedObjectIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;premis:relationship&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Fixity check for checksums received from Dataverse ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierType&amp;gt;UUID&amp;lt;/premis:eventIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventIdentifierValue&amp;gt;[Event UUID assigned by Archivematica]&amp;lt;/premis:eventIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:eventIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventType&amp;gt;fixity check&amp;lt;/premis:eventType&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDateTime&amp;gt;2015-08-21&amp;lt;/premis:eventDateTime&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventDetail&amp;gt;program=&amp;quot;python&amp;quot;; module=&amp;quot;hashlib.sha256()&amp;quot;&amp;lt;/premis:eventDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcome&amp;gt;Pass&amp;lt;/premis:EventOutcome&amp;gt;&lt;br /&gt;
  &amp;lt;premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
    &amp;lt;premis:eventOutcomeDetailNote&amp;gt;Dataverse checksum 91b65277959ec273763d28ef002e83a6b3fba57c7a3[...] &lt;br /&gt;
verified&amp;lt;/premis:eventOutcomeDetailNote&amp;gt;&lt;br /&gt;
  &amp;lt;/premis:eventOutcomeDetail&amp;gt;&lt;br /&gt;
&amp;lt;premis:eventOutcomeInformation&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierType&amp;gt;preservation system&amp;lt;/premis:linkingAgentIdentifierType&amp;gt;&lt;br /&gt;
  &amp;lt;premis:linkingAgentIdentifierValue&amp;gt;Archivematica 1.4.1&amp;lt;/premis:linkingAgentIdentifierValue&amp;gt;&lt;br /&gt;
&amp;lt;/premis:linkingAgentIdentifier&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== AIP structure ==&lt;br /&gt;
&lt;br /&gt;
An Archival Information Package derived from a Dataverse ingest will have the same basic structure as a generic Archivematica AIP, described at [[AIP_structure]]. There are additional metadata files that are included in a Dataverse-derived AIP, and each zipped bundle that is included in the ingest will result in a separate directory in the AIP. The following is a sample structure.&lt;br /&gt;
&lt;br /&gt;
'''Bag structure'''&lt;br /&gt;
&lt;br /&gt;
The Archival Information Package (AIP) is packaged in the Library of Congress BagIt format, and may be stored compressed or uncompressed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pacific_weather_patterns_study-dfb0b75d-6555-4e99-a8d8-95bed0f6303f.7z&lt;br /&gt;
├── bag-info.txt&lt;br /&gt;
├── bagit.txt &lt;br /&gt;
├── manifest-sha512.txt│   &lt;br /&gt;
├── tagmanifest-md5.txt&lt;br /&gt;
└── data [standard bag directory containing contents of the AIP]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP structure'''&lt;br /&gt;
&lt;br /&gt;
All of the contents of the AIP reside within the data directory:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
├── data&lt;br /&gt;
│   ├── logs [log files generated during processing]&lt;br /&gt;
│   │   ├── fileFormatIdentification.log&lt;br /&gt;
│   │   └── transfers&lt;br /&gt;
│   │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│   │           └── logs&lt;br /&gt;
│   │               ├── extractContents.log&lt;br /&gt;
│   │               ├── fileFormatIdentification.log&lt;br /&gt;
│   │               └── filenameCleanup.log&lt;br /&gt;
│   ├── METS.dfb0b75d-6555-4e99-a8d8-95bed0f6303f.xml [the AIP METS file]&lt;br /&gt;
│   ├── objects [a directory containing the digital objects being preserved, plus their metadata]&lt;br /&gt;
│       ├── chelan_052.jpg [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data.sav [an original file from Dataverse]&lt;br /&gt;
│       ├── Weather_data [a bundle retrieved from Dataverse]&lt;br /&gt;
│       │   ├── Weather_data.xml&lt;br /&gt;
│       │   ├── Weather_data.ris&lt;br /&gt;
│       │   ├── Weather_data-ddi.xml&lt;br /&gt;
│       │   └── Weather_data.tab [a TAB derivative file generated by Dataverse]&lt;br /&gt;
│       ├── metadata&lt;br /&gt;
│       │   └── transfers&lt;br /&gt;
│       │       └── Pacific_weather_patterns_study-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│       │           ├── agents.json [see Dataverse#agents.json] &lt;br /&gt;
│       │           ├── dataset.json [see Dataverse#dataverse.json] &lt;br /&gt;
│       │           └── METS.xml [see Dataverse#Dataverse_METS_file]&lt;br /&gt;
│       └── submissionDocumentation&lt;br /&gt;
│           └── transfer-58-1a0f309a-d3ec-43ee-bb48-a868cd5ca85c&lt;br /&gt;
│               └── METS.xml [the standard Transfer METS file described above]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''AIP METS file structure'''&lt;br /&gt;
&lt;br /&gt;
The AIP METS file records information a bout the contents of the AIP, and indicates the relationships between the various files in the AIP. A sample AIP METS file would be structured as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
METS header&lt;br /&gt;
-Date METS file was created&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-DDI XML metadata taken from the METS transfer file, as follows&lt;br /&gt;
--ddi:title&lt;br /&gt;
--ddi:IDno&lt;br /&gt;
--ddi:authEnty&lt;br /&gt;
--ddi:distrbtr&lt;br /&gt;
--ddi:version&lt;br /&gt;
--ddi:restrctn&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to dataset.json&lt;br /&gt;
METS dmdSec [descriptive metadata section]&lt;br /&gt;
-link to DDI.XML file created for derivative file as part of bundle&lt;br /&gt;
METS amdSec [administrative metadata section, one for each original, derivative and normalized file in the AIP]&lt;br /&gt;
-techMD [technical metadata]&lt;br /&gt;
--PREMIS technical metadata about a digital object, including file format information and extracted metadata&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: derivation (for derived formats)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event:ingestion&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: unpacking (for bundled files)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: message digest calculation&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: virus check&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: format identification&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: fixity check (if file comes from Dataverse with a checksum)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: normalization (if file is normalized to a preservation format during Archivematica processing)&lt;br /&gt;
-digiprovMD [digital provenance metadata]&lt;br /&gt;
--PREMIS event: creation (if file is a normalized preservation master generated during Archivematica processing)&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: organization&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: software&lt;br /&gt;
-digiprovMD&lt;br /&gt;
--PREMIS agent: Archivematica user&lt;br /&gt;
METS fileSec [file section]&lt;br /&gt;
-fileGrp USE=&amp;quot;original&amp;quot; [file group]&lt;br /&gt;
--original files uploaded to Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;derivative&amp;quot;&lt;br /&gt;
--derivative tabular files generated by Dataverse&lt;br /&gt;
-fileGrp USE=&amp;quot;submissionDocumentation&amp;quot;&lt;br /&gt;
--METS.XML (standard Archivematica transfer METS file listing contents of transfer)&lt;br /&gt;
-fileGrp USE=&amp;quot;preservation&amp;quot;&lt;br /&gt;
--normalized preservation masters generated during Archivematica processing&lt;br /&gt;
-fileGrp USE=&amp;quot;metadata&amp;quot;&lt;br /&gt;
--dataset.json&lt;br /&gt;
--DDI.XML&lt;br /&gt;
--xcitation-endnote.xml&lt;br /&gt;
--xcitation-ris.ris&lt;br /&gt;
METS structMap [structural map]&lt;br /&gt;
-directory structure of the contents of the AIP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Future Requirements &amp;amp; Considerations ==&lt;br /&gt;
This section includes working notes for future phases, as interesting opportunities or questions arise. At the end of the current phase we will be documenting the integration as well as future opportunities. &lt;br /&gt;
&lt;br /&gt;
=== Notes from Feature File review meeting on May 1 2018 (2pm EST) ===&lt;br /&gt;
&lt;br /&gt;
'''Choice &amp;amp; Versioning of Dataverse API:''' &lt;br /&gt;
The dataverse Search and Access APIs are not currently versioned. &lt;br /&gt;
The Native API is versioned: http://guides.dataverse.org/en/latest/api/native-api.html&lt;br /&gt;
There is an OAI-PMH interface (although it is not mentioned in the dataverse API guide). Amber said there were idiosyncrasies in the way dataverse implemented PMH, and wasn’t sure it would be a ‘safe’ option. &lt;br /&gt;
Amaz would like to see that we are either using a standard API (like OAI-PMH) or a versioned API. &lt;br /&gt;
Amaz thought wondered whether we could use PMH with the polling part of the solution; but given what Amber said, it doesn’t seem like a good way to go)&lt;br /&gt;
So as part of the project we need to see whether we could use the Native API (even if we don’t actually use it), or we need to raise it as an issue to discuss with the dataverse team.   &lt;br /&gt;
&lt;br /&gt;
'''Relationships between Datasets'''&lt;br /&gt;
Amber pointed out that they are not currently clear exactly what datasets should be preserved, and expects this will vary quite a bit by institution. &lt;br /&gt;
We discussed the question of whether all datasets in a dataverse would be preserved (not currently known), which brought up the question of how to relate datasets. &lt;br /&gt;
We talked about AICs as one possible solution. But agreed that it’s a new feature and needs to be thought through… there could be other solutions than AIC. &lt;br /&gt;
&lt;br /&gt;
'''Improving agent info in event history in METS'''&lt;br /&gt;
We pointed out that having an agent other than Archivematica in the METS is a new feature&lt;br /&gt;
Discussed the fact that we could make this even more specific by adding more agents. For instance, differentiating between the researcher who uploaded files from the research data manager who published the dataset. &lt;br /&gt;
&lt;br /&gt;
'''Notes from Dataverse Testing:''' &lt;br /&gt;
&lt;br /&gt;
Should a preserved dataset include an equivalent of fixity check on any UNFs created by Dataverse? &lt;br /&gt;
https://dataverse.scholarsportal.info/guides/en/4.8.6/developers/unf/index.html#unf&lt;br /&gt;
Universal Numerical Fingerprint (UNF) is a unique signature of the semantic content of a digital object. It is not simply a checksum of a binary data file. Instead, the UNF algorithm approximates and normalizes the data stored within. A cryptographic hash of that normalized (or canonicalized) representation is then computed.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Sword API]]&lt;br /&gt;
* [[Dataset preservation]]&lt;/div&gt;</summary>
		<author><name>Amberleahey</name></author>
	</entry>
</feed>