Questions tagged [swrl]

SWRL (Semantic Web Rule Language) is a proposed semantic rule language based on combination of OWL-DL with Rule-ML.

SWRL is the Semantic Web Rule Language, formulated as a combination of OWL and RuleML. SWRL extends the definition of OWL axioms with Horn-like rules, thereby allowing additional inference capabilities, basic mathematical functionality and provide a formal meaning in an ontology. It was submitted to the W3C on 21 May 2004.

Rules take the form of logical implication with a rule antecedent(body) and rule consequent(head), each of which is composed of zero or more "atoms". These rules are read as "If the antecedent holds true then perform the actions in the consequent".

Rules can be expressed in a high level abstract syntax to express the Horn-like rules in OWL-Lite or OWL-DL or in the form of XML based syntax. The XML syntax based on RuleML and the OWL XML Presentation Syntax as well as an RDF concrete syntax based on the OWL RDF/XML exchange syntax.

The Official SWRL reference :
SWRL: A Semantic Web Rule Language Combining OWL and RuleML

Tools to write SWRL rules:
1)
2) Any text editor

Additional References:
1)
2)RuleML

173 questions
16
votes
2 answers

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…
anasanjaria
  • 1,308
  • 1
  • 15
  • 19
11
votes
1 answer

OWL 2 rolification

In description logic, there is a concept called "rolification" (OWL and Rules, Sec 3.2). It converts a concept (class) into a role (property). For example, when we rolify R(x), we get r(x,x). This technique is useful for expressing some rules in…
Yang
  • 7,712
  • 9
  • 48
  • 65
4
votes
0 answers

Usage of rules in SPARQL queries

I would like to use rules in my ontology so that at the moment of the inference I can retrieve some information not explicitly expressed in the triplestore. I created a basic ontology and I want to add this rule: Person(?p) ^ hasSibling(?p, ?s) ^…
Luca
  • 51
  • 4
4
votes
1 answer

SWRL rules in OWL 2

I'm currently discovering all the possibilities of the Owlready library. Right now I'm trying to process some SWRL rules and so far it's been going very good, but I'm stuck at one point. I've defined some rules in my ontology and now I want to see…
mathbbandstuff
  • 215
  • 1
  • 5
4
votes
1 answer

Collaborative ontology construction and Prolog

What technologies would be appropriate for creating a web page which lets users add facts, edit facts and query this information? I have been building a knowledge base and inference rules in Prolog but would like to make the facts section and the…
user3170496
4
votes
1 answer

How to define very simple own rule in fuseki step by step?

I'm asking your help to understand how to create my own property rules in fuseki. I've read the documentation of Jena and Fuseki about reasoners and rules but I don't understand how to create (step by step) simple rules. And the examples that I've…
Cyril
  • 485
  • 4
  • 15
4
votes
2 answers

Using SWRL with Jena and Pellet

I was unable to find some decent simple code examples of using SWRL and Jena with Pellet, or at least using SWRL? I have studied some examples in Pellet documentation, but there is no example about using SWRL. Most examples on the web are…
Ali Ahmad
  • 1,055
  • 5
  • 27
  • 47
3
votes
1 answer

Is it possible to fire Java methods from Jena SWRL Rules

I am working on a Performance analysis on Ontology based Context Management and Process based Context Management. However, in order to create a similar scenario with the PCM case study, I am required to fire Java methods directly from Jena SWRL…
realsaid
  • 51
  • 4
3
votes
2 answers

Pellet doesn't include my SWRL rules

I build an ontology which uses SWRL rules to inference. When I do a SQWRL querying in Protege it works fine. The problem is, when i want to use Pellet with Jena, it seems like Pellet doesn't include the SWRL rules in the querying. I include Pellet…
Viktor
  • 93
  • 6
3
votes
2 answers

Dependency issue creating SWRL Rule with SWRL API using gradle

I am trying to add a SWRL rule to my Ontology using SWRLAPI and OWLAPI. I am trying to use OWLAPI's version which is compatible with SWRLAPI. However, I still get errors when creating a rule. It seems to be a problem with the dependency management.…
Bruno Pessanha
  • 2,874
  • 4
  • 24
  • 35
3
votes
2 answers

Creating New Classes and Individuals with SWRL in Protege

I've been trying to write SWRL rules that automate creation of new entities and their assignment to classes and predicates in a Protege ontology. The code here didn't result in creation of even one individual, neither did the example in the readme…
Wassadamo
  • 1,176
  • 12
  • 32
3
votes
1 answer

How to add SWRL rules to an Ontology using Java or pellet?

Instead of using Protégé to add rules to my ontology, I want to use Java or pellet to add SWRL rule to the ontology. For example, this is the rule that I want to import into my ontology: [Course(?x),teacherOf(?y,?x),worksFor(?y,?z)] => …
Enayat
  • 3,904
  • 1
  • 33
  • 47
3
votes
1 answer

Ontology property definition in Protégé-OWL / SWRL

I need to implement an OWL-ontology in Protégé, which contains a two classes: s1 and s2, both are the instances of System class. These two classes are connected by the connection class s1_s2, which contains property omega. This property has to take…
Mike
  • 14,010
  • 29
  • 101
  • 161
3
votes
1 answer

SWRL rules in protege 3.4.8

I created an ontology that contains the class Blood_Sugar this class contains 4 subclasses: Normal_BS, High_BS, Low_BS and Dangerous_BS. I would like to execute a SWRL rule on Protege 3.4.8 which permit to classify individuals of the supere class…
Anima
  • 75
  • 2
  • 7
3
votes
3 answers

SWRL tab in Protege 4

The protege SWRL tab is not available in Protege 4 versions, I have tried both protege 4.1 and protege 4.2. The axiome plugin mentioned to edit the SWRL rules in protege has been said to work only in protege 3 versions. Can anyone tell me plugins…
karthi
  • 2,762
  • 4
  • 30
  • 28
1
2 3
11 12