Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add provenance and parents to climate ontology #255

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented Nov 3, 2023

This PR adds the provenance information from which system (i.e., Halfar System, Budyko Sellers) a given term was derived. Some terms are found in multiple. Note that the "part_ofs" list uses CURIEs for the systems, so for Halfar, you want to look for askem.climate:0001002

To extract the list, use:

from mira.dkg.askemo import get_askem_climate_ontology_terms


def main():
    for curie, term in get_askem_climate_ontology_terms().items():
        if "askem.climate:0001002" in term.part_ofs:
            print(curie, term.name)


if __name__ == "__main__":
    main()

Copy link
Member

@bgyori bgyori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@bgyori bgyori merged commit 15ac43e into main Nov 3, 2023
4 checks passed
@cthoyt cthoyt deleted the add-climate-ontology-provenance branch November 3, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants