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

Implement axioms on relations, object properties, and xrefs #264

Merged
merged 14 commits into from
Dec 12, 2024
Merged

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented Dec 12, 2024

This will support making more SSSOM-like mappings through the PyOBO DSL.

Specifically, it will support @jplfaria to annotate some extra information into GTDB (see the TODO in the GTDB source)

Note that most of the functionality and data structures are implemented as private methods and fields. These are subject to change.

term.append_xref(Reference(prefix="ncbitaxon", identifier=ncbitaxon_id))
term.append_xref(
Reference(prefix="ncbitaxon", identifier=ncbitaxon_id),
# TODO @jose use confidence=... keyword here
Copy link
Member Author

@cthoyt cthoyt Dec 12, 2024

Choose a reason for hiding this comment

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

@jplfaria this is the place where you can write the confidence. If there are some missing SSSOM-like fields you want to use and I can add them in a follow-up PR

term.append_xref(
    Reference(prefix="ncbitaxon", identifier=ncbitaxon_id),
    confidence=0.99, # or a variable
)

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks I will let you know if I need anything else!

@cthoyt cthoyt merged commit 8e5d739 into main Dec 12, 2024
11 checks passed
@cthoyt cthoyt deleted the enable-axioms branch December 12, 2024 13:30
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