Protege Ontology Help Sub class, Sibling Class
quick question ive got a couple of sibling classes which include sub classes now what i want to do is connect a sub classes to two diffrent sibling classes, is this possible? also i want it to show in the 开发者_如何学运维owlviz.
example
sibling class: rules goals
sub class: collect
so i want sub class collect to feature or be connected in both of the sibling classes. as the software does let me type the same name in each sibling class.
thanks
I don't quite understand the question. You can just assert the fact that collect is a subclass of both rules and goals straight from the Protege User Interface.
- Make sure all of your classes are present in your isA hierarchy
- Select the class collect
- In Protege 4, click on the little "+" icon next to the "Superclasses" section in the Class Description Window
- Assert "rules" as a superclass
- Repeat and assert "goals" as a superclass.
Now "collect is a subclass of both "rules" and "goals".
AS an aside, it is not normally considered good practice to have multiple asserted inheritance in ontologies. For large ontologies, this can become a maintenance nightmare. If all you need is a small practical solution to a problem, then ok.
The visualisation of your ontology can also be done Protege - you need Graphviz installed first and point Protege to the location of the graphviz executable on your system.
Hope this helps!
精彩评论