aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/files/datacite/datacite_doc_16.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_16.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_16.json')
-rw-r--r--python/tests/files/datacite/datacite_doc_16.json80
1 files changed, 80 insertions, 0 deletions
diff --git a/python/tests/files/datacite/datacite_doc_16.json b/python/tests/files/datacite/datacite_doc_16.json
new file mode 100644
index 00000000..5af7fbe1
--- /dev/null
+++ b/python/tests/files/datacite/datacite_doc_16.json
@@ -0,0 +1,80 @@
+{
+ "id": "10.6084/m9.figshare.1282478",
+ "type": "dois",
+ "attributes": {
+ "doi": "10.6084/m9.figshare.1282478",
+ "identifiers": [
+ {
+ "identifier": "https://doi.org/10.6084/m9.figshare.1282478",
+ "identifierType": "DOI"
+ }
+ ],
+ "creators": [
+ {
+ "name": "Sochi, Taha",
+ "nameType": "Personal",
+ "givenName": "Taha",
+ "familyName": "Sochi",
+ "affiliation": []
+ }
+ ],
+ "titles": [
+ {
+ "title": "Testing the Connectivity of Networks"
+ }
+ ],
+ "publisher": "Figshare",
+ "container": {},
+ "publicationYear": 2014,
+ "subjects": [],
+ "contributors": [],
+ "dates": [
+ {
+ "date": "2014",
+ "dateType": "Issued"
+ }
+ ],
+ "language": null,
+ "types": {
+ "ris": "DATA",
+ "bibtex": "misc",
+ "citeproc": "dataset",
+ "schemaOrg": "Dataset",
+ "resourceType": "Paper",
+ "resourceTypeGeneral": "Dataset"
+ },
+ "relatedIdentifiers": [],
+ "sizes": [],
+ "formats": [],
+ "version": null,
+ "rightsList": [
+ {
+ "rights": "CC-BY",
+ "rightsUri": "http://creativecommons.org/licenses/by/3.0/us"
+ }
+ ],
+ "descriptions": [],
+ "geoLocations": [],
+ "fundingReferences": [],
+ "url": "http://figshare.com/articles/Testing_the_Connectivity_of_Networks/1282478",
+ "contentUrl": null,
+ "metadataVersion": 0,
+ "schemaVersion": "http://datacite.org/schema/kernel-3",
+ "source": null,
+ "isActive": true,
+ "state": "findable",
+ "reason": null,
+ "created": "2014-12-31T15:38:16.000Z",
+ "registered": "2014-12-31T15:38:18.000Z",
+ "published": "2014",
+ "updated": "2019-08-02T04:52:11.000Z"
+ },
+ "relationships": {
+ "client": {
+ "data": {
+ "id": "figshare.ars",
+ "type": "clients"
+ }
+ }
+ }
+}