Skip to content
This repository was archived by the owner on Aug 26, 2023. It is now read-only.

Commit b170329

Browse files
committed
rdf-protege: handle renaming com.github.owlcs.ontapi.OntologyModel -> com.github.owlcs.ontapi.Ontology (see owlcs/ont-api#4)
1 parent eb4d894 commit b170329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protege-editor-owl/src/main/java/org/protege/editor/owl/ui/view/rdf/TripleHierarchyProvider.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.protege.editor.owl.ui.view.rdf;
22

3-
import com.github.owlcs.ontapi.OntologyModel;
3+
import com.github.owlcs.ontapi.Ontology;
44
import com.github.owlcs.ontapi.jena.OntModelFactory;
55
import com.github.owlcs.ontapi.jena.utils.Graphs;
66
import org.apache.jena.graph.BlankNodeId;
@@ -33,7 +33,7 @@ public class TripleHierarchyProvider implements OWLObjectHierarchyProvider<Tripl
3333

3434
@Override
3535
public void setOntology(OWLOntology o) {
36-
this.graph = ((OntologyModel) o).asGraphModel().getGraph(); // UnionGraph with all hierarchy
36+
this.graph = ((Ontology) o).asGraphModel().getGraph(); // UnionGraph with all hierarchy
3737
fireHierarchyChanged();
3838
}
3939

0 commit comments

Comments
 (0)