Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 6795 SEMANTIC WEB TECHNIQUES TEAM6: HAWRA BADER ALSEEF JEEVAN REDDY KODUR 19 NOV, 2012.

Similar presentations


Presentation on theme: "CS 6795 SEMANTIC WEB TECHNIQUES TEAM6: HAWRA BADER ALSEEF JEEVAN REDDY KODUR 19 NOV, 2012."— Presentation transcript:

1 CS 6795 SEMANTIC WEB TECHNIQUES TEAM6: HAWRA BADER ALSEEF JEEVAN REDDY KODUR 19 NOV, 2012

2 OUTLINE  Brief definition of:  RuleML  Derivation RuleML (sublanguages)  Relax NG Compact schema  Project Description.  Use cases of the project.  Explanation of project implementation:  Phase 1  Phase 2  Phase 3  Phase 4  Project results.

3 RULEML : RuleML is a family of sublanguages whose root allows access to the language as a whole and whose members allow to identify customized subsets of the language. Therefore, RuleML's specification employs modular XML Schemas. This was originally specified in Document Type Definitions (DTDs) [W3C98], then switched to XML Schema Definition Language (XSD) schemas. Also this is developed to express both forward (bottom-up) and backward (top-down) rules in XML for deduction, rewriting, and further inferential-transformational tasks. It is also defined by the Rule Markup Initiative, as an open network of individuals and groups from both industry and academia that was formed to develop a canonical Web language for rules using XML markup and transformations from and to other rule standards/systems. RuleML builds a hierarchy of rule sublanguages upon XML, RDF, XSLT, and OWL.

4  The official model of the Derivation RuleML family of sublanguages.  The model shows the sublanguages in top-down order where the most expressive sublanguage is shown at the top and generality decreases as we go down.  A diamond-headed arrow indicates an aggregation association. datalog is part of hornlog  Regular-headed arrows indicate generalization as used for inheritance. bindatalog is a datalog  The composition may happen directly (datalog), or indirectly through subsequent associations. (bindatalog is not directly associated with any modules, but with some modification it inherits them )  A solid line indicates distinct from the standard aggregation relationship. DERIVATION RULEML:

5 THE RULEML 1.0 SCHEMAS IN RELAX NG COMPACT : The benefits of a re-engineering and re- conceptualization of the non-SWSL portion of the Derivation Rules subfamily of RuleML in Relax NG Compact schemas are:  decreased positional sensitivity.  greater flexibility in modularization.  unification of human-readable and machine- readable versions.

6 PROJECT DESCRIPTION:  The project is about generating a library of RuleML 1.0 schemas where the desired schema should be in the Relax NG Compact (RNC) form.  The RuleML 1.0 schemas in Relax NG consist of a ‘backbone’ of named schemas enriched by a large number of parameter-defined schemas customizable via a schema generator, MYNG.  By using the MYNG tool, the Library of relevant RuleML 1.0 sublanguages in RNC will be built which then shall be tested and illustrated with some sample instances.  The library should be available online.

7 THE USE CASES OF THE PROJECT:  We mainly have accomplished the project by employing 3 use cases of different sublanguages. 1.Horn Logic 2.Ground Logic 3.Ground Fact  Horn Logic: According to IgorMozetic on W3C RIF-WG Wiki:W3C RIF-WG Wiki Horn Logic is a formal language, which has a corresponding inference procedure, thus forming a formal system together. The formal language allows to express rules (and facts), and queries. The inference procedure computes answers to queries from rules (and facts).  Ground Logic and Ground Fact: In mathematical logic, a ground term of a formal system is a term that does not contain any free variables.

8 PROJECT IMPLEMENTATION

9 PHASE 1: CREATING RNC SCHEMAS BY USING MYNG TOOL.  To do this phase, we open the page MYNG that was built in PHP and select the checkboxes for Hornlog and binary and we refresh the schema. Then, there will be a link of a new URL generated that is the RNC schema for the checkboxes we selected. When we click on that link, we can see custom_driver.rnc file generated related to our binaryhornlogic. This way we generate different Relax NG Compact for different sublanguages such as polyadic ground fact and polyadic ground logic sublanguage.  MYNG generating rnc schema screen shot:

10 PHASE 2: CREATING EXAMPLS FOR BINARY HORN LOGIC SCHEMA. Example[1] : Sample RuleML to show Horn Logic Binary relation. if "a number of customer uses parking lot has vehicle of car type", then "parking fee for the customer per hours parked would be in increments of 1 Dollar"

11 parking fee Chown and Hanson time duration vehicle class relation customer_1 customer_1 name another relation car list rates XML EXAMPLE FOR BINARY HORN LOGIC SCHEMA. parking fee customer hours parked Dollar 1 paid parking lot customer number vehicle car type

12 XML EXAMPLE FOR BINARY HORN LOGIC SCHEMA ON OXYGEN.

13 PHASE 3:  Creating sample instances for Relax NG Compact Schemas. 1.Polyadic Ground Logic Schema. 2.Polyadic Ground Fact Schema.

14 EXAMPLES OF POLYADIC GROUND LOGIC SCHEMA. Example 1: Sample RuleML to show Ground Logic Polyadic relation. if "books can be hardbound or softbound, and books can be informative or fun" then "an encyclopedia, a dictionary, and a novel are books"

