Professional Documents
Culture Documents
Head Body
(Consequent) (Antecedant)
Person(?p) ^ hasAge(?p,?age) ^
swrlb:greaterThan(?age,17)
→ Adult(?p)
A Protégé-OWL development
environment for working with
SWRL rules
Supports editing and execution of
rules
Extension mechanisms to work
with third-party rule engines
Mechanisms for users to define
built-in method libraries
Supports querying of ontologies
FAST – NU, Islamabad, Fall 2008 20
SWRLTab:
http://protege.cim3.net/cgi-
bin/wiki.pl?SWRLTab
CLASSES
APPLICATION
Ontology
SWRL
Knowledge
Base
INSTANCES RULES
RULES
RULE ENGINE
FACTS
New
FACTS
(3)
CLASSES
APPLICATION
RULES
Ontology
(1)
SWRL
RULE
Knowledge (2) ENGINE
FACTS
Base
INSTANCE (4) New
S RULES FACTS
OWL
KB SWRL Rule
Rule Engine
+ Engine Bridge
SWRL
Data
Knowledge
FAST – NU, Islamabad, Fall 2008
SWRL Rule Engine Bridge
import edu.stanford.smi.protegex.owl.swrl.bridge.builtins.*;
import edu.stanford.smi.protegex.owl.swrl.bridge.exceptions.*;
return argument1.equalsIgnoreCase(argument2);
} // stringEqualIgnoreCase
-> NonConformingPatient(?p)
FAST – NU, Islamabad, Fall 2008 55
SWRL and Querying
OWL
Bridge Engine
KB
Mapper
Data
Knowledge
Dynamic Relation-to-OWL
Mapping
Bridge generates optimized
relational queries to retrieve data
Current SPARQL-based systems
D2RQ
D2OMapper
Approach used successfully in
BioSTORM project for surveillance
data
Built-in optimization by
annotating built-in definitions
and exploiting in query engine
Numerical built-in optimizations
Temporal built-in optimizations
In-query optimization to avoid
redundant data requests
Jess with Java Fact Storage Provider
Framework