Anil Dadhwal
Anil Dadhwal

Reputation: 1

Problem in Infer Data Property in Protege

I have a two disjoint ontology classes Book and Learner.

How to infer withRatingValue of Book by the Learner?

I want to infer:

Learner (Class) hasRated (Object Property) Book (Class) withRatingValue (DataProperty) 5 (Value)

Upvotes: 0

Views: 172

Answers (1)

Ignazio
Ignazio

Reputation: 10684

This situation matches a general pattern, i.e., how to define an n-ary relationship, where you have two individuals and want to describe a relation between the two that has extra attributes. The common solution to this is to introduce an anonymous individual representing the relation, with object and data property departing from the anonymous individual.

See https://www.w3.org/TR/swbp-n-aryRelations/#useCase1 for examples.

Upvotes: 0

Related Questions