Are Your Rules Online? Four Web Rule Essentials RuleML-2007, 25-26 Oct 2007 Harold Boley National Research Council of Canada University of New Brunswick,

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Introduction to XHTML Programming the World Wide Web Fourth edition.
Advertisements

1 Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms Inference in propositional.
Inference in First-Order Logic
Logical Model and Specification of Usage Control Xinwen Zhang, Jaehong Park Francesco Parisi-Presicce, Ravi Sandhu George Mason University.
Flexible access control policy specification with constraint logic programming Steve Barker, Peter J. Stuckey Presenter: Vijayant Dhankhar.
Chapter 7 System Models.
Copyright © 2003 Pearson Education, Inc. Slide 3-1 Created by Cheryl M. Hughes The Web Wizards Guide to XML by Cheryl M. Hughes.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module D (Office 2007 Version) Decision Analysis.
Dr. Leo Obrst MITRE Information Semantics Information Discovery & Understanding Command & Control Center February 6, 2014February 6, 2014February 6, 2014.
1 Evaluating Reasoning Systems: Ontology Languages Michael Grunginger, U. Toronto Conrad Bock, U.S. NIST February 22 nd, 2007.
UNITED NATIONS Shipment Details Report – January 2006.
Requirements. UC&R: Phase Compliance model –RIF must define a compliance model that will identify required/optional features Default.
A Web Rules WG Charter Focus Strawman Proposal Version 1.1, April 30, 2005 This Version Prepared by: Benjamin Grosof, Harold Boley, Michael Kifer, and.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Prepared by: Workforce Enterprise Services For: The Illinois Department of Commerce and Economic Opportunity Bureau of Workforce Development ENTRY OF EMPLOYER.
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
1 Term 2, 2004, Lecture 3, NormalisationMarian Ursu, Department of Computing, Goldsmiths College Normalisation 5.
Conceptual / semantic modelling
1/ 26 AGROVOC and the OWL Web Ontology Language: the Agriculture Ontology Service - Concept Server OWL model NKOS workshop Alicante,
Programming Language Concepts
Last update: (2) (3) The Dutch airline.
Database Systems: Design, Implementation, and Management
INTERNET PROTOCOLS Class 9 CSCI 6433 David C. Roberts Entire contents copyright 2011, David C. Roberts, all rights reserved.
Solve Multi-step Equations
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Week 2 The Object-Oriented Approach to Requirements
Data Structures Using C++
Database Design Process
1 Lecture 16: Tables and OOP. 2 Tables -- get and put.
R ELATIONAL M ODEL TO SQL Data Model. 22 C ONCEPTUAL D ESIGN : ER TO R ELATIONAL TO SQL How to represent Entity sets, Relationship sets, Attributes, Key.
Chapter Information Systems Database Management.
Vanderbilt Business Objects Users Group 1 Reporting Techniques & Formatting Beginning & Advanced.
Copyright © 2013, 2009, 2005 Pearson Education, Inc.
By Waqas Over the many years the people have studied software-development approaches to figure out which approaches are quickest, cheapest, most.
The World Wide Web. 2 The Web is an infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that.
Traditional IR models Jian-Yun Nie.
© 2012 National Heart Foundation of Australia. Slide 2.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
The RuleML Family of Web Rule Languages PPSWR’06, Budva, Montenegro, 10 June 2006 Revised, RuleML’06, Athens, GA, 11 Nov Shortened, Vienna, SWT Course,
1 An inference engine for the semantic web Naudts Guido Student at the Open University Netherlands.
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Entity-Relationship Model
Chapter 10: The Traditional Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Pointers and Arrays Chapter 12
Intracellular Compartments and Transport
PSSA Preparation.
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
Essential Cell Biology
Steffen Staab 1WeST Web Science & Technologies University of Koblenz ▪ Landau, Germany Structured Data on the Web Introduction to.
Francesca Bugiotti Università Roma Tre 1 17/12/2009.
1 Decidability continued…. 2 Theorem: For a recursively enumerable language it is undecidable to determine whether is finite Proof: We will reduce the.
The Pumping Lemma for CFL’s
Math Review with Matlab:
© Copyright 2011 John Wiley & Sons, Inc.
1 Programming Languages (CS 550) Mini Language Interpreter Jeremy R. Johnson.
CS570 Artificial Intelligence Semantic Web & Ontology 2
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
The Semantic Web Week 12 Term 1 Recap Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module Website:
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
1 Expert Finding for eCollaboration Using FOAF with RuleML Rules MCeTECH May 2006 Jie Li 1,2, Harold Boley 1,2, Virendrakumar C. Bhavsar 1, Jing.
The 7th International Web Rule Symposium: Research Based and Industry Focused (RuleML 2013) July 11-13, 2013, Seattle, USA.
Semantic Web - an introduction By Daniel Wu (danielwujr)
RuleML Rules Lite Harold Boley, NRC IIT e-Business Said Tabet, Macgregor Corp With Key Contributions from the Joint Committee DAML PI Meeting, Captiva.
1 RIF Design Roadmap Draft PM Harold Boley (NRC), Michael Kifer (Stony Brook U), Axel Polleres (DERI), Jos de Bruijn (DERI), Michael Sintek.
A Portrait of the Semantic Web in Action Jeff Heflin and James Hendler IEEE Intelligent Systems December 6, 2010 Hyewon Lim.
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
The Semantic Web By: Maulik Parikh.
Rules, RIF and RuleML.
Presentation transcript:

Are Your Rules Online? Four Web Rule Essentials RuleML-2007, Oct 2007 Harold Boley National Research Council of Canada University of New Brunswick, Canada

1 Introduction Web rules permit novel Web sites  with machine-interpretable rule representations  for automated reasoning Research builds on our previous work in  Web rule foundations (e.g., POSL, Datalog DL, ALC u P )POSLDatalogALC  Standards (e.g., RuleML, SWRL, RIF)RuleMLSWRLRIF  Engines (e.g., OO jDREW)OO jDREW  Use cases (e.g., AgentMatcher, FindXpRT, Rule Responder, Ontology Integration)AgentMatcherFindXpRT Rule Responder

2 Objective Devise complementary techniques of  rule representation & reasoning for  Business Rules  the Semantic Web  Web Services  other Web (and Web 2.0) areas

3 Four Principal Web Rule Issues Previous research led to following four principal Web rule issues used here as starting points...

4 I1: Formal Knowledge as Content or Metadata Web increasingly has ‘Semantic Subwebs’ containing knowledge documents (knowledge bases, schemas, etc.) Formal knowledge representation can act as  content that is queried and retrieved in its own right  metadata that helps to retrieve other formal or informal content  a combination of both

5 I2: Global Inconsistency vs. Local Consistency Open Web as well as closed ‘intranets’ contain knowledge documents:  Open Web knowledge in expressively rich representations is typically inconsistent  Closed intranet knowledge is typically paraconsistent, i.e. the documents in each intranet are maintained to be (locally) consistent, although the intranet union may be (globally) inconsistent 

6 I2: Global Inconsistency vs. Local Consistency (Cont’d) While classical 2-valued logic  cannot be directly used for open Web reasoning  it can be exploited locally for closed intranet reasoning Locality of documents creates an implicit module notion Locality can also be achieved via an explicit module construct

7 I3: Rule Layering on Top of RDF? Trade-off between representation expressiveness and reasoning tractability  Scalability of reasoning to the open Web is still unresolved for higher expressive classes  Representation layering on top of quite inexpressive languages: RDF is W3C's fundamental knowledge layer, although its XML syntax is somewhat complicated, and its semantics is rather complicated

8 I3: Rule Layering on Top of RDF? (Cont’d) Yet, simple RDF statements without blank nodes in assertions, queried without property variables, are a candidate for the least expressive (binary-)fact layer: Use RuleML & RIF’s slotted syntax (F-logic semantics) Binary Datalog rules, similar to relational views over 2-column tables, can then be added to derive new facts from conjunctions of other facts, much like relational joins Finally, an irreflexive subClassOf fragment of RDF Schema can be employed to define order-sorted types for constants and rule variables

9 I4: Web Standards Compatibility / Webizing Web rules layered on, and side-by-side with, other Web languages  Represent rules so that compatibility with relevant Web standards (e.g., XML, RDF, OWL) is preserved Selecting Web standards can be hard, e.g. which, if any, query and transformation languages should be included (e.g., XQuery, XSLT, SPARQL, OWL-QL) Levels and degrees of compatibility with each selected language need to be determined  Focus on what is unique to Web languages, namely ‘webizing’, basically permitting Web rule language to use URIs for global constants, in ways compatible with URIs in existing (Semantic) Web languages

