SimoneS93
SimoneS93

Reputation: 115

Adding qualifier to objectProperty in OWL

I want to express the following in an OWL ontology in Protege: IndividualA is composed of IndividualB1 at X %, IndividualB2 at Y % and so on, up until 100%.

Does a pattern exists to model this?

Upvotes: 2

Views: 64

Answers (1)

Joshua Taylor
Joshua Taylor

Reputation: 85873

I want to express the following in an OWL ontology in Protege: IndividualA is composed of IndividualB1 at X %, IndividualB2 at Y % and so on, up until 100%.

Does a pattern exists to model this?

I don't think you'll be able to get the guarantee/restriction on sums that you're looking for in OWL. But part of the structure that you're talking about is just an n-ary relationship. Instead of a two place relationship

        isComposedOf(IndividualA, IndividualB1)

you have a three place relationship:

        isComposedOfByPercent(IndividualA, IndividualB1, 0.34)

There are lots of ways to represent n-ary relationships using semantic technologies, so many so that the W3C published a working note, Defining N-ary Relations on the Semantic Web. In OWL, one of the most common approaches might be:

x a Composition ;
  hasComposite IndividualA ;
  hasComponent IndividualB1 ;
  hasPercentage 0.34 .

Another might be:

IndividualA hasCompositePart y .
y a CompositePart ;
  hasComponent IndividualB1 ;
  hasPercentage 0.34 .

Upvotes: 2

Related Questions