COROR: A COmposable Rule-entailment Owl Reasoner for Resource-Constrained Devices Wei Tai, John Keeney, Declan O’Sullivan Knowledge and Data Engineering Group, School of Computer Science and Statistics, Trinity College Dublin

24/07/2011

Background and motivation •

The Semantic Sensor Network (SSN) is a recently emerged research strand using Semantic Web technologies, in particular OWL and its reasoning technologies, to solve problems encountered in traditional sensor network systems, e.g. • • •



improving interoperability in heterogeneous environment, enabling intelligent data processing, enabling intelligent management.

A important research facets within SSN is the demand for “on-device” semantic reasoning, e.g. • • •

Information filtering in context-aware mobile personal information system, localized fault diagnosis in wireless sensor network, context-addressable messaging services in mobile ad-hoc networks.

2

Example •

Context addressable messaging architecture •





An OWL reasoner is used to perform address resolving. Terminological data are stored in LOnt, and context data are stored in database. Implemented on Nokia N800.

Further reading M. Koziuk, J. Domaszewicz, R. Schoeneich, M. Jablonowski, and P. Boetzel, "Mobile Context-Addressable Messaging with DL-Lite Domain Model," in Proc. European Conf. on Smart Sensing and Context (EuroSSC’08), 2008.

3

Existing resource-constrained OWL reasoners •

MiRE4OWL • • •



μOR • • • •



Forward-chaining RETE-based OWL reasoner, Concentrated on web-friendly and distributed reasoning, CDC compatible.

Others •



Backward-chaining resolution-based OWL reasoner, Scales well for large amount of instance data, Suitable for small terminological box, CDC compatible.

Bossam • • •



Forward-chaining RETE-based OWL reasoner, Unoptimized internal reasoning algorithm, C++ for PPC.

E.g. the one in MCA (J2ME but no further information on the platform), KRHyper and so on.

They are designed for relatively “more powerful” mobile devices, e.g. mobile phone or PDA, rather than highly constrained mobile devices, e.g. sensors. 4

COROR: an overview •

COROR is a COmposable Rule-entailment Owl Reasoner for resourceconstrained devices. • •



Forward-chaining RETE-based OWL reasoner. Incorporates two novel reasoner composition algorithms to reduce the memory footprint, i.e. • selective rule loading algorithm, and • two phase RETE algorithm.

COROR is referred to as composable as it dimensions reasoning algorithm on-the-fly according to the semantic features of the ontology to be reasoned, especially the OWL constructs.

5

Selective rule loading algorithm •

The selective rule loading algorithm selectively load rules into a reasoner depending on the reasoning capabilities required. • •

According to the rule-construct dependency relationship. Loads only OWL inference rules required to reason the particular ontology.

connectWith type SymmetricProperty node1 type MotionSensor node0 type MotionSensor MotionSensor subClassOf Sensor node1 connectTo node0

Analyse for constructs

type SymmetricProperty subClassOf

Selectively loading rules

rdfs9: (v subClassOf w), (u type v)  (u type w) rdfp3: (p type SymmetricProperty), (v p w)  (w p v) rdfp4: (p type TransitiveProperty), (u p v), (v p w)  (u p w) ……

rdfs9 rdfs3

RETE Engine

Results

6

A short introduction to RETE •

RETE is a fast pattern matching algorithm for forward-chaining production systems. It performs pattern matching using a network structure termed as RETE network. (?v owl:someValuesFrom ?w), (?v owl:onProperty ?p), (?u ?p ?x), (?x rdf:type ?w)  (?u rdf:type ?v) Fact base

Facts Alpha network

v someValuesFrom w

upx

v onProperty p

v=v

Beta network

p=p x=x w=w

Fire

x type w

Inferred Facts

Two-phase RETE algorithm •

The two-phase RETE algorithm uses an interrupted RETE construction mechanism to build a customized RETE network. • •



The alpha network is constructed • Common condition node sharing RETE construction is interrupted by an initial fact matching after the construction of the alpha network to collect some information about the ontology, e.g. • Number of partially matched facts for each condition node (in use), • Selectivity between two joining alpha nodes (potential), • and etc. Rather than applied beta network optimization heuristics directly, they are applied using the collected information to construct a customized beta network, i.e. • Most specific condition first • The number of partially matched facts for each condition node is used as its specificity. • Connectivity 8

An example

(?v owl:someValuesFrom ?w), (?v owl:onProperty ?p), (?u ?p ?x), (?x rdf:type ?w)  (?u rdf:type ?v)

Fact base

Facts Alpha network

v someValuesFrom w

v onProperty p

upx

x type w

An example

(?v owl:someValuesFrom ?w), (?v owl:onProperty ?p), (?u ?p ?x), (?x rdf:type ?w)  (?u rdf:type ?v)

Fact base

Facts Alpha network

v someValuesFrom w

v onProperty p

upx

x type w

An example

(?v owl:someValuesFrom ?w), (?v owl:onProperty ?p), (?u ?p ?x), (?x rdf:type ?w)  (?u rdf:type ?v)

