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

Methods get...Edges return OWLGraphEdges with no ontology attribute set #66

Closed
ShahimEssaid opened this issue Feb 2, 2015 · 1 comment

Comments

@ShahimEssaid
Copy link

From frederic...@gmail.com on May 31, 2013 06:39:28

Hi,

OWLGraphEdges returned by method such as getIncomingEdges or getOutgoingEdges have no ontology set (getOntology() returns null).

This is problematic when trying to remove or add axioms based on such OWLGraphEdges. For instance:

OWLSubClassOfAxiom ax = factory.getOWLSubClassOfAxiom((OWLClassExpression) edge.getSource(), (OWLClassExpression) edgeToTargetExpression(edge));
RemoveAxiom remove = new RemoveAxiom(edge.getOntology(), ax);
manager.applyChange(remove);
//fail with exception:
//org.semanticweb.owlapi.model.ImmutableOWLOntologyChangeException: Cannot apply changes to immutable ontology: null

It would be great if the returned OWLGraphEdges had their ontology attribute set.

Original issue: http://code.google.com/p/owltools/issues/detail?id=66

@ShahimEssaid
Copy link
Author

From frederic...@gmail.com on November 20, 2013 12:42:50

Fixed by revision r1764 .

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant