summaryrefslogtreecommitdiffstats
path: root/python/tests/files/datacite/datacite_doc_02.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_02.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_02.json')
-rw-r--r--python/tests/files/datacite/datacite_doc_02.json85
1 files changed, 85 insertions, 0 deletions
diff --git a/python/tests/files/datacite/datacite_doc_02.json b/python/tests/files/datacite/datacite_doc_02.json
new file mode 100644
index 00000000..8b9a594e
--- /dev/null
+++ b/python/tests/files/datacite/datacite_doc_02.json
@@ -0,0 +1,85 @@
+{
+ "id": "10.11588/diglit.37715.57",
+ "type": "dois",
+ "attributes": {
+ "doi": "10.11588/diglit.37715.57",
+ "identifiers": [
+ {
+ "identifier": "https://doi.org/10.11588/diglit.37715.57",
+ "identifierType": "DOI"
+ }
+ ],
+ "creators": [
+ {
+ "name": "Weyersberg, Albert",
+ "nameType": "Personal",
+ "givenName": "Albert",
+ "familyName": "Weyersberg",
+ "affiliation": []
+ }
+ ],
+ "titles": [
+ {
+ "lang": "de",
+ "title": "Solinger Schwertschmiede-Familien, [4]"
+ }
+ ],
+ "publisher": "University Library Heidelberg",
+ "container": {},
+ "publicationYear": 1897,
+ "subjects": [],
+ "contributors": [],
+ "dates": [
+ {
+ "date": "1897",
+ "dateType": "Issued"
+ }
+ ],
+ "language": "ger",
+ "types": {
+ "ris": "RPRT",
+ "bibtex": "article",
+ "citeproc": "article-journal",
+ "schemaOrg": "ScholarlyArticle",
+ "resourceType": "DigitalisatDigital copy",
+ "resourceTypeGeneral": "Text"
+ },
+ "relatedIdentifiers": [],
+ "sizes": [],
+ "formats": [],
+ "version": null,
+ "rightsList": [
+ {
+ "lang": "de",
+ "rights": "Creative Commons - Namensnennung - Weitergabe unter gleichen Bedingungen - https://creativecommons.org/licenses/by-sa/3.0/de/"
+ },
+ {
+ "lang": "en",
+ "rights": "Creative Commons - Namensnennung - Weitergabe unter gleichen Bedingungen - https://creativecommons.org/licenses/by-sa/3.0/"
+ }
+ ],
+ "descriptions": [],
+ "geoLocations": [],
+ "fundingReferences": [],
+ "url": "https://digi.ub.uni-heidelberg.de/diglit/zhwk1897_1899/0131",
+ "contentUrl": null,
+ "metadataVersion": 2,
+ "schemaVersion": "http://datacite.org/schema/kernel-4",
+ "source": "mds",
+ "isActive": true,
+ "state": "findable",
+ "reason": null,
+ "created": "2018-11-29T12:04:12.000Z",
+ "registered": "2018-11-29T12:04:13.000Z",
+ "published": "1897",
+ "updated": "2019-08-02T21:31:04.000Z"
+ },
+ "relationships": {
+ "client": {
+ "data": {
+ "id": "gesis.ubhd",
+ "type": "clients"
+ }
+ }
+ }
+}