Fact base

Facts Alpha network

v someValuesFrom w

x type w

v onProperty p

v=v

Beta network

w=w x=x p=p

Fire

upx

An example

(?v owl:someValuesFrom ?w), (?v owl:onProperty ?p), (?u ?p ?x), (?x rdf:type ?w)  (?u rdf:type ?v)

Fact base

Facts Alpha network

v someValuesFrom w

x type w

v onProperty p

v=v

Beta network

w=w x=x p=p

Fire

upx

Inferred Facts

Implementation •

COROR is implemented • •

• •



In J2ME • CLDC 1.1 conformant. Based on μJena, • Enabling owl ontology reading, parsing and manipulation, • Requiring a volume of code refactoring as μJena does not originally support for owl reasoning. On Sun SPOT emulator. Using entailments and atomic query as key reasoning tasks, combining which are enough to simulate common reasoning tasks.

Four composition modes • • • •

Non-composable mode (Original RETE) Selective rule loading mode Two-phase RETE mode Hybrid mode 13

Experiment design •

Metrics • •



Experiments include • •



Memory Reasoning time

Evaluation and comparison between different composition modes of COROR. • Performed on Sun SPOT emulator. Evaluation and comparison between COROR and other reasoners, i.e. • Jena, Bossam (a mobile reasoner, CDC only), BaseVISor (time only), OWLIM, and Pellet. • MiRE4OWL and μOR are not accessible. • Performed on desktop due to the other reasoners cannot run on Sun SPOT.

Selected ontology include 17 well-known ontologies from different domains • • •

Relatively free of error Small to medium sized Avoid over-/under- use of some owl constructs

14

Experiment results (memory-1) 2,500

Noncomposable Selective Rule Loading Two-Phase RETE Hybrid

Memory(KB)

2,000 1,500 1,000 500 0

miniTambis

food

Biopax

mad_cows

FOAF

Mindswapper

Beer

University

Koala

OWLSprofile

Teams

15

Experiment results (time-1) 517s

350 300

609s

416s

760s

836s

Noncomposable Selective Rule Loading Two-Phase RETE Hybrid

Time(sec)

250 200 150 100 50 0

miniTambis

food

Biopax

foaf

mad_cows

Mindswapper

Beer

University

Koala

OWLSprofile

Teams

16

Experiment results (memory-2, Coror-hybrid) 35

20

15

10

5

Memory Usage (MB)

OWLIM

Pellet

NATO tambis-full pizza amino-acid wine ATK-Portal miniTambis food Biopax mad_cows FOAF Mindswapper Beer University Koala OWLS-profile Teams 0

Jena

Bossam Coror 30

25

17

Experiment results (time-2, Coror-hybrid) 10

Coror

Jena 8

Bossam

BaseVISor 7

OWLIM

Pellet 6

5

4

3

2

Reasoning Time (sec)

9

1

0

NATO tambis-full pizza amino-acid wine ATK-Portal miniTambis food Biopax mad_cows FOAF Mindswapper Beer University Koala OWLS-profile Teams

18

Discussion based on the empirical results •

All composable modes require less memory and reasoning time than the noncomposable mode •



The two-phase RETE and Hybrid uses a lot less memory than the other modes as for this rule set the two-phase RETE algorithm can optimize the RETE structure as if unused rules are “removed” so the hybrid mode (combining the two-phase RETE algorithm and the selective rule loading algorithm) does not gain much more memory/time reduction comparing to the two-phase RETE algorithm.

Use the least memory among all evaluated reasoners while have reasoning time comparable to Jena forward chaining reasoner. •

For small ontology (which are expected to be applied on sensors) COROR uses much less memory than the others.

19

Conclusion and future work •

Conclusion • • •





Motivation • To enable intelligence on the edge of sensor network. State of the art mobile OWL reasoners COROR the composable reaoner • Two composition algorithms: the selective rule loading algorithm and the two-phase RETE algorithm. Experiments design and results • Two experiments • Results • COROR uses much less memory without sacrificing time performance.

Future work includes • • •

More heuristics can be applied during the RETE network construction phase, and more information can be collected. Support conjunctive query languages e.g. SPARQL. OWL 2 support.

20

Thank you Questions?

21

Two-phase RETE algorithm (cont’d) Rule set

RETE Engine Construct α-network

v subClassOf w

u type v

p type SymmetricProperty

vpw

p type SymmetricProperty

vpw

Initial matching

v subClassOf w

Ontology

u type v

Collects information and βnetwork construction resumes

Reasoned Ontology

Outputs reasoned ontology

v subClassOf w

u type v

p type SymmetricProperty

vpw

22

An analytical comparison between composition algorithms •

Reasoning algorithm independence: • •



Semantic independence: •



Selective rule loading algorithm: applicable on all rule-based reasoning algorithm, does not require changes in the reasoning algorithm itself, and relatively easy to implement. Two-phase rete algorithm: applicable only on RETE algorithm, require change in RETE, and relatively hard to implement.

They both are semantic independent.

