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

Export throws exception when using "Equivalent Property" heading #1145

Closed
dlutz2 opened this issue Sep 2, 2023 · 2 comments · Fixed by #1148
Closed

Export throws exception when using "Equivalent Property" heading #1145

dlutz2 opened this issue Sep 2, 2023 · 2 comments · Fixed by #1148

Comments

@dlutz2
Copy link
Contributor

dlutz2 commented Sep 2, 2023

ROBOT 1.9.4
When exporting an ontology containing an annotation property (defined or used), an export command with an "Equivalent Property" header throws an ClassCast exception when attempting to cast an Annotation property to an Object property in EntitySearcher.getEquivalentProperties(). This is called from ExportOperation.getRow() in the switch (iriStr) statement with case "http://www.w3.org/2002/07/owl#equivalentProperty" with an Annotation Property as the entity. The if (entity.isOWLAnnotationProperty()) portion of that case statement should be a no-op since there is no Equivalent Annotation Property axiom in OWL.
EntitySearcher naively assumes if the input property is not a data property its an Object Property, doesn't check and attempts to cast the input to an ObjectPropertyExpression
This can be reproduced with an ontology which contains a single annotation property declaration.

@matentzn
Copy link
Contributor

matentzn commented Sep 4, 2023

Thank you for the report @dlutz2 :) Is this one on your team's radar as well?

@dlutz2
Copy link
Contributor Author

dlutz2 commented Sep 4, 2023

Yes, it is.

@dlutz2 dlutz2 closed this as completed Sep 4, 2023
@dlutz2 dlutz2 reopened this Sep 4, 2023
dlutz2 added a commit to dlutz2/robot that referenced this issue Sep 9, 2023
Equivalent class fails - ontodev#1145
Self-disjoint - ontodev#1144
Export Large excel - ontodev#1131
@dlutz2 dlutz2 mentioned this issue Sep 10, 2023
5 tasks
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 a pull request may close this issue.

2 participants