RuleML Rules Lite Harold Boley, NRC IIT e-Business Said Tabet, Macgregor Corp With Key Contributions from the Joint Committee DAML PI Meeting, Captiva.

Slides:



Advertisements
Similar presentations
RuleML Meets RDF: Triples, Rules, and Taxonomies Harold Boley*, NRC IIT e-Business Benjamin Grosof, MIT Sloan (with help from Bruce Spencer, Steve Ross-Talbot,
Advertisements

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.
Object-Oriented RuleML: User-Level Roles, URI-Grounded Clauses, and Order-Sorted Terms Harold Boley, NRC IIT e-Business, Fredericton RuleML-2003 Sanibel.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
XML: Extensible Markup Language
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,
A rule language for the semantic web Dieter Fensel, Lausanne, June 14, 2004 SDK cluster meeting on WSMO.
RDF Tutorial.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
David Hirtle Co-op student, NRC IIT e-Business August 12, 2004 The RuleML 0.87 Release UML Model, Validation Stability, and Abridged Syntax.
Introduction to XLink Transparency No. 1 XML Information Set W3C Recommendation 24 October 2001 (1stEdition) 4 February 2004 (2ndEdition) Cheng-Chia Chen.
Proof System HY-566. Proof layer Next layer of SW is logic and proof layers. – allow the user to state any logical principles, – computer can to infer.
Cornell CS 502 More XML XML schema, XPATH, XSLT CS 502 – Carl Lagoze – Cornell University.
Introduction to XML This material is based heavily on the tutorial by the same name at
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
The RuleML Initiative, July/August 2001 International Semantic Web Working Symposium SWWS July - 1 August 2001, Stanford, California, USA Harold.
TRANSLATOR: A TRANSlator from LAnguage TO Rules David Hirtle David R. Cheriton School of Computer Science University of Waterloo (Work done at the University.
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.
Slotted RuleML for Metarole-Based Object-Centered Knowledge Representation Harold Boley, NRC IIT e-Business 2 November 2002 Revised: 26 February 2005.
Lecture 6 of Advanced Databases XML Schema, Querying & Transformation Instructor: Mr.Ahmed Al Astal.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
Document Type Definitions Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
The 7th International Web Rule Symposium: Research Based and Industry Focused (RuleML 2013) July 11-13, 2013, Seattle, USA.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
OWL 2 Web Ontology Language. Topics Introduction to OWL Usage of OWL Problems with OWL 1 Solutions from OWL 2.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
1 RDF/RuleML Interoperability W3C Workshop on Rule Languages for Interoperability Position Paper, April 2005 Authors: Harold Boley 1, Jing Mei 2,
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
1 XSLT An Introduction. 2 XSLT XSLT (extensible Stylesheet Language:Transformations) is a language primarily designed for transforming the structure of.
David Hirtle Coop student, NRC IIT e-Business December 2, 2003 Object-Oriented RuleML Re-Modularized and XML Schematized via Content Models.
Of 33 lecture 3: xml and xml schema. of 33 XML, RDF, RDF Schema overview XML – simple introduction and XML Schema RDF – basics, language RDF Schema –
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
Object-Oriented RuleML for RDF: Facts, Queries, and Inferences Harold Boley*, NRC IIT e-Business (with help from Said Tabet, Duncan Johnston-Watt, Benjamin.
RDF and XML 인공지능 연구실 한기덕. 2 개요  1. Basic of RDF  2. Example of RDF  3. How XML Namespaces Work  4. The Abbreviated RDF Syntax  5. RDF Resource Collections.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
1 The OO jDREW Reference Implementation of RuleML RuleML-2005, November 2005 Marcel Ball 1, Harold Boley 2, David Hirtle 1,2, Jing Mei 1,2, Bruce.
Weighted Slotted RuleML for Similarity Matching in AgentMatcher Information Agents Harold Boley, NRC IIT e-Business Virendra Bhavsar, UNB, Faculty of Computer.
Semantically Processing The Semantic Web Presented by: Kunal Patel Dr. Gopal Gupta UNIVERSITY OF TEXAS AT DALLAS.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
Attribute Grammars and XML Workshop on Attribute Grammars, XML, and RDF Institute for Media and Communications Management University of St. Gallen 20/21.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
RuleML Meets RDF: Triples, Rules, and Taxonomies Harold Boley*, NRC IIT e-Business Benjamin Grosof, MIT Sloan (with help from Bruce Spencer, Steve Ross-Talbot,
Representing data with XML SE-2030 Dr. Mark L. Hornick 1.
PRACTICAL KNOWLEDGE REPRESENTATION FOR THE WEB Frank van Harmelen Dieter Fensel AIFB Kim Kangil Structural Complexity Laboratory.
From RuleML 0.88 to 0.89 Sublanguages Beyond Horn Logic ― Validation and Translation David Hirtle NRC-IIT, UNB April 21, 2005 Update: June 8, 2005.
Object-Oriented RuleML for RDF: Facts, Queries, and Inferences Harold Boley, NRC IIT e-Business (with help from Said Tabet, Duncan Johnston-Watt, Benjamin.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
The Rule Markup Initiative: RDF Relationships and DTD Modularization Harold Boley Benjamin Grosof Said Tabet Updated (8 Mar 2001) from talk at: RDF Interest.
Harold Boley NRC IIT e-Business MOST Workshop - Maritimes Open Source Technologies Université de Moncton Nov 10, 2004 Revised: Apr 14, 2005 The Open RuleML.
RuleML Query Answering with Personal OO jDREW Agents in Rule Responder Benjamin Craig Harold Boley Fredericton, NB National Research Council - IIT May.
Raluca Paiu1 Semantic Web Search By Raluca PAIU
1 RIF Design Roadmap Draft PM Harold Boley (NRC), Michael Kifer (Stony Brook U), Axel Polleres (DERI), Jos de Bruijn (DERI), Michael Sintek.
Of 35 lecture 17: semantic web rules. of 35 ece 627, winter ‘132 logic importance - high-level language for expressing knowledge - high expressive power.
The International RuleML Symposium on Rule Interchange and Applications Visualization of Proofs in Defeasible Logic Ioannis Avguleas 1, Katerina Gkirtzou.
RuleML for the Semantic Web Harold Boley OntoWeb Kick-off WorkshopOntoWeb Kick-off Workshop, Heraklion, Greece, June 2001 Revised: 17 July 2001 (joint.
Chapter 5 The Semantic Web 1. The Semantic Web  Initiated by Tim Berners-Lee, the inventor of the World Wide Web.  A common framework that allows data.
A Test Case Suite for Hornlog+ RuleML 1.01 A Test Case Suite for Hornlog+ RuleML 1.01 CS6795 Semantic Web Techniques Team 3: Zhenzhi Cui Radhika Yadav.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Extensible Markup Language
Extensible Markup Language (XML) Pat Morin COMP 2405.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
Unit 4 Representing Web Data: XML
Extensible Markup Language XML
Extensible Markup Language XML
More XML XML schema, XPATH, XSLT
Presentation transcript:

RuleML Rules Lite Harold Boley, NRC IIT e-Business Said Tabet, Macgregor Corp With Key Contributions from the Joint Committee DAML PI Meeting, Captiva Island, FL, USA 17 Oct. 2003

RuleML Rules Lite 1 Introduction Starting point of RuleML Rules Lite is Datalog RuleML 0.8RuleML 0.8 Main elements: facts and rules (also queries) „Minimal“: Predicates restricted to unary / binary – Compatible with OWL-DL – Certain unary predicates also usable for typing rule variables (untyped ones being of type 'any') In the following: – Use case – Data model – Concrete syntax – Herbrand-like models

RuleML Rules Lite 2 BinDataLog Rules Lite: Source Variants Use case: Geography Example: stretches rule English: „An object x stretches an object y if y has x as a part and x and y are co-flanked “ PR-Prolog: stretches(?x,?y) :- has_as_part(?y,?x), co-flanked(?x,?y).

RuleML Rules Lite 3 Rules and Facts from PR-Prolog Source stretches(?x,?y) :- has_as_part(?y,?x), co-flanked(?x,?y). co-flanked(?x,?y) :- flanked_by(?x,?z), flanked_by(?y,?z). continent(North_America). country(Canada). country(USA). province(Ontario). oceanpair(Oceanics). ocean(Atlantic). ocean(Pacific). has_as_part(North_America,Canada). has_as_part(North_America,USA). has_as_part(Canada,Ontario). area(Canada,sqkm ). area(USA,sqkm ). flanked_by(North_America,Oceanics). flanked_by(Canada,Oceanics). flanked_by(USA,Oceanics). eastern(Oceanics,Atlantic). western(Oceanics,Pacific).

RuleML Rules Lite 4 The Data Model of RuleML Rules Lite Unifies the XML and RDF Models XML based on, possibly attributed, left-to-right ordered, node-labeled trees, reminiscent of parse (syntax) trees RDF based on directed, arc-labeled (unordered) graphs with two kinds of nodes, resources and literals, the latter not allowing outgoing arcs XML and RDF employ different data models: A unified data model is used in RuleML Rules Lite

RuleML Rules Lite 5 BinDataLog Rules Lite: Tree Data Model RuleML Lite rules are graphically modeled as trees, here illustrated for the stretches rule RDF graph for OO roles: (arc-)labeled, unordered children XML tree for predicate arguments: unlabeled, ordered children imp stretches x atom headbody opr has_as_part var y x y co-flanked x opr var y atom stretches(?x,?y) :- has_as_part(?y,?x), co-flanked(?x,?y).

RuleML Rules Lite 6 RuleML Rules Lite Concrete Markup Syntax Webized-only, abridged version of the XML markup of RuleML 0.8, compatible with RDF and OWL The (always empty) 'ind' element is used – in the first or second argument position – for 'href'-naming individual constants A new 'data' element is used – in the second argument position – for tagging various data types as content (cf. RDF literals)

RuleML Rules Lite 7 Webizing Constants and Relations Webized individual constants: constant is replaced by as in RuleML 0.8 Webized relation symbols: relation is replaced by

RuleML Rules Lite 8 Uniform Webizing Syntax Individuals as well as unary and binary predicates can be webized by augmenting, within the href's, their symbolic "#"-names by URIs, so that two possibilities result: *1* Symbolic names: with "#"-prefixed fragment identifiers (local only, corresponding to the pre-webized situation) *2* URIs: with "#"-separated fragment identifiers (cf. RDF)

RuleML Rules Lite 9 Webizing – Use Case (I) PR-Prolog (with N3-like URIs and namespace declarations): w := continent( ).... ( ).... (North_America,Canada).... (,Pacific).

RuleML Rules Lite 10 Webizing – Use Case (II) XML: <rulebase xmlns:w=" >

RuleML Rules Lite 11 Abridging RuleML 0.8 Tags in Rules Lite *1* The earlier will be abridged to *2* The earlier atom1...atomK will be abridged to atom1...atomK (K = 0, 1,...) *3* Similarly, atom1...atomK could be abridged to atom1...atomK (for OWL Rules) *4* Prefix form term1...termN will be allowed (0 < N < 3); Postfix form term1…termN will be forbidden (0 < N < 3) *5* The earlier... will be further abridged to...

RuleML Rules Lite 12 BinDataLog RuleML Lite: Use Case Rule x y y x x y A rule in RuleML Lite is marked up as an imp element that has two children: a _ head role with an atom element augmented – before or after – by a _ body role with 1 or more (here: 2) atom elements stretches(?x,?y) :- has_as_part(?y,?x), co-flanked(?x,?y).

RuleML Rules Lite 13 BinDataLog RuleML Lite: Use Case Facts sqkm A fact in RuleML Lite is marked up as a facto element that has two or three children: an _ opr role with a relation name followed by an argument that is an ind element and an optional argument that is an ind or data element

RuleML Rules Lite 14 Conjunctive Retrieval Queries – as 'Negative' Integrity Constraints PR-Prolog: continent(x), ocean(x) XML: x x A query in RuleML Lite is marked up as a query element that has one child: a _ body role with 1 or more (here: 2) atom elements

RuleML Rules Lite 15 Inferential Queries – Step 1 PR-Prolog: stretches(?x,North_America) XML: x

RuleML Rules Lite 16 Inferential Queries – Step 2 PR-Prolog: has_as_part(North_America,?x), co-flanked(?x,North_America) XML: x x

RuleML Rules Lite 17 Inferential Queries – Step 3 PR-Prolog: co-flanked(?x,North_America) where ?x = Canada XML: x where x =

RuleML Rules Lite 18 Inferential Queries – Step 4 PR-Prolog: ?x = Canada XML: x =

RuleML Rules Lite 19 Inferential Queries – Step 2’ PR-Prolog: has_as_part(North_America,?x), co-flanked(?x,North_America) XML: x x

RuleML Rules Lite 20 Inferential Queries – Step 3’ PR-Prolog: co-flanked(?x,North_America) where ?x = USA XML: x where x =

RuleML Rules Lite 21 Inferential Queries – Step 4’ PR-Prolog: ?x = USA XML: x =

RuleML Rules Lite 22 DL-Augmented Herbrand Model PR-Prolog: continent(North_America). country(Canada). country(USA). province(Ontario). oceanpair(Oceanics). ocean(Atlantic). ocean(Pacific). has_as_part(North_America,Canada). has_as_part(Canada,Ontario). has_as_part(North_America,Ontario). % from OWL area(Canada,sqkm ). area(USA,sqkm ). flanked_by(North_America,Oceanics). flanked_by(Canada,Oceanics). flanked_by(USA,Oceanics). flanks(Oceanics,North_America). % from OWL flanks(Oceanics,Canada). % from OWL flanks(Oceanics,USA). % from OWL co-flanked(North_America,Canada). co-flanked(Canada,North_America). co-flanked(North_America,USA). co-flanked(USA,North_America). co-flanked(Canada,USA). co-flanked(USA,Canada). co-flanked(North_America,North_America). co-flanked(Canada,Canada). co-flanked(USA,USA). stretches(Canada,North_America). stretches(USA,North_America). eastern(Oceanics,Atlantic). western(Oceanics,Pacific).

RuleML Rules Lite 23 DTD for Rules Lite – Facts and Rules <!-- The CDATA must be either URIs with "#"-separated fragment identifiers (for URI naming) or local, "#"-prefixed fragment identifiers (for symbolic naming) -->

RuleML Rules Lite 24 XML Schema (I) – Facts and Rules

RuleML Rules Lite 25 XML Schema (II) – Facts and Rules

RuleML Rules Lite 26 Work in Progress on Industrial Applications Fraud detection rules Mortgage loan rules Policies and regulations for financial services

RuleML Rules Lite 27 Conclusions After definition of RuleML Rules Lite as an XML DTD & Schema, next step has been to modify existing parsers, generators, and XSLT translators to implement syntax for rule interchange Two engines running tested with discount rules (Jess, Rules.NET) Serialization to Java and.NET object models Further implementations have been envisaged for jDREW, OWL engines, Jena 2, and cwm Since RuleML Rules Lite semantically is a kind of RDF Rules, a pure RDF version is being considered Intertranslation and convergence with OWL Rules (Lite) will be important future JC work item to synergize communities To demonstrate the extension path to N-ary relations, ternary predicates could be added later as exemplified in As an alternative or complement, transition to full Horn logic could be attempted