Flexibility in handling changes: •



Addition can be handled incrementally by the two-phase RETE algorithm however may introduce unseen owl constructs requiring the re-execution of the selective rule loading algorithm. Simple deletion may cause logical inconsistency so re-execution is required for both algorithms. 23

COROR: A COmposable Rule-entailment Owl ...

Jul 24, 2011 - The Semantic Sensor Network (SSN) is a recently emerged research strand using Semantic Web technologies, in particular OWL and its.

546KB Sizes 3 Downloads 140 Views

Recommend Documents

An Automatically Composable OWL Reasoner for ...
matching OWL entailment rules in a rule engine ... search space and improves the reasoning efficiency. ..... without dedicated optimization for OWL reasoning.

An Automatically Composable OWL Reasoner for ...
order logic theorem prover (or engines of its subset). F-logic-based reasoners (e.g. FOWL [7]) map OWL ontology to f-logic and perform OWL reasoning using.

composable event sourcing with monads - GitHub
def create(id: String, pos: Position, dir: Direction): Either[String, Turtle] = if (tooFarAwayFromOrigin(pos)) Either.left("Too far away") else Either.right(Turtle(id, pos, dir)). // curried command are like already-configured command def turn(rot: R

A Snapshot of the OWL Web - GitHub
OWL ontologies are used across a wide spectrum of domains, ranging from chemistry to bio-health ..... File name and file size patterns First, a random sample of 100 ontologies was repeatedly drawn from ... to be largely cluster-free. In order to ...

Composable, Parameterizable Templates for High ...
Abstract—High-level synthesis tools aim to make FPGA programming easier by raising the ... Our results demonstrate that a small number of optimized templates.

owl doorstop.pdf
Page 1 of 3. Belly. Cut 1. Side. Cut 2. Free Owl Door Stop Pattern. You will need: PDF pattern here. 2x Buttons. 1x Zip. 10x5cm white felt. 8x4cm yellow/orange felt. 12x13cm fabric for belly. 17x8cm felt/fleece for eye 'mask'. 33x25cm fabric for bott

Owl coin purse.pdf
Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps.

OWL Sentence Variety.pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. OWL Sentence Variety.pdf. OWL Sentence Variety.pdf. Open.

scarecrow-owl poem.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. scarecrow-owl ...

scarecrow-owl poem.pdf
said the turtle. “Go to sleep!” said the bird. Then up came the sun... “ZZZZZZZZ!” Page 1 of 1. scarecrow-owl poem.pdf. scarecrow-owl poem.pdf. Open. Extract.

OWL Integrating Quotations.pdf
A closer look at the three methods. 1. Introduce the quotation with a complete sentence and a colon: According to Nussbaum, fiction provides an opportunity for ...

OWL Newsletter Template.pdf
Download. Connect more apps... Try one of the apps below to open or edit this item. OWL Newsletter Template.pdf. OWL Newsletter Template.pdf. Open. Extract.

owl folder cover.pdf
Page 1 of 1. O.W.L.. (Organized While Learning). Folder. Name: Please check the contents of this. folder daily and return! Kindergarten – Miss Schaufele.

Owl Pellets Investigation.pdf
Dissecting Needle/toothpicks & tweezers. Construction Paper, file folders or other paper for mounting bones. Bone Chart (Owl_Pellet_Bone_Chart_grid.pdf).

pdf-1484\owl-and-the-city-of-angels-the-owl-series ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item.

Ontology-based Semantics for Composable Autonomic ...
Ontology-based Semantics for Composable Autonomic Elements. John Keeney, Kevin Carey, David Lewis, Declan O'Sullivan, Vincent Wade. Trinity College Dublin. Knowledge and Data Engineering Group. Computer Science Department, College Green, Dublin 2, Ir

THE PARABLE OF THE OWL EXPRESS
of a class of students appointed to fieldwork as a part of our prescribed courses in geology. . . . A certain assignment had kept us in the field many days.

Owl Amigurumi by MaryJ Handmade.pdf
Round 1: 6 sc in a magic circle (6). Round 2: 2 sc in each stich (12). Round 3: 1 sc, 2 sc in the next stich. *Repeat until the end of the round (18). Round 4: 2 sc, ...

2017 Owl Creek PI Plan.pdf
Stephanie Davis, Brandon Craft, Chris Sputo. Page 2 of 4. Whoops! There was a problem loading this page. Retrying... Whoops! There was a problem loading ...

Written Pattern for Owl C2C.pdf
space, Chain 3 + 3 DC in next 3, change to aqua blue yarn, sl st to join to next chain 3. space with new color, Chain 3 + 3 DC in next 5, change to sapphire, sl st ...

Occurrence at Owl Creek Bridge.pdf
Occurrence at Owl Creek Bridge.pdf. Occurrence at Owl Creek Bridge.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Occurrence at Owl Creek ...

little owl free pattern.pdf
Tekken 6 на. Page 3 of 3. little owl free pattern.pdf. little owl free pattern.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying little owl free pattern.pdf.