SWRL rule question

Hi all,

I have a question about SWRL. I want to use the rule in Stardog.

Let consider individual A having a hasObservation object property pointing to two individuals B and C. The rule should add a property to A in case the hasValue property of B AND C meets some criteria.

Any hints?


Kind regards,

Why not starting with writing the rule in abstract syntax down?

hasObservation(?x, ?y), hasObservation(?x, ?z), notEquals(?y, ?z) , $THE_OTHER_CONDITIONS_HERE -> $PROPERTY_TO_ADD(?x, $VALUE_TO_ADD)

Afterwarss, you can convert into the desired rule language.

Thanks for the hint. It’s working, both in Protege as well as via the SparQL interface of Stardog.

Kind regards,

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.