OWL: How to create a class that consists of a relation between two other classes?

81 Views Asked by At

I would like to create the following scenario in OWL:

  • Lets say there is a game wich is played by pairs of players (just like tennis doubles).
  • I have the class "Player";
  • I have the object property "doublesWith" that has as domain "Player" and range "Player";

Now I want to define a class called something like "Teams" that is a Collection (or something) of "Player --doublesWith--> Player".

How to do that? Is it possible?

Edit: trying to clarify it.

  • I have the class "Player";
  • I have the object property "doublesWith" that has as domain "Player" and range "Player";

I want to create a class that groups not just Players, but the "triple" "Player --doublesWith--> Player".

Let's say there is a class called "Double" that may wrap that triple. Then I want to create a class called "Teams" that is something like

<owl:Class rdf:about = "Teams">
 <owl:withRestrictions rdf:parseType = "Collection">
    <owl:Class rdf:ID="Double"/>
  </owl:withRestrictions>
</owl:Class>

In other words, an instance of "Teams" is a collection of "Double".

Thanks in advance.

Regards.

0

There are 0 best solutions below