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

Question: ROBOT command for axiom addition and subtraction #1132

Open
ShahimEssaid opened this issue Jul 21, 2023 · 1 comment
Open

Question: ROBOT command for axiom addition and subtraction #1132

ShahimEssaid opened this issue Jul 21, 2023 · 1 comment

Comments

@ShahimEssaid
Copy link

ShahimEssaid commented Jul 21, 2023

A brief review of the documentation gave me the impression that addition and subtraction functionality is at the entity level. In my case I need to do axiom level subtraction and addition. Is this possible with ROBOT?

My use case in more detail is the following. I need a CLI tool that will load an OWL ontology (and resolve imports) and then do subtraction and addition for axioms contained in configurable OWL documents. Optimally, the tool would then write the source OWL files (the ontology) in place but an output to a merged OWL file (after the subtraction and addition) is still useful.

The subtraction is the main part since I can implement the additions through imports.

@cmungall
Copy link
Contributor

You could do the subtraction using:

https://robot.obolibrary.org/unmerge

The name is unintuitive (I think I am responsible). But it's basically axiom subtraction. I am not sure if it has been extensively tested for this use case though. There may be edge cases. E.g. if your serialization is RDF based then there may be cases where you need to add declarations such as ObjectProperty declarations in order to get the right interpretations, but it's not your intent to subtract these. My intuition is that if you stick with OWL direct serializations it should work.

For axiom addition you could just use the plain merge command

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

No branches or pull requests

2 participants