-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
220 changed files
with
6,164 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
""" | ||
(c) ΔQ Programming LLP, 2021 | ||
This program is free software; you may redistribute and/or modify | ||
it under the terms of the Apache License v2.0. | ||
""" | ||
import os | ||
import pathlib | ||
|
||
import requests | ||
from django.core.management.base import BaseCommand | ||
|
||
|
||
class Command(BaseCommand): | ||
""" | ||
A management command that fetches and installs the latest ROR support | ||
""" | ||
|
||
help = "Installs ROR functionality into Thoth components" | ||
|
||
def handle(self, *args, **options): | ||
url = 'https://zenodo.org/api/records/' \ | ||
'?communities=ror-data&sort=mostrecent' | ||
|
||
meta_response = requests.get(url) | ||
|
||
print(meta_response) | ||
|
||
print("ROR fixtures installed. At next Thoth sync, ROR functionality " | ||
"will be enabled.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
"""GraphQL client for Thoth""" | ||
|
||
__version__ = "0.6.2" | ||
__version__ = "0.7.0" | ||
__author__ = "Javier Arias <[email protected]>" | ||
__copyright__ = "Copyright (c) 2020 Open Book Publishers" | ||
__license__ = "Apache 2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"data":{"contributions":[{"contributionId":"1a3ef666-c624-4240-a176-b510ff899040","contributionType":"AUTHOR","mainContribution":true,"biography":null,"institution":null,"__typename":"Contribution","firstName":"Daniela","lastName":"Cascella","fullName":"Daniela Cascella","contributionOrdinal":1,"workId":"a01f41d6-1da8-4b0b-87b4-82ecc41c6d55","work":{"fullTitle":"Nothing As We Need It: A Chimera"},"contributor":{"firstName":"Daniela","lastName":"Cascella","fullName":"Daniela Cascella","orcid":"https://orcid.org/0000-0001-7995-5915","__typename":"Contributor","website":"http://www.danielacascella.com","contributorId":"1fab9df5-d9b4-4695-973e-ebb052b184ff"}},{"contributionId":"29e4f46b-851a-4d7b-bb41-e6f305fc2b11","contributionType":"AUTHOR","mainContribution":true,"biography":null,"institution":null,"__typename":"Contribution","firstName":"Sara A.","lastName":"Rich","fullName":"Sara A. Rich","contributionOrdinal":1,"workId":"501a8862-dc30-4d1e-ab47-deb9f5579678","work":{"fullTitle":"Closer to Dust"},"contributor":{"firstName":"Sara A.","lastName":"Rich","fullName":"Sara A. Rich","orcid":"https://orcid.org/0000-0001-9176-8514","__typename":"Contributor","website":null,"contributorId":"c145d392-c37e-41b6-9225-1c3a1a46f460"}}]}} | ||
{"data":{"contributions":[{"contributionId":"a4049dd5-bfad-4f92-8c02-fa0956e8e6e5","contributionType":"AUTHOR","mainContribution":true,"biography":null,"institution":null,"__typename":"Contribution","firstName":"Darren R.","lastName":"Reid","fullName":"Darren R. Reid","contributionOrdinal":1,"workId":"b31b6f95-4dd4-4fa9-9c55-803ce2fd36ff","work":{"fullTitle":"Documentary Making for Digital Humanists"},"contributor":{"firstName":"Darren R.","lastName":"Reid","fullName":"Darren R. Reid","orcid":"https://orcid.org/0000-0002-5785-1071","__typename":"Contributor","website":"http://www.darrenreidhistory.co.uk/","contributorId":"48a6d221-aba6-458b-901a-a857eafd5bcc"}},{"contributionId":"1a3ef666-c624-4240-a176-b510ff899040","contributionType":"AUTHOR","mainContribution":true,"biography":null,"institution":null,"__typename":"Contribution","firstName":"Daniela","lastName":"Cascella","fullName":"Daniela Cascella","contributionOrdinal":1,"workId":"a01f41d6-1da8-4b0b-87b4-82ecc41c6d55","work":{"fullTitle":"Nothing As We Need It: A Chimera"},"contributor":{"firstName":"Daniela","lastName":"Cascella","fullName":"Daniela Cascella","orcid":"https://orcid.org/0000-0001-7995-5915","__typename":"Contributor","website":"http://www.danielacascella.com","contributorId":"1fab9df5-d9b4-4695-973e-ebb052b184ff"}}]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[{"contributionId": "1a3ef666-c624-4240-a176-b510ff899040", "contributionType": "AUTHOR", "mainContribution": true, "biography": null, "institution": null, "__typename": "Contribution", "firstName": "Daniela", "lastName": "Cascella", "fullName": "Daniela Cascella", "contributionOrdinal": 1, "workId": "a01f41d6-1da8-4b0b-87b4-82ecc41c6d55", "work": {"fullTitle": "Nothing As We Need It: A Chimera"}, "contributor": {"firstName": "Daniela", "lastName": "Cascella", "fullName": "Daniela Cascella", "orcid": "https://orcid.org/0000-0001-7995-5915", "__typename": "Contributor", "website": "http://www.danielacascella.com", "contributorId": "1fab9df5-d9b4-4695-973e-ebb052b184ff"}}, {"contributionId": "29e4f46b-851a-4d7b-bb41-e6f305fc2b11", "contributionType": "AUTHOR", "mainContribution": true, "biography": null, "institution": null, "__typename": "Contribution", "firstName": "Sara A.", "lastName": "Rich", "fullName": "Sara A. Rich", "contributionOrdinal": 1, "workId": "501a8862-dc30-4d1e-ab47-deb9f5579678", "work": {"fullTitle": "Closer to Dust"}, "contributor": {"firstName": "Sara A.", "lastName": "Rich", "fullName": "Sara A. Rich", "orcid": "https://orcid.org/0000-0001-9176-8514", "__typename": "Contributor", "website": null, "contributorId": "c145d392-c37e-41b6-9225-1c3a1a46f460"}}] | ||
[{"contributionId": "a4049dd5-bfad-4f92-8c02-fa0956e8e6e5", "contributionType": "AUTHOR", "mainContribution": true, "biography": null, "institution": null, "__typename": "Contribution", "firstName": "Darren R.", "lastName": "Reid", "fullName": "Darren R. Reid", "contributionOrdinal": 1, "workId": "b31b6f95-4dd4-4fa9-9c55-803ce2fd36ff", "work": {"fullTitle": "Documentary Making for Digital Humanists"}, "contributor": {"firstName": "Darren R.", "lastName": "Reid", "fullName": "Darren R. Reid", "orcid": "https://orcid.org/0000-0002-5785-1071", "__typename": "Contributor", "website": "http://www.darrenreidhistory.co.uk/", "contributorId": "48a6d221-aba6-458b-901a-a857eafd5bcc"}}, {"contributionId": "1a3ef666-c624-4240-a176-b510ff899040", "contributionType": "AUTHOR", "mainContribution": true, "biography": null, "institution": null, "__typename": "Contribution", "firstName": "Daniela", "lastName": "Cascella", "fullName": "Daniela Cascella", "contributionOrdinal": 1, "workId": "a01f41d6-1da8-4b0b-87b4-82ecc41c6d55", "work": {"fullTitle": "Nothing As We Need It: A Chimera"}, "contributor": {"firstName": "Daniela", "lastName": "Cascella", "fullName": "Daniela Cascella", "orcid": "https://orcid.org/0000-0001-7995-5915", "__typename": "Contributor", "website": "http://www.danielacascella.com", "contributorId": "1fab9df5-d9b4-4695-973e-ebb052b184ff"}}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"data":{"funder":{"funderId":"194614ac-d189-4a74-8bf4-74c0c9de4a81","funderName":"The Danish Independent Research Council","funderDoi":null,"fundings":[{"grantNumber":"0602-02551B","program":"FSE","projectName":"Marine Renewable Energy as Alien","jurisdiction":"DK","work":{"workId":"95e15115-4009-4cb0-8824-011038e3c116","fullTitle":"Energy Worlds: In Experiment","doi":"https://doi.org/10.28938/9781912729098","publicationDate":"2021-05-01","place":"Manchester","contributions":[{"fullName":"Brit Ross Winthereik","contributionType":"AUTHOR","mainContribution":true,"contributionOrdinal":3},{"fullName":"Laura Watts","contributionType":"EDITOR","mainContribution":true,"contributionOrdinal":2},{"fullName":"James Maguire","contributionType":"EDITOR","mainContribution":true,"contributionOrdinal":1}],"imprint":{"publisher":{"publisherName":"Mattering Press","publisherId":"17d701c1-307e-4228-83ca-d8e90d7b87a6"}}}}],"__typename":"Funder"}}} | ||
{"data":{"funder":{"funderId":"194614ac-d189-4a74-8bf4-74c0c9de4a81","funderName":"The Danish Independent Research Council","funderDoi":null,"fundings":[{"grantNumber":"0602-02551B","program":"FSE","projectName":"Marine Renewable Energy as Alien","jurisdiction":"DK","work":{"workId":"95e15115-4009-4cb0-8824-011038e3c116","fullTitle":"Energy Worlds: In Experiment","doi":"https://doi.org/10.28938/9781912729098","publicationDate":"2021-05-01","place":"Manchester, UK","contributions":[{"fullName":"Brit Ross Winthereik","contributionType":"AUTHOR","mainContribution":true,"contributionOrdinal":3},{"fullName":"James Maguire","contributionType":"EDITOR","mainContribution":true,"contributionOrdinal":1},{"fullName":"Laura Watts","contributionType":"EDITOR","mainContribution":true,"contributionOrdinal":2}],"imprint":{"publisher":{"publisherName":"Mattering Press","publisherId":"17d701c1-307e-4228-83ca-d8e90d7b87a6"}}}}],"__typename":"Funder"}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"funderId": "194614ac-d189-4a74-8bf4-74c0c9de4a81", "funderName": "The Danish Independent Research Council", "funderDoi": null, "fundings": [{"grantNumber": "0602-02551B", "program": "FSE", "projectName": "Marine Renewable Energy as Alien", "jurisdiction": "DK", "work": {"workId": "95e15115-4009-4cb0-8824-011038e3c116", "fullTitle": "Energy Worlds: In Experiment", "doi": "https://doi.org/10.28938/9781912729098", "publicationDate": "2021-05-01", "place": "Manchester", "contributions": [{"fullName": "Brit Ross Winthereik", "contributionType": "AUTHOR", "mainContribution": true, "contributionOrdinal": 3}, {"fullName": "Laura Watts", "contributionType": "EDITOR", "mainContribution": true, "contributionOrdinal": 2}, {"fullName": "James Maguire", "contributionType": "EDITOR", "mainContribution": true, "contributionOrdinal": 1}], "imprint": {"publisher": {"publisherName": "Mattering Press", "publisherId": "17d701c1-307e-4228-83ca-d8e90d7b87a6"}}}}], "__typename": "Funder"} | ||
{"funderId": "194614ac-d189-4a74-8bf4-74c0c9de4a81", "funderName": "The Danish Independent Research Council", "funderDoi": null, "fundings": [{"grantNumber": "0602-02551B", "program": "FSE", "projectName": "Marine Renewable Energy as Alien", "jurisdiction": "DK", "work": {"workId": "95e15115-4009-4cb0-8824-011038e3c116", "fullTitle": "Energy Worlds: In Experiment", "doi": "https://doi.org/10.28938/9781912729098", "publicationDate": "2021-05-01", "place": "Manchester, UK", "contributions": [{"fullName": "Brit Ross Winthereik", "contributionType": "AUTHOR", "mainContribution": true, "contributionOrdinal": 3}, {"fullName": "James Maguire", "contributionType": "EDITOR", "mainContribution": true, "contributionOrdinal": 1}, {"fullName": "Laura Watts", "contributionType": "EDITOR", "mainContribution": true, "contributionOrdinal": 2}], "imprint": {"publisher": {"publisherName": "Mattering Press", "publisherId": "17d701c1-307e-4228-83ca-d8e90d7b87a6"}}}}], "__typename": "Funder"} |
Oops, something went wrong.