Search Mailing List Archives
[p4-feedback] How to create
tredmond at stanford.edu
Wed Oct 7 11:55:45 PDT 2009
The code you wrote did work as I expected. It only showed the inferred
hierarchy so you have to run a reasoner. To see the asserted hierarchy
you need the following code:
AssertedClassHierarchyProvider2 HP=new AssertedClassHierarchyProvider2(getOWLModelManager().getOWLOntologyManager());
OWLObjectTree<OWLClass> tree = new OWLModelManagerTree<OWLClass>(getOWLEditorKit(), HP);
On Mon, 2009-10-05 at 10:36 -0500, secevalliv at gmail.com wrote:
> Hi all,
> I'm trying to build a tree in order to show all the classes of the
> active ontology. Looking over the documentation I found that can be
> done using the InferredOWLClassHierarchyProvider and an OWLObjectTree.
> So I wrote the following code:
> InferredOWLClassHierarchyProvider HP=new
> OWLObjectTree<OWLClass> tree = new
> OWLModelManagerTree<OWLClass>(getOWLEditorKit(), HP);
> But it didn´t worked as I expected.
> Am I missing something?
> Thanks in advance,
> p4-feedback mailing list
> p4-feedback at lists.stanford.edu
More information about the p4-feedback