Linked Rules Principles for Rule Reuse on the Web Ankesh Khandelwal - - PowerPoint PPT Presentation

linked rules principles for rule reuse on the web
SMART_READER_LITE
LIVE PREVIEW

Linked Rules Principles for Rule Reuse on the Web Ankesh Khandelwal - - PowerPoint PPT Presentation

Linked Rules Ways of rule reuse Conclusion Linked Rules Principles for Rule Reuse on the Web Ankesh Khandelwal 1 , Ian Jacobi 2 , Lalana Kagal 2 1 Tetherless World Constellation Rensselaer Polytechnic Institute Decentralized Information


slide-1
SLIDE 1

Linked Rules Ways of rule reuse Conclusion

Linked Rules Principles for Rule Reuse on the Web

Ankesh Khandelwal1, Ian Jacobi2, Lalana Kagal2

1

Tetherless World Constellation Rensselaer Polytechnic Institute

2

Decentralized Information Group Massachussets Institute of Technology

08/29/2011

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 1 / 18

slide-2
SLIDE 2

Linked Rules Ways of rule reuse Conclusion

Rule reuse

Many sharable intelligent reasoning tasks

policies, regulations, business rules, work-flow plans,

  • ntology mapping, email manipulation, foaf + rules ...

Motivations for reuse

Reduce duplication of effort Share common (semantics of) intelligent reasoning tasks Reduce maintenance costs by minimizing the number of new rules defined for a particular reasoning task

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 2 / 18

slide-3
SLIDE 3

Linked Rules Ways of rule reuse Conclusion

Rule reuse is more accessible now

1

Ontology-based data modeling on the web

Ontology is shared conceptualization of domain providing shared vocabulary Community development- leading to greater acceptance

2

Established methods for interoperability across rule systems

REWERSE Rule Markup Language (R2ML), RuleML, Rule Interchange Format (RIF) Alleviate syntactic differences Manifest common expressivities and features

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 3 / 18

slide-4
SLIDE 4

Linked Rules Ways of rule reuse Conclusion

Rule reuse is more accessible now

1

Ontology-based data modeling on the web

Ontology is shared conceptualization of domain providing shared vocabulary Community development- leading to greater acceptance

2

Established methods for interoperability across rule systems

REWERSE Rule Markup Language (R2ML), RuleML, Rule Interchange Format (RIF) Alleviate syntactic differences Manifest common expressivities and features

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 3 / 18

slide-5
SLIDE 5

Linked Rules Ways of rule reuse Conclusion

Linked Data

The principles of Linked Data stated by Tim Berners-Lee :

1

Use URIs as names for things

2

Use HTTP URIs so that people can look up those names

3

When someone looks up a URI, provide useful information, using the standards (RDF , SPARQL)

4

Include links to other URIs, so that they can discover more things

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 4 / 18

slide-6
SLIDE 6

Linked Rules Ways of rule reuse Conclusion

Outline

1

Linked Rules

2

Ways of rule reuse

3

Conclusion

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 5 / 18

slide-7
SLIDE 7

Linked Rules Ways of rule reuse Conclusion

Linked Rules

Principles for sharing rules on the Web such that they can be reused, combined, and extended on the Web in a manner similar to data (and ontologies) published in conformance with the Linked Data principles.

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 6 / 18

slide-8
SLIDE 8

Linked Rules Ways of rule reuse Conclusion

Linked Rules

Principles for sharing rules on the Web such that they can be reused, combined, and extended on the Web in a manner similar to data (and ontologies) published in conformance with the Linked Data principles.

1

Use HTTP URIs as names for rules

2

Standard Format for (Sharing) Rules: RIF

3

Standard Data Format: RDF

4

Link Rules

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 6 / 18

slide-9
SLIDE 9

Linked Rules Ways of rule reuse Conclusion

  • 1. Name rules with HTTP URIs

Use HTTP URIs as names for rules, including individual rules, groups and rule-bases Refer to rule-bases for

use by reasoner extension associating metadata

Refer to rules for

use in proof/justification specialized reuse (constrained reuse) priority specification

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 7 / 18

slide-10
SLIDE 10

Linked Rules Ways of rule reuse Conclusion

  • 2. Standard format for (sharing) rules: RIF

When someone looks up (i.e. dereferences) rule definition, provide description in a standard format (RIF) RIF a W3C standard and completely webized language RIF specifies mechanism for compatibility with RDF RIF provides an infrastructure of datatypes and built-in functions RIF documents in RDF- rules as data

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 8 / 18

slide-11
SLIDE 11

Linked Rules Ways of rule reuse Conclusion

  • 3. Standard data format: RDF

