fedora-migrate 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Gemfile +1 -0
  4. data/LICENSE +14 -0
  5. data/README.md +201 -6
  6. data/config/jetty.yml +2 -2
  7. data/fedora-migrate.gemspec +7 -6
  8. data/lib/fedora-migrate.rb +7 -24
  9. data/lib/fedora_migrate/content_mover.rb +49 -0
  10. data/lib/fedora_migrate/datastream_mover.rb +19 -34
  11. data/lib/fedora_migrate/datastream_verification.rb +36 -0
  12. data/lib/fedora_migrate/dates_mover.rb +14 -0
  13. data/lib/fedora_migrate/hooks.rb +23 -0
  14. data/lib/fedora_migrate/migration_options.rb +18 -0
  15. data/lib/fedora_migrate/mover.rb +12 -0
  16. data/lib/fedora_migrate/object_mover.rb +20 -9
  17. data/lib/fedora_migrate/rdf_datastream_mover.rb +31 -14
  18. data/lib/fedora_migrate/rels_ext_datastream_mover.rb +28 -62
  19. data/lib/fedora_migrate/repository_migrator.rb +30 -25
  20. data/lib/fedora_migrate/rubydora_connection.rb +0 -2
  21. data/lib/fedora_migrate/target_constructor.rb +39 -0
  22. data/lib/fedora_migrate/version.rb +1 -1
  23. data/spec/fixtures/objects/scholarsphere_5712mc568.xml +7284 -0
  24. data/spec/fixtures/objects/scholarsphere_7d279232g.xml +20120 -0
  25. data/spec/fixtures/objects/scholarsphere_sf2686078.xml +8823 -0
  26. data/spec/fixtures/objects/scholarsphere_x346dj04v.xml +188 -0
  27. data/spec/fixtures/objects/scholarsphere_x346dj06d.xml +255 -0
  28. data/spec/fixtures/objects/scholarsphere_x346dj08z.xml +1242 -0
  29. data/spec/fixtures/objects/sufia_5m60qr94g.xml +68 -0
  30. data/spec/fixtures/objects/sufia_5m60qr95r.xml +133 -0
  31. data/spec/fixtures/objects/sufia_5m60qr961.xml +133 -0
  32. data/spec/fixtures/objects/sufia_5m60qr979.xml +118 -0
  33. data/spec/integration/content_versions_spec.rb +24 -1
  34. data/spec/integration/missing_relationships_spec.rb +30 -0
  35. data/spec/integration/object_migration_spec.rb +49 -5
  36. data/spec/integration/rdf_migration_spec.rb +38 -13
  37. data/spec/integration/relationship_migration_spec.rb +10 -9
  38. data/spec/integration/repository_migration_spec.rb +46 -19
  39. data/spec/integration/versions_spec.rb +32 -0
  40. data/spec/spec_helper.rb +8 -1
  41. data/spec/support/example_model.rb +56 -0
  42. data/spec/unit/content_mover_spec.rb +78 -0
  43. data/spec/unit/datastream_verification_spec.rb +60 -0
  44. data/spec/unit/dates_mover_spec.rb +33 -0
  45. data/spec/unit/migration_options_spec.rb +61 -0
  46. data/spec/unit/mover_spec.rb +35 -1
  47. data/spec/unit/object_mover_spec.rb +1 -3
  48. data/spec/unit/rels_ext_datastream_mover_spec.rb +28 -18
  49. data/spec/unit/repository_migrator_spec.rb +16 -5
  50. data/spec/unit/target_constructor_spec.rb +34 -0
  51. data/tasks/dev.rake +1 -1
  52. metadata +80 -38
  53. data/LICENSE.txt +0 -22
  54. data/lib/fedora_migrate/rdf_datastream_parser.rb +0 -29
  55. data/lib/fedora_migrate/triple_converter.rb +0 -39
  56. data/spec/fixtures/datastreams/rdf_ntriples_datastream.txt +0 -2
  57. data/spec/unit/rdf_datastream_mover_spec.rb +0 -8
  58. data/spec/unit/rdf_datastream_parser_spec.rb +0 -38
  59. data/spec/unit/triple_converter_spec.rb +0 -35
