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

Fix ORCID individuals import #3257

Merged
merged 5 commits into from
Apr 18, 2024
Merged

Fix ORCID individuals import #3257

merged 5 commits into from
Apr 18, 2024

Conversation

anitacaron
Copy link
Collaborator

@anitacaron anitacaron commented Apr 17, 2024

Related to #3253 (ORCID names are being removed in diff)

I chose to have a separate import because the merged_import excludes individuals, and I wanted to enable this only for Orcidio. I created a custom rule for imports/orcidio_import.owl and imported it in uberon-edit.obo.

What do you think?

matentzn
matentzn previously approved these changes Apr 17, 2024
src/ontology/uberon.Makefile Outdated Show resolved Hide resolved
src/sparql/orcids.sparql Show resolved Hide resolved
@anitacaron
Copy link
Collaborator Author

Can I please merge this PR and move the discussion to another place?

@gouttegd
Copy link
Collaborator

I don’t like the fact that the PR only works because of what is likely to be either (1) a bug in ROBOT’s STAR extraction or (2) an undefined behaviour due to the fact that the seed is a list of individuals, while SLME is supposed to work from a list of class or property names.

I am not discussing just for the sake of discussing. Relying on a bug/undefined behaviour that we can’t explain is not great, even if it appears to work the way we want.

@anitacaron
Copy link
Collaborator Author

I can change it to BOT and then get all individuals, which is the expected behaviour.

@gouttegd
Copy link
Collaborator

But then all the individuals defined in orcidio would end up in the orcidio_import.owl module, including those who have nothing to do with Uberon.

@gouttegd
Copy link
Collaborator

gouttegd commented Apr 18, 2024

This works as I believe it should:

robot filter -i mirror/orcidio.owl -T imports/orcidio_terms_combined.txt --trim false  -o imports/orcidio_import.owl

The key option here is --trim false, which is necessary to ensure we get the annotations associated with the individuals. Without that option, the annotation assertion axioms are filtered out because their signature contains entities that are not in the seed. This is exactly as expected:

When using filter --trim true (the default), if all objects for the axiom are in the target set then that axiom is copied to the new ontology. When using filter --trim false, if any object for the axiom are in the target set, then that axiom is copied.

Copy link
Collaborator

@gouttegd gouttegd left a comment

Choose a reason for hiding this comment

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

Looks good.

You don’t need to do anything about my remark regarding the use of Make conditionals. It’s something we can do later, maybe by doing a single overhauling pass over the custom Makefile to replace all shell conditionals in one step.

src/ontology/uberon.Makefile Show resolved Hide resolved
@anitacaron anitacaron merged commit 4f36ec2 into master Apr 18, 2024
1 check passed
@gouttegd gouttegd deleted the fix-orcidio-import branch April 18, 2024 13:19
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.

3 participants