Define linked rules over data in standard data format (RDF)1 Syntax and data format choices- position, named argument and frame terms- discourage re-usability Ontologies increasingly defined in RDF-based languages RDF → frame terms in RIF (blank-nodes ∼ local symbols); RDF → position terms in OWL 2 RL Some concerns such as representations of general n-ary relations and sequences, but next RDF is in pipeline

standardization of Turtle syntax, skolemization of blank nodes and graph identification

1Linked rules- rules published in conformance with Linked Rules principles RR 2011 Linked Rules: Principles for Rule Reuse on the Web 9 / 18

slide-12
SLIDE 12

Linked Rules Ways of rule reuse Conclusion

  • 3. Standard data format: RDF

Define linked rules over data in standard data format (RDF)1 Syntax and data format choices- position, named argument and frame terms- discourage re-usability Ontologies increasingly defined in RDF-based languages RDF → frame terms in RIF (blank-nodes ∼ local symbols); RDF → position terms in OWL 2 RL Some concerns such as representations of general n-ary relations and sequences, but next RDF is in pipeline

standardization of Turtle syntax, skolemization of blank nodes and graph identification

1Linked rules- rules published in conformance with Linked Rules principles RR 2011 Linked Rules: Principles for Rule Reuse on the Web 9 / 18

slide-13
SLIDE 13

Linked Rules Ways of rule reuse Conclusion

  • 3. Standard data format: RDF

Define linked rules over data in standard data format (RDF)1 Syntax and data format choices- position, named argument and frame terms- discourage re-usability Ontologies increasingly defined in RDF-based languages RDF → frame terms in RIF (blank-nodes ∼ local symbols); RDF → position terms in OWL 2 RL Some concerns such as representations of general n-ary relations and sequences, but next RDF is in pipeline

standardization of Turtle syntax, skolemization of blank nodes and graph identification

What about guarded rules? r(x, y), r(y, z), s(x, y, z) → t(x, u), t(u, z)

1Linked rules- rules published in conformance with Linked Rules principles RR 2011 Linked Rules: Principles for Rule Reuse on the Web 9 / 18

slide-14
SLIDE 14

Linked Rules Ways of rule reuse Conclusion

  • 4. Link rules

Link rules - so that they can be discovered, reused etc. Rules to rules Rules to ontologies Proofs/justifications to rules Rule descriptions (meta-data)

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 10 / 18

slide-15
SLIDE 15

Linked Rules Ways of rule reuse Conclusion

  • 4. Link rules

Link rules - so that they can be discovered, reused etc. Rules to rules Rules to ontologies Proofs/justifications to rules Rule descriptions (meta-data)

Terminologies used by rules Dialect and complexity of language Expressive features used and restrictions obeyed Ontologies for input vs output data Purpose, creator

A VoID-like vocabulary RR 2011 Linked Rules: Principles for Rule Reuse on the Web 10 / 18

slide-16
SLIDE 16

Linked Rules Ways of rule reuse Conclusion

Outline

1

Linked Rules

2

Ways of rule reuse

3

Conclusion

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 11 / 18

slide-17
SLIDE 17

Linked Rules Ways of rule reuse Conclusion

Ways of rule reuse

1

Simple reuse

2

Rule importation

3

Contextualized reuse

Scoped negation Scoped fact matching/checking Remote terms in RIF Generalized (dynamic) contextualized reuse

4

Constrained reuse

Restrict (group of) one or more rules by restricting variables Rules are modified by appending (more) conditions to rules E.g. restrict ?x rdf:type :Student by adding ?x rdf:type :GraduateStudent

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 12 / 18

slide-18
SLIDE 18

Linked Rules Ways of rule reuse Conclusion

Ways of rule reuse

1

Simple reuse

2

Rule importation

3

Contextualized reuse

Scoped negation Scoped fact matching/checking Remote terms in RIF Generalized (dynamic) contextualized reuse

4

Constrained reuse

Restrict (group of) one or more rules by restricting variables Rules are modified by appending (more) conditions to rules E.g. restrict ?x rdf:type :Student by adding ?x rdf:type :GraduateStudent

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 12 / 18

slide-19
SLIDE 19

Linked Rules Ways of rule reuse Conclusion

Ways of rule reuse

1

Simple reuse

2

Rule importation

3

Contextualized reuse

Scoped negation Scoped fact matching/checking Remote terms in RIF Generalized (dynamic) contextualized reuse

4

Constrained reuse

Restrict (group of) one or more rules by restricting variables Rules are modified by appending (more) conditions to rules E.g. restrict ?x rdf:type :Student by adding ?x rdf:type :GraduateStudent

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 12 / 18

slide-20
SLIDE 20

Linked Rules Ways of rule reuse Conclusion

Support for rule reuse in RIF

Remote term is not general enough (for contextualized reuse)

Restricted to single remote module Modules must be known before-hand

Lack of support for constrained reuse

