|
Hi, Here is my question.
There are two class, Activity and Situation. Activity has instance activity1. Situation has instance situation ValueNotAssigned. Activity has two properties, hasValue and hasSituation. The range of the two properties are int and Situation. |
|
I don't know about SWRL, but you can do this using a simple SPARQL INSERT operation:
|


In order to check whether an activity has a property or not, we need a negation in the language. If SWRL can express negations, then your problem is solved. I don't know SWRL though..
'...or it has a hasValue property but there's no value specified for the property...', what do you mean by this. The range is a literal and an integer so do you mean 0?
for example, there exists hasValue property for acitivity1. but the value of this property is not specified and is empty. I think this situation is possible. If the value is empty, the activity1 still hasSituation ValueNotAssigned. I hope I have clarity it.