10 Four Essentials of Web Rules To address issues I1-I4, we will consider four corresponding essentials of Web rules, E1-E4 Taken together, the Web rule essentials will constitute a diamond-like system,, with URIs (E4) at the bottom, modules (E2) and assertional-terminological layers (E3) on the same level in the middle, and a Controlled English Wiki (E1) at the top E

E URI access/naming Rule Wiki ModulesLayers

12 E1: Combining Logic Rules with Controlled English Combine formal and informal knowledge in a Rule Wiki, where clauses (here, rules and facts) are given dual representations, in natural language (e.g., English) and in logic Formal parts can be taken as code (or as metadata) for the informal parts, and the informal parts as documentation (or as content) for the formal parts

13 E1: Combining Logic Rules with Controlled English (Cont’d) This combination is analogous to Knuth’s Literate Programming and to Javadoc Supported by tools mapping Controlled English into rules and back  English-to-rule tools based on Attempto: TRANSLATOR, and AceRules  Related tools have also been developed for AceWiki and “Semantics of Business Vocabulary and Business Rules” (SBVR)

14 E1: Rule(ML) Wiki Classical Wiki permits authoring of informal- knowledge documents using natural-language- enriching markup simpler than (but mapped to) HTML Extending this concept, a Rule Wiki permits formal- knowledge authoring using logic-language-enriching markup simpler than (but mapped to) XML, combining this with informal-knowledge authoring Formal-knowledge language can employ a human- readable syntax such as POSL, integrating the Prolog and F-logic syntaxes

15 E1: Rule(ML) Wiki (Cont’d)

E URI access/naming Rule Wiki ModulesLayers

17 E2: A Distributed Rule Module Construct Beneficial to represent distributed knowledge via a module construct,  supporting local consistency  reducing the search space of scoped (module-restricted) queries  permitting scoped negation as failure (over closed worlds) Such Web modules may be  written and used ‘in place' or  defined at one place (URL) and accessed from other places The semantics of modules should not depend on any needed URL-dereferencing

18 E2: Modules in RuleML RuleML 0.91 embeds modules (Rulebases) into an Entails element, which serves to prove whether a query or module is entailed by another module0.91 Can be extended to nested (cycle-free) inheritance system of modules We only need a simplified kind of module inheritance, since by default we don’t assume Prolog-like textual order in a module's set of assertional (fact and rule) or terminological (subclass-ontological) clauses  Don’t need to merge clauses but can just take their union

19 E2: Module Example: loyalty { discount(?customer,?product,percent[5]) :- premium(?customer), regular(?product). discount(?customer,?product,percent[10]) :- premium(?customer), luxury(?product). }

20 E2: Module Example: legality { -discount(?customer,?product1,?percent) :- payment(?customer,?product2,?amount,?method,?time), fraudulent(?customer,?method,?time). -discount(?customer,?product1,?percent) :- delivery(?customer,?product2,?amount,date[?y1,?m1,?d1]), payment(?customer,?product2,?amount,?method,date[?y2,?m2,?d2]), datediff(days[?delta],date[?y2,?m2,?d2],date[?y1,?m1,?d1]), greaterThan(?delta,45). } Using “ - ” prefix as POSL syntax for RuleML’s (strong) Neg(ation) element

21 E2: Module Prioritization: legality vs. loyalty Example modules locally consistent, but their union is inconsistent: According to first rule of loyalty module, premium customers would be granted 5 percent discount for a regular product, but, according to the first rule of legality module, would be denied discount on any product if they used a fraudulent payment method on a product To deal with this, prioritization (cf. Courteous Logic Programs and Defeasible Logic) can be employed on the module level to let all rules of the legality module override all loyalty rules

22 E2: Module-Scoped Queries  Example Based on Local Modules: customer and product { discount(?customer,?product,percent[5]) :- customer |- premium(?customer), product |- regular(?product). discount(?customer,?product,percent[10]) :- customer |- premium(?customer), product |- luxury(?product). } Using “|-” infix as POSL syntax for RuleML’s Entails element

E URI access/naming Rule Wiki ModulesLayers

24 E3: Assertional-Terminological Expressiveness Layering  Zooming into the ‘Cake’ Tim Berners-Lee 2006:

25 E3: Assertional-Terminological Expressiveness Layering Various efforts towards dual expressiveness layering of assertional and terminological knowledge as well as their blends Assertional bottom layer usually consists of Datalog (function-free) assertions, perhaps restricted to unary/binary predicates Terminological bottom layer can employ irreflexive version of RDF Schema's subClassOf, which can later be extended towards the  DF fragment of RDF  DF

26 E3: Assertional-Terminological Expressiveness  Bottom Layers Bottom layers can be blended through a hybrid combination:  DF classes used as types for Datalog constants and variables, and subClassOf defined with order-sorted semantics or homogeneous integration:  DF classes used as unary predicates in the body of Datalog rules, and subClassOf defined as special rules with Herbrand- model semantics

27 E3: Assertional-Terminological Expressiveness  Higher Layers Higher layers can develop Datalog into Horn and FOL (First-Order Logic) assertions  DF into ALC and SHIQ terminologies with classes and properties appropriate blends, e.g. as advancements of our hybrid Datalog DL or homogeneous ALC u P Assertional layers can move even beyond FOL, including towards higher-order and modal logics, as started as part of the RuleML familyRuleML family

28 E3: Layering Example: Vehicle Registration Vehicle > Van Vehicle > PassengerVehicle Van > MiniVan PassengerVehicle > MiniVan PassengerVehicle > Car Terminology: registration(?V:Van,CAD[?R:Decimal]) :- emission(?V,CO2[?E]), weight(?V,kg[?W]), emiweight(CAD[?R],CO2[?E],kg[?W]). registration(?V:Car,CAD[?R:Decimal]) :- emission(?V,CO2[?E]), speed(?V,kmh[?S]), emispeed(CAD[?R],CO2[?E],kmh[?S]). Assertions: Vehicle s s PassengerVehicle s = rdfs:subClassOf Van s MiniVan s s Car s

E URI access/naming Rule Wiki ModulesLayers

30 E4: URIs for Access or Naming There have been attempts to differentiate the Web notion of URIs into two subnotions:  URLs (Uniform Resource Locators), for access  URNs (Uniform Resource Names), for naming In the context of Web knowledge representation, three central URI uses are emerging, given here in the order of further needed research

31 E4: URIs for Access, Naming, or Both (1) A URI can be used URL/access-style, for module import, where it is an error if dereferencing the URI does not yield a knowledge base valid with respect to the expected representation language Example: The loyalty module can be imported into the current rulebase using URL/access-style URI

32 E4: URIs for Access, Naming, or Both (2a) A URI can be used URN/naming-style, as the identifier of an individual constant in the representation language, where URI dereferencing is not part of the formal knowledge representation. Dereferencing as part of the metadata about the informal knowledge representation retrieves ‘homepage’ of the individual Example: The URI can be used URN/naming-style to refer to celestial body originally considered a planet (URI in angular brackets, ): planet(,AD[?year]) :- lessThanOrEqual(1930,?year), lessThanOrEqual(?year,2006).

33 E4: URIs for Access, Naming, or Both (2b) As part of formal rule knowledge, Pluto URI is used only for naming. Rule can also be employed as metadata about informal knowledge via (‘semantic search engine’) queries like planet(?which, AD[2005]) since one of its solutions is ?which = whose dereferencing (‘clicking’) will then retrieve Pluto's Wikipedia entry

34 E4: URIs for Access, Naming, or Both (3) A URI can be used naming-style, as identifier of a class, property, relation, or function, and at the same time access-style, where dereferencing yields knowledge base formally defining that identifier (perhaps partially only, as for an RDF Schema knowledge base just giving the superclasses of a class) Example: for certain formal purposes a URI like is needed just to provide a name; for other formal purposes, also to provide a total or partial definition found by using that same URI for access (say, the partial definition of being rdfs:subClassOf both and

35 Conclusions (1) Essentials in are variously interrelated For instance,  a Rule Wiki for assertional knowledge (E1) can be extended with  terminological knowledge (E3), both of which  can be kept in distributed modules (E2)  accessed by URIs (E4) E

36 Conclusions (2) The four essentials can be transferred to (re)active rules for knowledge update, which have been increasingly studied in Web languages such as Reaction RuleML and Prova Reaction RuleMLProva These rules have extra event and action parts:  Can also be combined with Controlled English (E1),  Modules are even more important here, for containing action side-effects (E2)  Terminologies can be directly added to formalize both event and action vocabularies (E3)  All kinds of URIs are also crucial for (re)active Web rules and Web Services (E4)