Defines the Same ObjectProperty at Different Levels

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Defines the Same ObjectProperty at Different Levels

Avraheem
Hello All,

Do you have any idea how to define such a structure in owlready where the same object property (isPartOf) found at different levels of hierarchy as in the following picture?

Reply | Threaded
Open this post in threaded view
|

Re: Defines the Same ObjectProperty at Different Levels

Jiba
Administrator
Hello,

When you create an object property, it can be used at ANY level of the hierarchy. Then, you may restrict the level (using domain and range). To allow using it at different level, you can either do not define domain and range, or define a domain/range that corresponds to all possibility (e.g. "HEADER or IP-HEADER or TCP-HEADER or...", or simply a class that is a common parent to all of them).

Jiba