Skip to content

Instantly share code, notes, and snippets.

@dheles
Created July 2, 2018 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dheles/c57832d4954dcd63a6a0514c235be92a to your computer and use it in GitHub Desktop.
Save dheles/c57832d4954dcd63a6a0514c235be92a to your computer and use it in GitHub Desktop.
$ python client.py
https://jscholarship.library.jhu.edu/swordv2/collection/1774.2/58586
atom_generator: '['admin@dspace-prod.mse.jhu.edu version:"2.0" uri:"http://www.dspace.org/ns/sword/2.0/"']'
atom_id: '['https://jscholarship.library.jhu.edu/swordv2/edit/dbbde8a5-179f-4e94-bd4f-c852682e357d']'
atom_rights: '[None]'
atom_title: '['Untitled: example.zip']'
atom_updated: '['2018-07-02T04:00:00.000Z']'
dcterms_available: '['2018-07-02T16:48:49Z']'
dcterms_description: '['Zip file deposted by SWORD without accompanying metadata']'
dcterms_provenance: '['Made available in DSpace on 2018-07-02T16:48:49Z (GMT). No. of bitstreams: 2\nexample.zip: 33777 bytes, checksum: 2b25f82ba67284461d4a481d7a06dd28 (MD5)\nexample.zip: 33777 bytes, checksum: 2b25f82ba67284461d4a481d7a06dd28 (MD5)']'
dcterms_title: '['Untitled: example.zip']'
sword_treatment: '['The package has been ingested and unpacked into the item. Template metadata for the collection has been used, and a default title with the name of the file has been set']'
sword_verboseDescription: '['[2018-07-01 18:46:20] Initialising verbose deposit\n[2018-07-01 19:32:45] Initialising verbose deposit\n[2018-07-01 19:39:46] Initialising verbose deposit\n[2018-07-01 19:42:26] Initialising verbose deposit\n[2018-07-01 19:51:05] Initialising verbose deposit\n[2018-07-01 21:21:00] Initialising verbose deposit\n[2018-07-01 21:22:11] Initialising verbose deposit\n[2018-07-01 21:27:18] Initialising verbose deposit\n[2018-07-01 21:28:09] Initialising verbose deposit\n[2018-07-01 21:33:53] Initialising verbose deposit\n[2018-07-01 21:45:31] Initialising verbose deposit\n[2018-07-01 21:46:15] Initialising verbose deposit\n[2018-07-01 21:46:50] Initialising verbose deposit\n[2018-07-01 21:48:20] Initialising verbose deposit\n[2018-07-01 22:05:06] Initialising verbose deposit\n[2018-07-01 22:05:06] Performing deposit using deposit URL: https://dspace-prod.mse.jhu.edu/swordv2/collection/1774.2/58586\n[2018-07-01 22:05:06] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-01 22:05:06] User is authorised to submit to collection\n[2018-07-01 22:05:06] Authenticated user: openaccess@jhu.edu\n[2018-07-01 22:05:06] Loaded ingester: org.dspace.sword2.BinaryContentIngester\n[2018-07-01 22:05:07] Updated date added to response from item metadata where available\n[2018-07-01 22:05:07] Ingest successful\n[2018-07-01 22:05:07] Item created with internal identifier: 7e6788ca-2bd8-4284-ac06-55d6819c667e\n[2018-07-01 22:05:07] Archive ingest completed successfully\n[2018-07-01 22:05:07] DSpace will store an original copy of the deposit, as well as ingesting the item into the archive\n[2018-07-01 22:05:07] Original deposit stored as example.zip, in item bundle org.dspace.content.Bundle@3dbf5616\n[2018-07-01 22:05:07] The deposit is finished: moving it from the workspace to the workflow\n[2018-07-01 22:05:07] Total time for deposit processing: 1065 ms\n[2018-07-01 22:09:15] Initialising verbose deposit\n[2018-07-01 22:09:15] Performing deposit using deposit URL: https://dspace-prod.mse.jhu.edu/swordv2/collection/1774.2/58586\n[2018-07-01 22:09:15] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-01 22:09:15] User is authorised to submit to collection\n[2018-07-01 22:09:15] Authenticated user: openaccess@jhu.edu\n[2018-07-01 22:09:15] Loaded ingester: org.dspace.sword2.BinaryContentIngester\n[2018-07-01 22:09:15] Updated date added to response from item metadata where available\n[2018-07-01 22:09:15] Ingest successful\n[2018-07-01 22:09:15] Item created with internal identifier: d78ee28c-e78b-46d3-81be-46e5be04fafa\n[2018-07-01 22:09:15] Archive ingest completed successfully\n[2018-07-01 22:09:15] DSpace will store an original copy of the deposit, as well as ingesting the item into the archive\n[2018-07-01 22:09:15] Original deposit stored as example.zip, in item bundle org.dspace.content.Bundle@3f8cb4e4\n[2018-07-01 22:09:15] The deposit is finished: moving it from the workspace to the workflow\n[2018-07-01 22:09:16] Total time for deposit processing: 892 ms\n[2018-07-01 22:11:51] Initialising verbose deposit\n[2018-07-01 22:11:51] Performing deposit using deposit URL: https://dspace-prod.mse.jhu.edu/swordv2/collection/1774.2/58586\n[2018-07-01 22:11:51] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-01 22:11:51] User is authorised to submit to collection\n[2018-07-01 22:11:51] Authenticated user: openaccess@jhu.edu\n[2018-07-01 22:11:51] Loaded ingester: org.dspace.sword2.BinaryContentIngester\n[2018-07-01 22:11:51] Updated date added to response from item metadata where available\n[2018-07-01 22:11:51] Ingest successful\n[2018-07-01 22:11:51] Item created with internal identifier: ea941e52-ad05-4b88-a0f0-6e83cf14987e\n[2018-07-01 22:11:51] Archive ingest completed successfully\n[2018-07-01 22:11:51] DSpace will store an original copy of the deposit, as well as ingesting the item into the archive\n[2018-07-01 22:11:51] Original deposit stored as example.zip, in item bundle org.dspace.content.Bundle@56920943\n[2018-07-01 22:11:51] The deposit is finished: moving it from the workspace to the workflow\n[2018-07-01 22:11:52] Total time for deposit processing: 515 ms\n[2018-07-01 22:15:37] Initialising verbose deposit\n[2018-07-01 22:15:37] Performing deposit using deposit URL: https://dspace-prod.mse.jhu.edu/swordv2/collection/1774.2/58586\n[2018-07-01 22:15:37] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-01 22:15:37] User is authorised to submit to collection\n[2018-07-01 22:15:37] Authenticated user: openaccess@jhu.edu\n[2018-07-01 22:15:37] Loaded ingester: org.dspace.sword2.BinaryContentIngester\n[2018-07-01 22:15:37] Updated date added to response from item metadata where available\n[2018-07-01 22:15:37] Ingest successful\n[2018-07-01 22:15:37] Item created with internal identifier: 59dbe283-bafd-4b5a-a66a-63c9fd6cc705\n[2018-07-01 22:15:37] Archive ingest completed successfully\n[2018-07-01 22:15:37] DSpace will store an original copy of the deposit, as well as ingesting the item into the archive\n[2018-07-01 22:15:37] Original deposit stored as example.zip, in item bundle org.dspace.content.Bundle@7c566f2d\n[2018-07-01 22:15:37] The deposit is finished: moving it from the workspace to the workflow\n[2018-07-01 22:15:37] Total time for deposit processing: 388 ms\n[2018-07-01 22:16:16] Initialising verbose deposit\n[2018-07-01 22:16:16] Performing deposit using deposit URL: https://dspace-prod.mse.jhu.edu/swordv2/collection/1774.2/58586\n[2018-07-01 22:16:16] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-01 22:16:16] User is authorised to submit to collection\n[2018-07-01 22:16:16] Authenticated user: openaccess@jhu.edu\n[2018-07-01 22:16:16] Loaded ingester: org.dspace.sword2.BinaryContentIngester\n[2018-07-01 22:16:16] Updated date added to response from item metadata where available\n[2018-07-01 22:16:16] Ingest successful\n[2018-07-01 22:16:16] Item created with internal identifier: 07993fff-313f-4808-952a-acf08c8f7a23\n[2018-07-01 22:16:16] Archive ingest completed successfully\n[2018-07-01 22:16:16] DSpace will store an original copy of the deposit, as well as ingesting the item into the archive\n[2018-07-01 22:16:16] Original deposit stored as example.zip, in item bundle org.dspace.content.Bundle@15ee85cd\n[2018-07-01 22:16:16] The deposit is finished: moving it from the workspace to the workflow\n[2018-07-01 22:16:16] Total time for deposit processing: 334 ms\n[2018-07-01 22:32:17] Initialising verbose deposit\n[2018-07-01 22:54:13] Initialising verbose deposit\n[2018-07-01 22:57:35] Initialising verbose deposit\n[2018-07-01 22:58:55] Initialising verbose deposit\n[2018-07-01 22:59:38] Initialising verbose deposit\n[2018-07-01 23:00:14] Initialising verbose deposit\n[2018-07-01 23:02:13] Initialising verbose deposit\n[2018-07-01 23:09:08] Initialising verbose deposit\n[2018-07-01 23:10:16] Initialising verbose deposit\n[2018-07-01 23:19:19] Initialising verbose deposit\n[2018-07-01 23:22:17] Initialising verbose deposit\n[2018-07-01 23:23:37] Initialising verbose deposit\n[2018-07-01 23:53:35] Initialising verbose deposit\n[2018-07-02 00:13:15] Initialising verbose deposit\n[2018-07-02 00:14:57] Initialising verbose deposit\n[2018-07-02 00:16:02] Initialising verbose deposit\n[2018-07-02 00:18:32] Initialising verbose deposit\n[2018-07-02 00:23:36] Initialising verbose deposit\n[2018-07-02 00:25:38] Initialising verbose deposit\n[2018-07-02 00:29:39] Initialising verbose deposit\n[2018-07-02 00:31:03] Initialising verbose deposit\n[2018-07-02 00:40:40] Initialising verbose deposit\n[2018-07-02 00:41:05] Initialising verbose deposit\n[2018-07-02 06:51:05] Initialising verbose deposit\n[2018-07-02 06:53:09] Initialising verbose deposit\n[2018-07-02 08:31:28] Initialising verbose deposit\n[2018-07-02 12:36:26] Initialising verbose deposit\n[2018-07-02 12:36:26] Performing deposit using deposit URL: http://dspace-prod.mse.jhu.edu:8080/swordv2/collection/1774.2/58586\n[2018-07-02 12:36:26] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-02 12:36:26] User is authorised to submit to collection\n[2018-07-02 12:36:26] Authenticated user: openaccess@jhu.edu\n[2018-07-02 12:36:26] Loaded ingester: org.dspace.sword2.SwordMETSContentIngester\n[2018-07-02 12:36:26] Using package manifest format: METS\n[2018-07-02 12:36:26] Loaded package ingester: org.dspace.content.packager.DSpaceMETSIngester\n[2018-07-02 12:38:06] Initialising verbose deposit\n[2018-07-02 12:38:06] Performing deposit using deposit URL: http://dspace-prod.mse.jhu.edu:8080/swordv2/collection/1774.2/58586\n[2018-07-02 12:38:06] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-02 12:38:06] User is authorised to submit to collection\n[2018-07-02 12:38:06] Authenticated user: openaccess@jhu.edu\n[2018-07-02 12:38:06] Loaded ingester: org.dspace.sword2.SwordMETSContentIngester\n[2018-07-02 12:38:06] Using package manifest format: METS\n[2018-07-02 12:38:06] Loaded package ingester: org.dspace.content.packager.DSpaceMETSIngester\n[2018-07-02 12:38:45] Initialising verbose deposit\n[2018-07-02 12:38:45] Performing deposit using deposit URL: http://dspace-prod.mse.jhu.edu:8080/swordv2/collection/1774.2/58586\n[2018-07-02 12:38:45] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-02 12:38:45] User is authorised to submit to collection\n[2018-07-02 12:38:45] Authenticated user: openaccess@jhu.edu\n[2018-07-02 12:38:45] Loaded ingester: org.dspace.sword2.SwordMETSContentIngester\n[2018-07-02 12:38:45] Using package manifest format: METS\n[2018-07-02 12:38:45] Loaded package ingester: org.dspace.content.packager.DSpaceMETSIngester\n[2018-07-02 12:39:31] Initialising verbose deposit\n[2018-07-02 12:39:31] Performing deposit using deposit URL: http://dspace-prod.mse.jhu.edu:8080/swordv2/collection/1774.2/58586\n[2018-07-02 12:39:31] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-02 12:39:31] User is authorised to submit to collection\n[2018-07-02 12:39:31] Authenticated user: openaccess@jhu.edu\n[2018-07-02 12:39:31] Loaded ingester: org.dspace.sword2.SwordMETSContentIngester\n[2018-07-02 12:39:32] Using package manifest format: METS\n[2018-07-02 12:39:32] Loaded package ingester: org.dspace.content.packager.DSpaceMETSIngester\n[2018-07-02 12:40:35] Initialising verbose deposit\n[2018-07-02 12:40:35] Performing deposit using deposit URL: http://dspace-prod.mse.jhu.edu:8080/swordv2/collection/1774.2/58586\n[2018-07-02 12:40:35] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-02 12:40:35] User is authorised to submit to collection\n[2018-07-02 12:40:35] Authenticated user: openaccess@jhu.edu\n[2018-07-02 12:40:35] Loaded ingester: org.dspace.sword2.SwordMETSContentIngester\n[2018-07-02 12:40:35] Using package manifest format: METS\n[2018-07-02 12:40:35] Loaded package ingester: org.dspace.content.packager.DSpaceMETSIngester\n[2018-07-02 12:40:36] Workflow process started\n[2018-07-02 12:40:36] Updated date added to response from item metadata where available\n[2018-07-02 12:40:36] Ingest successful\n[2018-07-02 12:40:36] Item created with internal identifier: c2dac19b-65be-4156-a817-8c12240210e7\n[2018-07-02 12:40:36] No external identifier available at this stage (item in workflow)\n[2018-07-02 12:40:36] Archive ingest completed successfully\n[2018-07-02 12:40:36] DSpace will store an original copy of the deposit, as well as ingesting the item into the archive\n[2018-07-02 12:40:36] Original deposit stored as dspace-mets-01.zip, in item bundle org.dspace.content.Bundle@66fd3f94\n[2018-07-02 12:40:36] The deposit is finished: moving it from the workspace to the workflow\n[2018-07-02 12:40:37] Total time for deposit processing: 2219 ms\n[2018-07-02 12:48:48] Initialising verbose deposit\n[2018-07-02 12:48:48] Performing deposit using deposit URL: http://dspace-prod.mse.jhu.edu:8080/swordv2/collection/1774.2/58586\n[2018-07-02 12:48:48] Location resolves to collection with handle: 1774.2/58586 and name: JHU Open Access Research\n[2018-07-02 12:48:48] User is authorised to submit to collection\n[2018-07-02 12:48:48] Authenticated user: openaccess@jhu.edu\n[2018-07-02 12:48:48] Loaded ingester: org.dspace.sword2.BinaryContentIngester\n[2018-07-02 12:48:48] Updated date added to response from item metadata where available\n[2018-07-02 12:48:48] Ingest successful\n[2018-07-02 12:48:48] Item created with internal identifier: dbbde8a5-179f-4e94-bd4f-c852682e357d\n[2018-07-02 12:48:48] Archive ingest completed successfully\n[2018-07-02 12:48:48] DSpace will store an original copy of the deposit, as well as ingesting the item into the archive\n[2018-07-02 12:48:49] Original deposit stored as example.zip, in item bundle org.dspace.content.Bundle@aa4b79bc\n[2018-07-02 12:48:49] The deposit is finished: moving it from the workspace to the workflow\n[2018-07-02 12:48:49] Total time for deposit processing: 289 ms\n']'
Edit IRI: https://jscholarship.library.jhu.edu/swordv2/edit/dbbde8a5-179f-4e94-bd4f-c852682e357d
Edit-Media IRI: https://jscholarship.library.jhu.edu/swordv2/edit-media/dbbde8a5-179f-4e94-bd4f-c852682e357d
SWORD2 Add IRI: https://jscholarship.library.jhu.edu/swordv2/edit/dbbde8a5-179f-4e94-bd4f-c852682e357d
SWORD2 Package formats available: ['http://purl.org/net/sword/package/SimpleZip']
Alternate IRI: http://jhir.library.jhu.edu/handle/1774.2/59066
Link rel:'http://purl.org/net/sword/terms/statement' -- [{'href': 'https://jscholarship.library.jhu.edu/swordv2/statement/dbbde8a5-179f-4e94-bd4f-c852682e357d.atom', 'type': 'application/atom+xml; type=feed'}, {'href': 'https://jscholarship.library.jhu.edu/swordv2/statement/dbbde8a5-179f-4e94-bd4f-c852682e357d.rdf', 'type': 'application/rdf+xml'}]
Link rel:'edit-media' -- [{'href': 'https://jscholarship.library.jhu.edu/swordv2/edit-media/dbbde8a5-179f-4e94-bd4f-c852682e357d', 'type': 'application/zip'}, {'href': 'https://jscholarship.library.jhu.edu/swordv2/edit-media/dbbde8a5-179f-4e94-bd4f-c852682e357d.atom', 'type': 'application/atom+xml; type=feed'}]
Link rel:'http://purl.org/net/sword/terms/add' -- [{'href': 'https://jscholarship.library.jhu.edu/swordv2/edit/dbbde8a5-179f-4e94-bd4f-c852682e357d'}]
Link rel:'edit' -- [{'href': 'https://jscholarship.library.jhu.edu/swordv2/edit/dbbde8a5-179f-4e94-bd4f-c852682e357d'}]
Link rel:'alternate' -- [{'href': 'http://jhir.library.jhu.edu/handle/1774.2/59066'}]
Link rel:'http://purl.org/net/sword/terms/originalDeposit' -- [{'href': 'https://jscholarship.library.jhu.edu/swordv2/edit-media/bitstream/c1e42c2d-6ddb-4305-833b-e6468cbb39de/example.zip', 'type': 'application/octet-stream'}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment