aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/files/datacite/datacite_doc_11.json
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-01-02 17:35:54 +0100
committerMartin Czygan <martin.czygan@gmail.com>2020-01-02 17:35:54 +0100
commit96e38edde79735b4080ec08d57e9f54759e97b61 (patch)
tree2798719086819b747adab8d48adbb0c59b5ac9f5 /python/tests/files/datacite/datacite_doc_11.json
parentb87ba235c0a7da15d70c5ab7fa367d7b9c1fb981 (diff)
downloadfatcat-96e38edde79735b4080ec08d57e9f54759e97b61.tar.gz
fatcat-96e38edde79735b4080ec08d57e9f54759e97b61.zip
datacite: add conversion fixtures
The `test_datacite_conversions` function will compare an input (datacite) document to an expected output (release entity as JSON). This way, it should not be too hard to add more cases by adding: input, output - and by increasing the counter in the range loop within the test. To view input and result side by side with vim, change into the test directory and run: tests/files/datacite $ ./caseview.sh 18
Diffstat (limited to 'python/tests/files/datacite/datacite_doc_11.json')
-rw-r--r--python/tests/files/datacite/datacite_doc_11.json86
1 files changed, 86 insertions, 0 deletions
diff --git a/python/tests/files/datacite/datacite_doc_11.json b/python/tests/files/datacite/datacite_doc_11.json
new file mode 100644
index 00000000..50fe8363
--- /dev/null
+++ b/python/tests/files/datacite/datacite_doc_11.json
@@ -0,0 +1,86 @@
+{
+ "id": "10.3932/ethz-a-000055869",
+ "type": "dois",
+ "attributes": {
+ "doi": "10.3932/ethz-a-000055869",
+ "identifiers": [
+ {
+ "identifier": "https://doi.org/10.3932/ethz-a-000055869",
+ "identifierType": "DOI"
+ }
+ ],
+ "creators": [
+ {
+ "name": "Comet Photo AG (Zürich)",
+ "affiliation": []
+ }
+ ],
+ "titles": [
+ {
+ "title": "N1 bei Safenwil"
+ }
+ ],
+ "publisher": "ETH-Bibliothek Zürich, Bildarchiv",
+ "container": {},
+ "publicationYear": 1965,
+ "subjects": [],
+ "contributors": [],
+ "dates": [
+ {
+ "date": "1965",
+ "dateType": "Available"
+ },
+ {
+ "date": "1965",
+ "dateType": "Issued"
+ }
+ ],
+ "language": "de",
+ "types": {
+ "ris": "FIGURE",
+ "bibtex": "misc",
+ "citeproc": "graphic",
+ "schemaOrg": "ImageObject",
+ "resourceTypeGeneral": "Image"
+ },
+ "relatedIdentifiers": [],
+ "sizes": [],
+ "formats": [
+ "TIFF-Bild"
+ ],
+ "version": null,
+ "rightsList": [],
+ "descriptions": [
+ {
+ "description": "Download und Nutzung frei",
+ "descriptionType": "Other"
+ },
+ {
+ "description": "10, N1, Genève, Bern, Zürich, Sankt Gallen, Sankt Margrethen, Strassen, Strassenbau, 2.",
+ "descriptionType": "Other"
+ }
+ ],
+ "geoLocations": [],
+ "fundingReferences": [],
+ "url": "http://ba.e-pics.ethz.ch/link.jsp?id=44861",
+ "contentUrl": null,
+ "metadataVersion": 6,
+ "schemaVersion": "http://datacite.org/schema/kernel-3",
+ "source": "mds",
+ "isActive": true,
+ "state": "findable",
+ "reason": null,
+ "created": "2019-03-04T23:56:42.000Z",
+ "registered": "2019-07-30T13:17:45.000Z",
+ "published": "1965",
+ "updated": "2019-08-02T22:08:26.000Z"
+ },
+ "relationships": {
+ "client": {
+ "data": {
+ "id": "ethz.epics-ba",
+ "type": "clients"
+ }
+ }
+ }
+}