swrlapi icon indicating copy to clipboard operation
swrlapi copied to clipboard

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

Open 233yun opened this issue 2 years ago • 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

233yun avatar May 20 '22 08:05 233yun

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

martinjoconnor avatar May 20 '22 15:05 martinjoconnor

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!

233yun avatar May 21 '22 02:05 233yun