Skip to content

Improve distinction and links between pre-prints, published articles #36

@willu47

Description

@willu47

At the moment, there is no good distinction between pre-prints, published articles, and now clear links between the various elements which comprise a study. It would be great if we could include the links between entities so that the various artefacts could be better represented on the research index:

pre-print
article
dataset
model
software

The new v3 openaire API provides a type key under instance e.g.

token = <personal token>
api_url = "https://api.openaire.eu/graph/researchProducts"
params = {'pid': "10.5281/zenodo.10848127"}
headers = { "Authorization": f"Bearer {token}" }
response = requests.get(api_url, params, headers=headers)
for instance in results[0]['instance']:
    print(instance['type'], instance)

produces

Article {'pid': [{'scheme': 'doi', 'value': '10.1016/j.erss.2024.103821'}], 'license': 'CC BY', 'type': 'Article', 'url': ['https://doi.org/10.1016/j.erss.2024.103821'], 'publicationDate': '2024-12-01', 'refereed': 'peerReviewed'}
Preprint {'pid': [{'scheme': 'doi', 'value': '10.5281/zenodo.10060897'}], 'type': 'Preprint', 'url': ['https://doi.org/10.5281/zenodo.10060897'], 'publicationDate': '2024-01-01', 'refereed': 'nonPeerReviewed'}
Preprint {'pid': [{'scheme': 'doi', 'value': '10.5281/zenodo.10848127'}], 'alternateIdentifier': [{'scheme': 'oai', 'value': 'oai:zenodo.org:10848127'}], 'type': 'Preprint', 'url': ['https://doi.org/10.5281/zenodo.10848127'], 'publicationDate': '2024-02-01', 'refereed': 'nonPeerReviewed'}
Data governance and open science in energy planning: A case study of the Kenyan ecosystem

Links between entities can be further enriched using the ScholExplorer API provided by OpenAire like so:

response = requests.get("https://api.scholexplorer.openaire.eu/v3/Links", params = {'targetPid': "10.5281/zenodo.10848127"})
for result in response.json()['result']:
    print(result['RelationshipType']['Name'], result['source']['Type'], result['target']['Type'], result['source']['Identifier'][0]['ID'], result['source'].keys())

producing

IsRelatedTo literature literature 10.5281/zenodo.10848515 dict_keys(['Identifier', 'Title', 'Type', 'Creator', 'PublicationDate', 'Publisher'])
IsSupplementTo dataset literature 10.5281/zenodo.10277335 dict_keys(['Identifier', 'Title', 'Type', 'Creator', 'PublicationDate', 'Publisher'])

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions