Stelios Botonakis
Stelios Botonakis

Reputation: 183

How to add specific Individual to swrl rule using protege editor in protege 5?

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

Answers (1)

Stelios Botonakis
Stelios Botonakis

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

Related Questions