protegeproject/swrlapi

Why I can't use the boolean in SWRL Tab?

233yun opened this issue · 2 comments

I try to write some Inspection rules with swrl, OwlProjetUnit(?x) ^ owlhascoordsystem(?x, ?y) ^ OwlGeomSpacePositionCoordSystem(?y)->owlrule1(?x,true) , owlrule1 is a Inspection rule of OwlProjetUnit.
in Ontology model,owlrule1 is define as a object property of the OwlProjetUnit class, and its range is boolean.
SWRL Tab shows that true is invalid, I am confused.

微信图片_20220520162550

An OWL object property cannot have a boolean range. Object properties relate two OWL indiviudals.

Thank you very much for your reply! I set owlrule1 as the data property and solved the problem. Thank you very much for your help!