Lack of support for distributed (individual) rule descriptions

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 13 / 18

slide-21
SLIDE 21

Linked Rules Ways of rule reuse Conclusion

Outline

1

Linked Rules

2

Ways of rule reuse

3

Conclusion

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 14 / 18

slide-22
SLIDE 22

Linked Rules Ways of rule reuse Conclusion

Further work

Mechanisms for establishing trust on rules Negotiating differences between diverse rule systems Vocabulary for rule descriptions (rule meta-data) Automated annotations of rule-bases, e.g., analyzing features used and not used in the rule-base Extensions to RIF for supporting features such as contextualized and constrained reuse of rules

Implement AIR to RIF translation and other extensions, for

Linked Rules-compliant publishing of rules using AIR

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 15 / 18

slide-23
SLIDE 23

Linked Rules Ways of rule reuse Conclusion

Being compliant with Linked Rules

How rule languages/systems (RLS) and authors can be compliant with Linked Rules

1

RLS support URI (or bnode) naming for every rule-base & rule

2

RLS have a corresponding RIF format, and support content- negotiation for retrieving descriptions in RIF and native language

3

RLS support RDF data format (directly or frame constructs etc.); Authors define rules over RDF data with an ontology model

4

RLS support links between rules. Rules described suitably for discovery and reuse RLS support distributed rule-base (and rule) definitions Rule(-base)s must be annotated with dialect and ontologies for target data of rules, by Authors or others. They may be annotated with other information such as purpose, author, features used or not used etc.

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 16 / 18

slide-24
SLIDE 24

Linked Rules Ways of rule reuse Conclusion

Acknowledgements

We thank Jim Hendler, Gregory Williams and Jiao Tao for their feedback on this presentation We also thank Harold Boley for insightful comments

  • n the paper

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 17 / 18

slide-25
SLIDE 25

Linked Data and Linked Rules side-by-side

Linked Data Linked Rules Use URIs as names for things Use HTTP URIs as names for rules- individual rules, groups and rule-bases Use HTTP URIs so that people can look up those names When someone looks up rule definition, provide description in a standard format (RIF) When someone looks up a URI, provide useful information, using the standards (RDF, SPARQL) Define linked rules over data in standard data format (RDF) Include links to other URIs, so that they can discover more things Link rules - so that they can be discovered, reused etc.

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 18 / 18

slide-26
SLIDE 26

Ontologies in rules

Hybrid approach: ontology terms used as constraints and checked against separate ontology language reasoner Homogeneous approach: unified language for ontology and rules. E.g. SWRL and ELP

For relatively less expressive ontology languages, like RDFS or OWL 2 RL, many rule systems can reason simultaneously with ontologies and rules

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 19 / 18

slide-27
SLIDE 27

Interoperability via RuleML or RIF

Rules are marked up in XML using schemas given by the interchange languages Rule systems define translations, often in XSLT, for translating rule-bases from and to the native representations of other rule systems

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 20 / 18

slide-28
SLIDE 28

Basic constructs for data representation in RIF

family(?father, ?mother, ?child) (position term) family(:father→?father, :mother→?mother, :child→?child) (named argument term) ?family#:Family[:father→?father, :mother→?mother, :child→?child] (frame term) ?family rdf:type :Family; :father ?father; :mother ?mother; :child ?child . (RDF in N3 syntax)

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 21 / 18

slide-29
SLIDE 29

SPARQL-based condition matching

Lot of information is available as Linked Data, e.g. hierarchical geographical relationships in Geonames dataset It is costly for in-memory reasoners to add millions of such RDF triples to local knowledge-base Alternatively, conditions may be checked online against SPARQL end-points (or local RDF stores) Note: This is not same as using SPARQL construct queries for rule descriptions

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 22 / 18

slide-30
SLIDE 30

Reuse-able intelligent reasoning tasks

Access control, accountability and data-usage policies Inter-organizational business rules, practices & regulations Medical decision support Work-flow plans Product compatibility Email manipulation, FOAF with person-centric rules, Reactive organizer Ontology mapping

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 23 / 18

slide-31
SLIDE 31

Contextualized reuse

Scoped negation dataset not-contains fact? Scoped fact matching/checking dataset contains fact? Remote terms in RIF module entails fact? Generalized (dynamic) contextualized reuse (modules datasets) entail fact?

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 24 / 18

slide-32
SLIDE 32

Constrained reuse

Restricting the scope of rule, by, e.g., adding explicit assumptions E.g. PRD-rule with variable declaration Forall ?v1 . . .?vn such that (p1 . . . pm) (rule)

p1 . . . pm can restrict scope for a predefined rule E.g. Forall ?customer such that (?customer # :ValuedCustomer) (:All-customers-rule)

RR 2011 Linked Rules: Principles for Rule Reuse on the Web 25 / 18