Skip to content

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

@dlutz2

Description

@dlutz2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions