Skip to main content

A command line tool to aggregate research output metadata from DataCite, OpenAIRE and OpenAlex based on an organisations ROR ID

Project description

Research output aggregator

[!NOTE] This script is under development

The goal of this project is to create a script to get a summarization for a research organization about the research output.
First target is to query and process information from DataCite.

The goal for this script is to create a list over research output where an organization is mentioned as:

  • publisher
  • creator with affiliation to the organization
  • contributor with affiliation to the organization

input: ROR-id and list of variants on the organization name.

Properties to collect for each research output:

Field Type Comment
publicationYear integer The year of publication, can be empty in some cases
resourceType string The resource type (free text string)
title string Title of the resource (first one if multiple)
publisher string Publisher (free text)
createdAt string Created date if availible
updatedAt string Updatade date if availible
isPublisher bool True if the the publisher match the requested organisation
isFunder bool True if the the funder match the requested organisation
haveCreatorAffiliation bool True if the the any creator match the requested organisation
haveContributorAffiliation bool True if the the any contributor match the requested organisation
isLatestVersion bool True if the DataCite metadata indicates this beeing the latest version
isConceptDoi bool True if the DataCite metadata indicates this beeing a concept DOI
matchPublisherRor bool True if the ROR id for publisher match the ROR in the provided argument
matchCreatorAffiliationRor bool True if the ROR id for a creator affiliation match the ROR in the provided argument
matchContributorAffiliationRor bool True if the ROR id for a contributor affiliation match the ROR in the provided argument
matchFunderRor bool True if the ROR id for funder match the ROR in the provided argument
matchPublisherName bool True if any of the names supplied matches the publisher name in the resource
matchCreatorName bool True if any of the names supplied matches the creator name in the resource
matchContributorName bool True if any of the names supplied matches the contributor name in the resource
matchFunderName bool True if any of the names supplied matches the funder name in the resource
inDataCite bool True if the DOI was matched in the DataCite
inOpenAire bool True if the DOI was matched in OpenAire
inOpenAlex bool True if the DOI was matched in OpenAlex
inCrossRef bool True if the DOI was matched in CrossRef
dataCiteClientId string The client id for the organisation minting the DOI
dataCiteClientName string The human readable name of the minting organisation
dataCiteCitationCount integer Citation count for the resource provided by the DataCite API
dataCiteReferenceCount integer Reference count for the resource provided by the DataCite API
dataCiteViewCount integer View count for the resource provided by the DataCite API
dataCiteDownloadCount integer Download count for the resource provided by the DataCite API
openAireBestAccessRight string Access Rights for the resource indicated indicated by the OpenAire API
openAireIndicatorsUsageCountsDownloads integer Download count for the resource indicated by the OpenAire API
openAireIndicatorsUsageCountsViews integer View count for the resource provided by the OpenAire API
openAireId string Id for the resource in OpenAire
openAlexId string Id for the resource in OpenAlex
openAlexCitedByCount integer Citation count for the resource provided by the OpenAlex API
openAlexReferencedWorksCount integer Reference count for the resource provided by the OpenAlex API
titleWordCount integer Number of words in the title (useful for sorting in some cases)
referencedByDoi string

Install

pip install .

Install dev

pip install -e .

Development stuff to do

  • ROR get name variants from ROR
  • CLI add options to get name list from txt
  • DataCite API build query for matching publisher and affiliation
  • Crossref API build query for matching publisher and affiliation
  • Publish as cmd tool on PyPI

Run

List arguments:
roagg --help

Tests

Some tests are available, to run them:
python -m pytest

Some example arguments

Chalmers with ror and name list:

roagg --ror https://ror.org/040wg7k59 --name-txt tests/name-lists/chalmers.txt --output chalmers.csv

GU with ror, name list and extra name not in the text file:

roagg --name "Department of Nephrology Gothenburg" --ror https://ror.org/01tm6cn81 --name-txt tests/name-lists/gu.txt --output data/gu.csv

KTH with ror and name list:

roagg --ror https://ror.org/026vcq606 --name-txt tests/name-lists/kth.txt --output data/kth.csv

KAU with ror:

roagg --ror https://ror.org/05s754026 --output kau.csv

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roagg-2025.0.9.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roagg-2025.0.9-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file roagg-2025.0.9.tar.gz.

File metadata

  • Download URL: roagg-2025.0.9.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for roagg-2025.0.9.tar.gz
Algorithm Hash digest
SHA256 909d83878fec04fa5592360c6aa7430a08125f98b0e401a0c42db541ec62b4e3
MD5 5f0d6500e75095f34e2430714bbf33a6
BLAKE2b-256 55c6f5fa3638b4b753c2b906d10da99f012fefe23a1fa6f984aedf8ea3cafa5e

See more details on using hashes here.

Provenance

The following attestation bundles were made for roagg-2025.0.9.tar.gz:

Publisher: python-publish.yml on snd-sweden/roagg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file roagg-2025.0.9-py3-none-any.whl.

File metadata

  • Download URL: roagg-2025.0.9-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for roagg-2025.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 063556ac70be06c55c0253ac631125a7e9ed43a1a7255bb170a3904e62ff6858
MD5 3060d2482bd1b59e6c79923785839591
BLAKE2b-256 293cc169544a2732fdd6aa18f9ff771739ac691ab8d695d8aaf420c7cb500f53

See more details on using hashes here.

Provenance

The following attestation bundles were made for roagg-2025.0.9-py3-none-any.whl:

Publisher: python-publish.yml on snd-sweden/roagg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page