protegeproject / swrlapi

Java API for working with the SWRL rule and SQWRL query languages
Other
99 stars 40 forks source link

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

Open 233yun opened 2 years ago

233yun commented 2 years ago

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

martinjoconnor commented 2 years ago

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

233yun commented 2 years ago

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!