15 book encyclopedia dictionary novel book informative relaxing book hardbound softbound XML EXAMPLE FOR POLYADIC GROUND LOGIC SCHEMA.

16 XML EXAMPLE FOR POLYADIC GROUND LOGIC SCHEMA ON OXYGEN.

17 EXAMPLES OF POLYADIC GROUND FACT SCHEMA. Example 1: Sample RuleML to show Ground Fact Polyadic relation. sample web browser type include webkits (ex. Google Chrome) and mobile (ex. Opera); social networking sites include Facebook, Twitter, and Google Plus; sample instant messengers include Skype and Yahoo! Messenger

18 XML EXAMPLE FOR POLYADIC GROUND FACT SCHEMA. web browsers webkit Google Chrome mobile Opera social networking sites Facebook Twitter Google Plus instant messengers Skype Yahoo! Messenger

19 XML EXAMPLE FOR POLYADIC GROUND FACT SCHEMA.

20 PHASE 4: DOCUMENTING IN AN ONLINE DIRECTORY ALL THE FILES IN A DIRECTORY AND SUBDIRECTORIES. We answered three different type of questions in each sublanguage by creating some examples to each of them in binary hornlogic, polyadic ground fact, polyadic groundlogic. The focus of this phase is the documentation of all results in an online directory. Here we try to make all the files available in an online directory. But first we try to create a new webpage which is needed to keep all the files in the form of directory so we have created a webpage with the url as http://generateruleml-1- library.xp3.biz/.http://generateruleml-1- library.xp3.biz/

21 We can see in this webpage there is a directory of folders in the starting where we have two main directories as RuleML Files and other one as Relax NG Compact Schemas. When we click on the RuleML Files it shows a new page where it has information about the different types of sublanguages we have included. THIS BELOW DIAGRAM SHOWS THE ACTUAL HOME WEBPAGE.

22 Further we can see that the different sublanguages over here behave as a different subdirectories which have few ruleml example files under them. All these example files can be seen when once we click on a particular sublanguage and below we can see the binaryhornlog example files opened. THE BELOW PAGE SHOWS THE DIFFERENT SUBLANGUAGES IN AN ORDER.

23 So in the next level when we click on a particular ruleml example file we can see that the particular ruleml file gets opened where we can see the code written over there. THE WEBPAGE SHOWN BELOW IS FOR BINARY HORN LOGIC SUBDIRECTORY, SIMILARLY WE CAN SEE FOR ALL OTHER SUBDIRECTORIES.

24 THE WEBPAGE SHOWN BELOW IS ONE EXAMPLE OF BINARY HORN LOGIC

25 When we move back again to the actual home page we see that we have one more directory as Relax NG Compact Schemas here when we click on this we see that the next page opens which has the different RNC files for our particular sublanguages and one more subdirectory named as modules. When you click on modules we can see further another file system which has different files used in our validation of our sublanguages. Below we can see these two webpages in a screenshot.

26 INDEX OF/RELAXNG/MODULES

27 We finally run these sublanguage examples in oxygen or validator.nu accordingly and test whether the documents are valid or not accordingly. Below we show the screenshot of validator.nu.

28 PROJECT RESULTS.  In particular, the library of RuleML 1.0 schemas has built with specific sublanguages, which are Horn Log, Ground Logic and Ground Fact.  We can compare these three sublanguages in terms of expressiveness.

29 Based on what we have implemented, we can illustrate the level of expressiveness of three sublanguages by the figure below.

30 The figure shows the sublanguages in bottom-up order where the most expressive sublanguage is shown at the bottom. It shows that Datalog sublanguage is at the bottom and as we mentioned earlier that Datalog is a part of Horn Log, we can infer that: Horn Log is the most expressive sublanguage among them where It includes implications (rules), relations, quantifications (Forall, Exists) and functions as well.

31  The second sublanguage is Ground Logic where it is more expressive than Ground Fact because implications (rules) are allowed as well as relations. It contains more possibilities such as ( Ind, Skolem, Data, Reify, Arg, Slot, etc ) but does not contain Var.  The third sublanguage is Ground Fact where it just contains relations and constants, (no implications or quantifiers).

32 REFERENCES:  http://ruleml.org/modularization/#pr http://ruleml.org/modularization/#pr  http://www.w3.org/2005/rules/wg/wiki/Horn_Logic http://www.w3.org/2005/rules/wg/wiki/Horn_Logic  http://en.wikipedia.org/wiki/Ground_expression http://en.wikipedia.org/wiki/Ground_expression  http://ruleml.org/0.85/ooruleml- remodularized_schematized.pdf http://ruleml.org/0.85/ooruleml- remodularized_schematized.pdf  http://www.cs.unb.ca/~boley/papers/RuleMLinRelaxNG.pdf http://www.cs.unb.ca/~boley/papers/RuleMLinRelaxNG.pdf  http://ruleml.org/1.0/relaxng/ http://ruleml.org/1.0/relaxng/

33


Download ppt "CS 6795 SEMANTIC WEB TECHNIQUES TEAM6: HAWRA BADER ALSEEF JEEVAN REDDY KODUR 19 NOV, 2012."

Similar presentations


Ads by Google