Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ontology: OWL - Creating connections between classes

I ve got an Ontology written in OWL with Protege. But I don't find a solution for creating relations between Classes. Of course, there is a "subclass" relation, but I want to define my own relations. So I have a class hierarchy (which consists out of "subclass"-relations) but I want to create a relation, i.e. "has_Relation", to connect two classes.

My aim is to write a java programm in which I can get the information "which class is parentclass of a class?" and "to which class is a has_Relation connection?"

(I am not talking about individuals - I'm just talking about classes)

Thank you very much for your help in advance!

Best Regards Natan

like image 513
Natan Avatar asked Jun 27 '12 13:06

Natan


People also ask

What is class equivalence in OWL?

owl:equivalentClass is a built-in property that links a class description to another class description. The meaning of such a class axiom is that the two class descriptions involved have the same class extension (i.e., both class extensions contain exactly the same set of individuals).

What 3 kinds of things entities are Modelled in OWL?

Entities, such as classes, properties, and individuals, are identified by IRIs.

What are the components within an OWL ontology?

An OWL ontology consists of Individuals, Properties, and Classes, which roughly correspond to Protégé Instances, Slots and Classes.

What is a class ontology?

For the purposes of this guide an ontology is a formal explicit description of concepts in a domain of discourse (classes (sometimes called concepts)), properties of each concept describing various features and attributes of the concept (slots (sometimes called roles or properties)), and restrictions on slots (facets ( ...


1 Answers

The simplest way to do this is to use an annotation property. In Protégé, select the class you want to relate to another class, then click the + beside "Annotations" in the Annotations tab. Then add the has_Relation property with the second button on the top left of the window. Then select the Entity IRI tab and the Classes subtab, select the other class you want to relate to and you're done.

However, you should rather not do this if has_Relation is an object property or a datatype property. If such is the case, you can use "punning", that is, you can make new individuals in the Individuals tab with the same names as the classes you want to relate. Then you relate them as if they were normal individuals. Note that this is allowed and valid in OWL 2 DL.

like image 53
Antoine Zimmermann Avatar answered Nov 03 '22 10:11

Antoine Zimmermann