owlready2
owlready2 copied to clipboard
Issue with SWRL Rules and Data Property Inference
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:
-
Can the data property within the ontology be inferred without the Pellet reasoner? Currently, the data property is not accessible by owl2ready.
-
Is there a built-in function or way to access SWRL rules in the ontology?
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?
I solved using RDF/XML format. The inference worked. See documentation:
https://owlready2.readthedocs.io/en/v0.42/rule.html
I am using the SWRL rules in RDF/XML format, still no luck
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