@@ -0,0 +1,68 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <foxml:digitalObject VERSION="1.1" PID="sufia:5m60qr94g"
3
+ xmlns:foxml="info:fedora/fedora-system:def/foxml#"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
6
+ <foxml:objectProperties>
7
+ <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
8
+ <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE=""/>
9
+ <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
10
+ <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2015-01-19T21:32:49.822Z"/>
11
+ <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2015-01-19T21:33:48.510Z"/>
12
+ </foxml:objectProperties>
13
+ <foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false">
14
+ <foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2015-01-19T21:32:49.822Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
15
+ <foxml:xmlContent>
16
+ <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
17
+ <audit:record ID="AUDREC1">
18
+ <audit:process type="Fedora API-M"/>
19
+ <audit:action>addDatastream</audit:action>
20
+ <audit:componentID>RELS-EXT</audit:componentID>
21
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
22
+ <audit:date>2015-01-19T21:32:49.935Z</audit:date>
23
+ <audit:justification></audit:justification>
24
+ </audit:record>
25
+ <audit:record ID="AUDREC2">
26
+ <audit:process type="Fedora API-M"/>
27
+ <audit:action>addDatastream</audit:action>
28
+ <audit:componentID>descMetadata</audit:componentID>
29
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
30
+ <audit:date>2015-01-19T21:33:48.510Z</audit:date>
31
+ <audit:justification></audit:justification>
32
+ </audit:record>
33
+ </audit:auditTrail>
34
+ </foxml:xmlContent>
35
+ </foxml:datastreamVersion>
36
+ </foxml:datastream>
37
+ <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
38
+ <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2015-01-19T21:32:49.822Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="344">
39
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="cd896b15dcb3e8064296ae2b334f4d2b90c77bc4"/>
40
+ <foxml:xmlContent>
41
+ <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
42
+ <dc:identifier>sufia:5m60qr94g</dc:identifier>
43
+ </oai_dc:dc>
44
+ </foxml:xmlContent>
45
+ </foxml:datastreamVersion>
46
+ </foxml:datastream>
47
+ <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
48
+ <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="Fedora Object-to-Object Relationship Metadata" CREATED="2015-01-19T21:32:49.935Z" MIMETYPE="application/rdf+xml" SIZE="283">
49
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="94b95558343d0d6d6a63a9d953f39aea83fadfed"/>
50
+ <foxml:xmlContent>
51
+ <rdf:RDF xmlns:ns0="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
52
+ <rdf:Description rdf:about="info:fedora/sufia:5m60qr94g">
53
+ <ns0:hasModel rdf:resource="info:fedora/afmodel:Batch"></ns0:hasModel>
54
+ </rdf:Description>
55
+ </rdf:RDF>
56
+ </foxml:xmlContent>
57
+ </foxml:datastreamVersion>
58
+ </foxml:datastream>
59
+ <foxml:datastream ID="descMetadata" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
60
+ <foxml:datastreamVersion ID="descMetadata.0" LABEL="" CREATED="2015-01-19T21:33:48.510Z" MIMETYPE="application/n-triples" SIZE="77">
61
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="70a62bce3413c921b2088417d7056188c46bd1a3"/>
62
+ <foxml:binaryContent>
63
+ PGluZm86ZmVkb3JhL3N1ZmlhOjVtNjBxcjk0Zz4gPGh0dHA6Ly9wdXJsLm9yZy9kYy90ZXJtcy90eXBl
64
+ PiAicHJvY2Vzc2luZyIgLgo=
65
+ </foxml:binaryContent>
66
+ </foxml:datastreamVersion>
67
+ </foxml:datastream>
68
+ </foxml:digitalObject>
@@ -0,0 +1,133 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <foxml:digitalObject VERSION="1.1" PID="sufia:5m60qr95r"
3
+ xmlns:foxml="info:fedora/fedora-system:def/foxml#"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
6
+ <foxml:objectProperties>
7
+ <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
8
+ <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="file2.txt"/>
9
+ <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
10
+ <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2015-01-19T21:32:47.138Z"/>
11
+ <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2015-01-19T21:32:47.741Z"/>
12
+ </foxml:objectProperties>
13
+ <foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false">
14
+ <foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2015-01-19T21:32:47.138Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
15
+ <foxml:xmlContent>
16
+ <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
17
+ <audit:record ID="AUDREC1">
18
+ <audit:process type="Fedora API-M"/>
19
+ <audit:action>addDatastream</audit:action>
20
+ <audit:componentID>RELS-EXT</audit:componentID>
21
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
22
+ <audit:date>2015-01-19T21:32:47.302Z</audit:date>
23
+ <audit:justification></audit:justification>
24
+ </audit:record>
25
+ <audit:record ID="AUDREC2">
26
+ <audit:process type="Fedora API-M"/>
27
+ <audit:action>addDatastream</audit:action>
28
+ <audit:componentID>rightsMetadata</audit:componentID>
29
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
30
+ <audit:date>2015-01-19T21:32:47.436Z</audit:date>
31
+ <audit:justification></audit:justification>
32
+ </audit:record>
33
+ <audit:record ID="AUDREC3">
34
+ <audit:process type="Fedora API-M"/>
35
+ <audit:action>addDatastream</audit:action>
36
+ <audit:componentID>descMetadata</audit:componentID>
37
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
38
+ <audit:date>2015-01-19T21:32:47.588Z</audit:date>
39
+ <audit:justification></audit:justification>
40
+ </audit:record>
41
+ <audit:record ID="AUDREC4">
42
+ <audit:process type="Fedora API-M"/>
43
+ <audit:action>addDatastream</audit:action>
44
+ <audit:componentID>properties</audit:componentID>
45
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
46
+ <audit:date>2015-01-19T21:32:47.674Z</audit:date>
47
+ <audit:justification></audit:justification>
48
+ </audit:record>
49
+ <audit:record ID="AUDREC5">
50
+ <audit:process type="Fedora API-M"/>
51
+ <audit:action>addDatastream</audit:action>
52
+ <audit:componentID>content</audit:componentID>
53
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
54
+ <audit:date>2015-01-19T21:32:47.741Z</audit:date>
55
+ <audit:justification></audit:justification>
56
+ </audit:record>
57
+ </audit:auditTrail>
58
+ </foxml:xmlContent>
59
+ </foxml:datastreamVersion>
60
+ </foxml:datastream>
61
+ <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
62
+ <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2015-01-19T21:32:47.138Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="377">
63
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="c892583b1c5d7af48dd8a7a36b1510f258383455"/>
64
+ <foxml:xmlContent>
65
+ <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
66
+ <dc:title>file2.txt</dc:title>
67
+ <dc:identifier>sufia:5m60qr95r</dc:identifier>
68
+ </oai_dc:dc>
69
+ </foxml:xmlContent>
70
+ </foxml:datastreamVersion>
71
+ </foxml:datastream>
72
+ <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
73
+ <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="Fedora Object-to-Object Relationship Metadata" CREATED="2015-01-19T21:32:47.302Z" MIMETYPE="application/rdf+xml" SIZE="428">
74
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="e7789513f53629b1f574ffc1dc15c165f4fcbfd0"/>
75
+ <foxml:xmlContent>
76
+ <rdf:RDF xmlns:ns0="info:fedora/fedora-system:def/relations-external#" xmlns:ns1="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
77
+ <rdf:Description rdf:about="info:fedora/sufia:5m60qr95r">
78
+ <ns1:hasModel rdf:resource="info:fedora/afmodel:GenericFile"></ns1:hasModel>
79
+ <ns0:isPartOf rdf:resource="info:fedora/sufia:5m60qr94g"></ns0:isPartOf>
80
+ </rdf:Description>
81
+ </rdf:RDF>
82
+ </foxml:xmlContent>
83
+ </foxml:datastreamVersion>
84
+ </foxml:datastream>
85
+ <foxml:datastream ID="rightsMetadata" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
86
+ <foxml:datastreamVersion ID="rightsMetadata.0" LABEL="" CREATED="2015-01-19T21:32:47.436Z" MIMETYPE="text/xml" SIZE="548">
87
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="3644c2267e6f532982625c69ebd683fc8060c5a8"/>
88
+ <foxml:binaryContent>
89
+ PHJpZ2h0c01ldGFkYXRhIHhtbG5zPSJodHRwOi8vaHlkcmEtY29sbGFiLnN0YW5mb3JkLmVkdS9zY2hl
90
+ bWFzL3JpZ2h0c01ldGFkYXRhL3YxIiB2ZXJzaW9uPSIwLjEiPgogIDxjb3B5cmlnaHQ+CiAgICA8aHVt
91
+ YW4gdHlwZT0idGl0bGUiLz4KICAgIDxodW1hbiB0eXBlPSJkZXNjcmlwdGlvbiIvPgogICAgPG1hY2hp
92
+ bmUgdHlwZT0idXJpIi8+CiAgPC9jb3B5cmlnaHQ+CiAgPGFjY2VzcyB0eXBlPSJkaXNjb3ZlciI+CiAg
93
+ ICA8aHVtYW4vPgogICAgPG1hY2hpbmUvPgogIDwvYWNjZXNzPgogIDxhY2Nlc3MgdHlwZT0icmVhZCI+
94
+ CiAgICA8aHVtYW4vPgogICAgPG1hY2hpbmUvPgogIDwvYWNjZXNzPgogIDxhY2Nlc3MgdHlwZT0iZWRp
95
+ dCI+CiAgICA8aHVtYW4vPgogICAgPG1hY2hpbmU+CiAgICAgIDxwZXJzb24+YXdlYWRAcHN1LmVkdTwv
96
+ cGVyc29uPgogICAgPC9tYWNoaW5lPgogIDwvYWNjZXNzPgogIDxlbWJhcmdvPgogICAgPG1hY2hpbmUv
97
+ PgogIDwvZW1iYXJnbz4KICA8bGVhc2U+CiAgICA8bWFjaGluZS8+CiAgPC9sZWFzZT4KPC9yaWdodHNN
98
+ ZXRhZGF0YT4=
99
+ </foxml:binaryContent>
100
+ </foxml:datastreamVersion>
101
+ </foxml:datastream>
102
+ <foxml:datastream ID="descMetadata" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
103
+ <foxml:datastreamVersion ID="descMetadata.0" LABEL="" CREATED="2015-01-19T21:32:47.588Z" MIMETYPE="application/n-triples" SIZE="409">
104
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="7a3491383905f77830e24c0144e79df963ff2fda"/>
105
+ <foxml:binaryContent>
106
+ PGluZm86ZmVkb3JhL3N1ZmlhOjVtNjBxcjk1cj4gPGh0dHA6Ly9wdXJsLm9yZy9kYy90ZXJtcy9kYXRl
107
+ U3VibWl0dGVkPiAiMjAxNS0wMS0xOSJeXjxodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSNk
108
+ YXRlPiAuCjxpbmZvOmZlZG9yYS9zdWZpYTo1bTYwcXI5NXI+IDxodHRwOi8vcHVybC5vcmcvZGMvdGVy
109
+ bXMvbW9kaWZpZWQ+ICIyMDE1LTAxLTE5Il5ePGh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1h
110
+ I2RhdGU+IC4KPGluZm86ZmVkb3JhL3N1ZmlhOjVtNjBxcjk1cj4gPGh0dHA6Ly9wdXJsLm9yZy9kYy90
111
+ ZXJtcy9jcmVhdG9yPiAiYXdlYWRAcHN1LmVkdSIgLgo8aW5mbzpmZWRvcmEvc3VmaWE6NW02MHFyOTVy
112
+ PiA8aHR0cDovL3B1cmwub3JnL2RjL3Rlcm1zL3RpdGxlPiAiZmlsZTIudHh0IiAuCg==
113
+ </foxml:binaryContent>
114
+ </foxml:datastreamVersion>
115
+ </foxml:datastream>
116
+ <foxml:datastream ID="properties" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
117
+ <foxml:datastreamVersion ID="properties.0" LABEL="" CREATED="2015-01-19T21:32:47.674Z" MIMETYPE="text/xml" SIZE="76">
118
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="9ce3341f30d484d1e652672f47be3baa2fb45bb0"/>
119
+ <foxml:binaryContent>
120
+ PGZpZWxkcz4KICA8cmVsYXRpdmVfcGF0aC8+CiAgPGRlcG9zaXRvcj5hd2VhZEBwc3UuZWR1PC9kZXBv
121
+ c2l0b3I+CjwvZmllbGRzPg==
122
+ </foxml:binaryContent>
123
+ </foxml:datastreamVersion>
124
+ </foxml:datastream>
125
+ <foxml:datastream ID="content" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
126
+ <foxml:datastreamVersion ID="content.0" LABEL="file2.txt" CREATED="2015-01-19T21:32:47.741Z" MIMETYPE="text/plain" SIZE="7">
127
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="67f8fdc9e6c3b65d28a3fc9419b22aaa9e7ff958"/>
128
+ <foxml:binaryContent>
129
+ ZmlsZSAyCg==
130
+ </foxml:binaryContent>
131
+ </foxml:datastreamVersion>
132
+ </foxml:datastream>
133
+ </foxml:digitalObject>
@@ -0,0 +1,133 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <foxml:digitalObject VERSION="1.1" PID="sufia:5m60qr961"
3
+ xmlns:foxml="info:fedora/fedora-system:def/foxml#"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
6
+ <foxml:objectProperties>
7
+ <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
8
+ <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="file1.txt"/>
9
+ <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
10
+ <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2015-01-19T21:32:48.754Z"/>
11
+ <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2015-01-19T21:32:49.243Z"/>
12
+ </foxml:objectProperties>
13
+ <foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false">
14
+ <foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2015-01-19T21:32:48.754Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
15
+ <foxml:xmlContent>
16
+ <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
17
+ <audit:record ID="AUDREC1">
18
+ <audit:process type="Fedora API-M"/>
19
+ <audit:action>addDatastream</audit:action>
20
+ <audit:componentID>RELS-EXT</audit:componentID>
21
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
22
+ <audit:date>2015-01-19T21:32:48.851Z</audit:date>
23
+ <audit:justification></audit:justification>
24
+ </audit:record>
25
+ <audit:record ID="AUDREC2">
26
+ <audit:process type="Fedora API-M"/>
27
+ <audit:action>addDatastream</audit:action>
28
+ <audit:componentID>rightsMetadata</audit:componentID>
29
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
30
+ <audit:date>2015-01-19T21:32:48.920Z</audit:date>
31
+ <audit:justification></audit:justification>
32
+ </audit:record>
33
+ <audit:record ID="AUDREC3">
34
+ <audit:process type="Fedora API-M"/>
35
+ <audit:action>addDatastream</audit:action>
36
+ <audit:componentID>descMetadata</audit:componentID>
37
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
38
+ <audit:date>2015-01-19T21:32:49.045Z</audit:date>
39
+ <audit:justification></audit:justification>
40
+ </audit:record>
41
+ <audit:record ID="AUDREC4">
42
+ <audit:process type="Fedora API-M"/>
43
+ <audit:action>addDatastream</audit:action>
44
+ <audit:componentID>properties</audit:componentID>
45
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
46
+ <audit:date>2015-01-19T21:32:49.170Z</audit:date>
47
+ <audit:justification></audit:justification>
48
+ </audit:record>
49
+ <audit:record ID="AUDREC5">
50
+ <audit:process type="Fedora API-M"/>
51
+ <audit:action>addDatastream</audit:action>
52
+ <audit:componentID>content</audit:componentID>
53
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
54
+ <audit:date>2015-01-19T21:32:49.243Z</audit:date>
55
+ <audit:justification></audit:justification>
56
+ </audit:record>
57
+ </audit:auditTrail>
58
+ </foxml:xmlContent>
59
+ </foxml:datastreamVersion>
60
+ </foxml:datastream>
61
+ <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
62
+ <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2015-01-19T21:32:48.754Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="377">
63
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="c8608120151f0e2b48a09ac06051ef594c54cfb8"/>
64
+ <foxml:xmlContent>
65
+ <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
66
+ <dc:title>file1.txt</dc:title>
67
+ <dc:identifier>sufia:5m60qr961</dc:identifier>
68
+ </oai_dc:dc>
69
+ </foxml:xmlContent>
70
+ </foxml:datastreamVersion>
71
+ </foxml:datastream>
72
+ <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
73
+ <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="Fedora Object-to-Object Relationship Metadata" CREATED="2015-01-19T21:32:48.851Z" MIMETYPE="application/rdf+xml" SIZE="428">
74
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="69571b36a593ae00289a969873948f738b10f501"/>
75
+ <foxml:xmlContent>
76
+ <rdf:RDF xmlns:ns0="info:fedora/fedora-system:def/relations-external#" xmlns:ns1="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
77
+ <rdf:Description rdf:about="info:fedora/sufia:5m60qr961">
78
+ <ns1:hasModel rdf:resource="info:fedora/afmodel:GenericFile"></ns1:hasModel>
79
+ <ns0:isPartOf rdf:resource="info:fedora/sufia:5m60qr94g"></ns0:isPartOf>
80
+ </rdf:Description>
81
+ </rdf:RDF>
82
+ </foxml:xmlContent>
83
+ </foxml:datastreamVersion>
84
+ </foxml:datastream>
85
+ <foxml:datastream ID="rightsMetadata" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
86
+ <foxml:datastreamVersion ID="rightsMetadata.0" LABEL="" CREATED="2015-01-19T21:32:48.920Z" MIMETYPE="text/xml" SIZE="548">
87
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="3644c2267e6f532982625c69ebd683fc8060c5a8"/>
88
+ <foxml:binaryContent>
89
+ PHJpZ2h0c01ldGFkYXRhIHhtbG5zPSJodHRwOi8vaHlkcmEtY29sbGFiLnN0YW5mb3JkLmVkdS9zY2hl
90
+ bWFzL3JpZ2h0c01ldGFkYXRhL3YxIiB2ZXJzaW9uPSIwLjEiPgogIDxjb3B5cmlnaHQ+CiAgICA8aHVt
91
+ YW4gdHlwZT0idGl0bGUiLz4KICAgIDxodW1hbiB0eXBlPSJkZXNjcmlwdGlvbiIvPgogICAgPG1hY2hp
92
+ bmUgdHlwZT0idXJpIi8+CiAgPC9jb3B5cmlnaHQ+CiAgPGFjY2VzcyB0eXBlPSJkaXNjb3ZlciI+CiAg
93
+ ICA8aHVtYW4vPgogICAgPG1hY2hpbmUvPgogIDwvYWNjZXNzPgogIDxhY2Nlc3MgdHlwZT0icmVhZCI+
94
+ CiAgICA8aHVtYW4vPgogICAgPG1hY2hpbmUvPgogIDwvYWNjZXNzPgogIDxhY2Nlc3MgdHlwZT0iZWRp
95
+ dCI+CiAgICA8aHVtYW4vPgogICAgPG1hY2hpbmU+CiAgICAgIDxwZXJzb24+YXdlYWRAcHN1LmVkdTwv
96
+ cGVyc29uPgogICAgPC9tYWNoaW5lPgogIDwvYWNjZXNzPgogIDxlbWJhcmdvPgogICAgPG1hY2hpbmUv
97
+ PgogIDwvZW1iYXJnbz4KICA8bGVhc2U+CiAgICA8bWFjaGluZS8+CiAgPC9sZWFzZT4KPC9yaWdodHNN
98
+ ZXRhZGF0YT4=
99
+ </foxml:binaryContent>
100
+ </foxml:datastreamVersion>
101
+ </foxml:datastream>
102
+ <foxml:datastream ID="descMetadata" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
103
+ <foxml:datastreamVersion ID="descMetadata.0" LABEL="" CREATED="2015-01-19T21:32:49.045Z" MIMETYPE="application/n-triples" SIZE="409">
104
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="fee5a929c8f0fe1c24dbc8ed5111a98be27c1210"/>
105
+ <foxml:binaryContent>
106
+ PGluZm86ZmVkb3JhL3N1ZmlhOjVtNjBxcjk2MT4gPGh0dHA6Ly9wdXJsLm9yZy9kYy90ZXJtcy9kYXRl
107
+ U3VibWl0dGVkPiAiMjAxNS0wMS0xOSJeXjxodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSNk
108
+ YXRlPiAuCjxpbmZvOmZlZG9yYS9zdWZpYTo1bTYwcXI5NjE+IDxodHRwOi8vcHVybC5vcmcvZGMvdGVy
109
+ bXMvbW9kaWZpZWQ+ICIyMDE1LTAxLTE5Il5ePGh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1h
110
+ I2RhdGU+IC4KPGluZm86ZmVkb3JhL3N1ZmlhOjVtNjBxcjk2MT4gPGh0dHA6Ly9wdXJsLm9yZy9kYy90
111
+ ZXJtcy9jcmVhdG9yPiAiYXdlYWRAcHN1LmVkdSIgLgo8aW5mbzpmZWRvcmEvc3VmaWE6NW02MHFyOTYx
112
+ PiA8aHR0cDovL3B1cmwub3JnL2RjL3Rlcm1zL3RpdGxlPiAiZmlsZTEudHh0IiAuCg==
113
+ </foxml:binaryContent>
114
+ </foxml:datastreamVersion>
115
+ </foxml:datastream>
116
+ <foxml:datastream ID="properties" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
117
+ <foxml:datastreamVersion ID="properties.0" LABEL="" CREATED="2015-01-19T21:32:49.170Z" MIMETYPE="text/xml" SIZE="76">
118
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="9ce3341f30d484d1e652672f47be3baa2fb45bb0"/>
119
+ <foxml:binaryContent>
120
+ PGZpZWxkcz4KICA8cmVsYXRpdmVfcGF0aC8+CiAgPGRlcG9zaXRvcj5hd2VhZEBwc3UuZWR1PC9kZXBv
121
+ c2l0b3I+CjwvZmllbGRzPg==
122
+ </foxml:binaryContent>
123
+ </foxml:datastreamVersion>
124
+ </foxml:datastream>
125
+ <foxml:datastream ID="content" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
126
+ <foxml:datastreamVersion ID="content.0" LABEL="file1.txt" CREATED="2015-01-19T21:32:49.243Z" MIMETYPE="text/plain" SIZE="7">
127
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="2b141ff6e12af000c045d5cb05a8ebd2d4e62e41"/>
128
+ <foxml:binaryContent>
129
+ ZmlsZSAxCg==
130
+ </foxml:binaryContent>
131
+ </foxml:datastreamVersion>
132
+ </foxml:datastream>
133
+ </foxml:digitalObject>
@@ -0,0 +1,118 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <foxml:digitalObject VERSION="1.1" PID="sufia:5m60qr979"
3
+ xmlns:foxml="info:fedora/fedora-system:def/foxml#"
4
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
+ xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
6
+ <foxml:objectProperties>
7
+ <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
8
+ <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE=""/>
9
+ <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
10
+ <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2015-01-19T21:34:23.805Z"/>
11
+ <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2015-01-19T21:34:24.056Z"/>
12
+ </foxml:objectProperties>
13
+ <foxml:datastream ID="AUDIT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="false">
14
+ <foxml:datastreamVersion ID="AUDIT.0" LABEL="Audit Trail for this object" CREATED="2015-01-19T21:34:23.805Z" MIMETYPE="text/xml" FORMAT_URI="info:fedora/fedora-system:format/xml.fedora.audit">
15
+ <foxml:xmlContent>
16
+ <audit:auditTrail xmlns:audit="info:fedora/fedora-system:def/audit#">
17
+ <audit:record ID="AUDREC1">
18
+ <audit:process type="Fedora API-M"/>
19
+ <audit:action>addDatastream</audit:action>
20
+ <audit:componentID>RELS-EXT</audit:componentID>
21
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
22
+ <audit:date>2015-01-19T21:34:23.878Z</audit:date>
23
+ <audit:justification></audit:justification>
24
+ </audit:record>
25
+ <audit:record ID="AUDREC2">
26
+ <audit:process type="Fedora API-M"/>
27
+ <audit:action>addDatastream</audit:action>
28
+ <audit:componentID>rightsMetadata</audit:componentID>
29
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
30
+ <audit:date>2015-01-19T21:34:23.915Z</audit:date>
31
+ <audit:justification></audit:justification>
32
+ </audit:record>
33
+ <audit:record ID="AUDREC3">
34
+ <audit:process type="Fedora API-M"/>
35
+ <audit:action>addDatastream</audit:action>
36
+ <audit:componentID>descMetadata</audit:componentID>
37
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
38
+ <audit:date>2015-01-19T21:34:24.012Z</audit:date>
39
+ <audit:justification></audit:justification>
40
+ </audit:record>
41
+ <audit:record ID="AUDREC4">
42
+ <audit:process type="Fedora API-M"/>
43
+ <audit:action>addDatastream</audit:action>
44
+ <audit:componentID>properties</audit:componentID>
45
+ <audit:responsibility>fedoraAdmin</audit:responsibility>
46
+ <audit:date>2015-01-19T21:34:24.056Z</audit:date>
47
+ <audit:justification></audit:justification>
48
+ </audit:record>
49
+ </audit:auditTrail>
50
+ </foxml:xmlContent>
51
+ </foxml:datastreamVersion>
52
+ </foxml:datastream>
53
+ <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
54
+ <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2015-01-19T21:34:23.805Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="344">
55
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="390bb976c91e239e323e0ad882c2c114b0c6c221"/>
56
+ <foxml:xmlContent>
57
+ <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
58
+ <dc:identifier>sufia:5m60qr979</dc:identifier>
59
+ </oai_dc:dc>
60
+ </foxml:xmlContent>
61
+ </foxml:datastreamVersion>
62
+ </foxml:datastream>
63
+ <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
64
+ <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="Fedora Object-to-Object Relationship Metadata" CREATED="2015-01-19T21:34:23.878Z" MIMETYPE="application/rdf+xml" SIZE="548">
65
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="692ca9df579249cf39cdf13ca56605e476b79cbf"/>
66
+ <foxml:xmlContent>
67
+ <rdf:RDF xmlns:ns0="info:fedora/fedora-system:def/relations-external#" xmlns:ns1="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
68
+ <rdf:Description rdf:about="info:fedora/sufia:5m60qr979">
69
+ <ns1:hasModel rdf:resource="info:fedora/afmodel:Collection"></ns1:hasModel>
70
+ <ns0:hasCollectionMember rdf:resource="info:fedora/sufia:5m60qr95r"></ns0:hasCollectionMember>
71
+ <ns0:hasCollectionMember rdf:resource="info:fedora/sufia:5m60qr961"></ns0:hasCollectionMember>
72
+ </rdf:Description>
73
+ </rdf:RDF>
74
+ </foxml:xmlContent>
75
+ </foxml:datastreamVersion>
76
+ </foxml:datastream>
77
+ <foxml:datastream ID="rightsMetadata" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
78
+ <foxml:datastreamVersion ID="rightsMetadata.0" LABEL="" CREATED="2015-01-19T21:34:23.915Z" MIMETYPE="text/xml" SIZE="590">
79
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="25c959d0d824c9da37537d96242ca463efe1958f"/>
80
+ <foxml:binaryContent>
81
+ PHJpZ2h0c01ldGFkYXRhIHhtbG5zPSJodHRwOi8vaHlkcmEtY29sbGFiLnN0YW5mb3JkLmVkdS9zY2hl
82
+ bWFzL3JpZ2h0c01ldGFkYXRhL3YxIiB2ZXJzaW9uPSIwLjEiPgogIDxjb3B5cmlnaHQ+CiAgICA8aHVt
83
+ YW4gdHlwZT0idGl0bGUiLz4KICAgIDxodW1hbiB0eXBlPSJkZXNjcmlwdGlvbiIvPgogICAgPG1hY2hp
84
+ bmUgdHlwZT0idXJpIi8+CiAgPC9jb3B5cmlnaHQ+CiAgPGFjY2VzcyB0eXBlPSJkaXNjb3ZlciI+CiAg
85
+ ICA8aHVtYW4vPgogICAgPG1hY2hpbmUvPgogIDwvYWNjZXNzPgogIDxhY2Nlc3MgdHlwZT0icmVhZCI+
86
+ CiAgICA8aHVtYW4vPgogICAgPG1hY2hpbmU+CiAgICAgIDxncm91cD5wdWJsaWM8L2dyb3VwPgogICAg
87
+ PC9tYWNoaW5lPgogIDwvYWNjZXNzPgogIDxhY2Nlc3MgdHlwZT0iZWRpdCI+CiAgICA8aHVtYW4vPgog
88
+ ICAgPG1hY2hpbmU+CiAgICAgIDxwZXJzb24+YXdlYWRAcHN1LmVkdTwvcGVyc29uPgogICAgPC9tYWNo
89
+ aW5lPgogIDwvYWNjZXNzPgogIDxlbWJhcmdvPgogICAgPG1hY2hpbmUvPgogIDwvZW1iYXJnbz4KICA8
90
+ bGVhc2U+CiAgICA8bWFjaGluZS8+CiAgPC9sZWFzZT4KPC9yaWdodHNNZXRhZGF0YT4=
91
+ </foxml:binaryContent>
92
+ </foxml:datastreamVersion>
93
+ </foxml:datastream>
94
+ <foxml:datastream ID="descMetadata" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
95
+ <foxml:datastreamVersion ID="descMetadata.0" LABEL="" CREATED="2015-01-19T21:34:24.012Z" MIMETYPE="application/n-triples" SIZE="515">
96
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="5a4ac791875610a45ecb15bd8ab4115d96950d91"/>
97
+ <foxml:binaryContent>
98
+ PGluZm86ZmVkb3JhL3N1ZmlhOjVtNjBxcjk3OT4gPGh0dHA6Ly9wdXJsLm9yZy9kYy90ZXJtcy90aXRs
99
+ ZT4gIk15IEZpbGVzIiAuCjxpbmZvOmZlZG9yYS9zdWZpYTo1bTYwcXI5Nzk+IDxodHRwOi8vcHVybC5v
100
+ cmcvZGMvdGVybXMvY3JlYXRvcj4gIkFkYW0gV2VhZCIgLgo8aW5mbzpmZWRvcmEvc3VmaWE6NW02MHFy
101
+ OTc5PiA8aHR0cDovL3B1cmwub3JnL2RjL3Rlcm1zL2Rlc2NyaXB0aW9uPiAiVGhpcyBpcyBhIHNhbXBs
102
+ ZSBjb2xsZWN0aW9uIG9mIGZpbGVzLiIgLgo8aW5mbzpmZWRvcmEvc3VmaWE6NW02MHFyOTc5PiA8aHR0
103
+ cDovL3B1cmwub3JnL2RjL3Rlcm1zL2RhdGVTdWJtaXR0ZWQ+ICIyMDE1LTAxLTE5Il5ePGh0dHA6Ly93
104
+ d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hI2RhdGU+IC4KPGluZm86ZmVkb3JhL3N1ZmlhOjVtNjBxcjk3
105
+ OT4gPGh0dHA6Ly9wdXJsLm9yZy9kYy90ZXJtcy9tb2RpZmllZD4gIjIwMTUtMDEtMTkiXl48aHR0cDov
106
+ L3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEjZGF0ZT4gLgo=
107
+ </foxml:binaryContent>
108
+ </foxml:datastreamVersion>
109
+ </foxml:datastream>
110
+ <foxml:datastream ID="properties" STATE="A" CONTROL_GROUP="M" VERSIONABLE="true">
111
+ <foxml:datastreamVersion ID="properties.0" LABEL="" CREATED="2015-01-19T21:34:24.056Z" MIMETYPE="text/xml" SIZE="57">
112
+ <foxml:contentDigest TYPE="SHA-1" DIGEST="7a9a9d1b91786ad59c28bcb52f8beab2e0ac87c9"/>
113
+ <foxml:binaryContent>
114
+ PGZpZWxkcz4KICA8ZGVwb3NpdG9yPmF3ZWFkQHBzdS5lZHU8L2RlcG9zaXRvcj4KPC9maWVsZHM+
115
+ </foxml:binaryContent>
116
+ </foxml:datastreamVersion>
117
+ </foxml:datastream>
118
+ </foxml:digitalObject>