Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of SWRL rules?

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?

like image 362
anasanjaria Avatar asked Mar 26 '11 08:03

anasanjaria


People also ask

What are SWRL rules used for?

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).

What is the Semantic Rule of language?

• 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.


1 Answers

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

Edit:

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.

like image 70
harschware Avatar answered Jan 03 '23 00:01

harschware