Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
233yun opened this issue May 20, 2022 · 2 comments
Open

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

233yun opened this issue May 20, 2022 · 2 comments

Comments

@233yun
Copy link

233yun commented May 20, 2022

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
Copy link
Member

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

@233yun
Copy link
Author

233yun commented May 21, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants