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

Issue with SWRL Rules and Data Property Inference #44

Open
PG-9-9 opened this issue Aug 9, 2023 · 4 comments
Open

Issue with SWRL Rules and Data Property Inference #44

PG-9-9 opened this issue Aug 9, 2023 · 4 comments

Comments

@PG-9-9
Copy link

PG-9-9 commented Aug 9, 2023

Context:

I have an ontology (.owl file) to which I added SWRL rules using the SWRL Plugin in the Protege editor. I have two queries:

  1. Can the data property within the ontology be inferred without the Pellet reasoner? Currently, the data property is not accessible by owl2ready.

  2. Is there a built-in function or way to access SWRL rules in the ontology?

@andredemori
Copy link

andredemori commented Aug 16, 2023

I'm facing the same issue. I'm trying to run the Pellet reasoner in OwlReady2 to generate inferences produced by SWRL rules defined in my OWL file with DLSafeRules. However, the inferences are not being generated as they are in Protegé. Is it possible to do this with OwlReady2?

@andredemori
Copy link

andredemori commented Aug 16, 2023

I solved using RDF/XML format. The inference worked. See documentation:

https://owlready2.readthedocs.io/en/v0.42/rule.html

@PG-9-9
Copy link
Author

PG-9-9 commented Aug 17, 2023

I am using the SWRL rules in RDF/XML format, still no luck

@Hannah-Doerpholz
Copy link

As far as I know, datatype properties are not usually inferred like classes or object properties are. The same goes for annotation properties. If the information from datatype properties is crucial for your analysis it might be worth it to model it as classes instead so that the reasoners can work with it easily

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

3 participants