Reputation: 183
I am using Protege 5 and I am trying to create a SWRL rule that results in creating a object property connection between a variable instance and a specific Individual. This is the way i write it:
sosa:HumidityObservation( ?observation) ^
sosa:hasSimpleResult(?observation, ?result) ^
swrlb:greaterThan(?result, 80) ^
sosa:Weather(VeryMoistHumidity) ->
sosa:weatherSuggestion(?observation, VeryMoistHumidity)
However I ger this error:
Invalid OWL Individual Name "VeryMoistHumidity"
How am I supposed to add the Individual in the object property atom?
Upvotes: 2
Views: 638
Reputation: 183
In the end I simply defined the prefix I use for Individuals in the ontology and I just used in this way:
sosa:HumidityObservation(?observation) ^
sosa:hasSimpleResult(?observation, ?result) ^
swrlb:greaterThan(?result, 80) ->
sosa:weatherDeduction(?observation, ex:VeryMoistHumidity)
Upvotes: 1