Can anybody explain the purpose of SWRL rules. As far as I have understood, SWRL rules are same as stored procedures in SQL. I have made a few rules, but don't know how to utilize them in my application through query. I don't know whether I am thinking in the right way the SWRL rules are meant for, or not. Please show me the correct way of using them.
Look at this rule:
Patient(?x) ^ hasValue_heartrate(?x, >160) -> Sick(?x)
In my ontology I have Patient class, but no Sick class & not even hasValue_heartrate property. So should I have to create these? Or how can I use above rule in my ontology?
The Semantic Web Rule Language (SWRL) is a proposed language for the Semantic Web that can be used to express rules as well as logic, combining OWL DL or OWL Lite with a subset of the Rule Markup Language (itself a subset of Datalog).
• Semantic Rule I: if the. meaning of NP (an individual) is. a member of the meaning of the. VP (a set of individuals), then. S is TRUE, otherwise, it is FALSE.
Rules are a way of expressing additional things that can be inferred from your dataset. Some inferences can be gleaned from the ontology model itself, but others may not be expressible in the ontology language (usually OWL) and require a more functional representation. You should note that SWRL never quite became a standard and its usage is beginning to be discouraged. See the question latest best support for SWRL at answers.semanticweb.com
You should consider instead using SPIN. To quote this thread:
now that SPIN is a W3C submission, it has reached the same standard status as SWRL. Furthermore, SPIN has key advantages to SWRL:
- It uses SPARQL - a standard supported by every RDF store
- Unlike SWRL, SPIN is an active effort. SWRL has been made obsolete by RIF while SPIN is complementary to RIF
RIF is an in-progress W3C effort, which once standardized would deprecate SWRL. SPIN is a W3C Team Submission, an inference engine called TopSpin exists within Top Braid Composer.
The answers.semanticweb.com community may be of more help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With