From: <owl...@go...> - 2013-05-31 13:39:42
|
Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 66 by frederic...@gmail.com: Methods get...Edges return OWLGraphEdges with no ontology attribute set http://code.google.com/p/owltools/issues/detail?id=66 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. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings |