RuleML and SWRL, Proof and Trust

Similar documents
Formalising the Semantic Web. (These slides have been written by Axel Polleres, WU Vienna)

Limitations of the WWW

Unit 2 RDF Formal Semantics in Detail

INF3580/4580 Semantic Technologies Spring 2017

Building Blocks of Linked Data

Mustafa Jarrar: Lecture Notes on RDF Schema Birzeit University, Version 3. RDFS RDF Schema. Mustafa Jarrar. Birzeit University

<?xml version='1.0' encoding='iso '?> <!DOCTYPE rdf:rdf [ <!ENTITY rdf ' <!

Representing Security Policies in Web Information Systems

From the Web to the Semantic Web: RDF and RDF Schema

Web Science & Technologies University of Koblenz Landau, Germany. RDF Schema. Steffen Staab. Semantic Web

RDF /RDF-S Providing Framework Support to OWL Ontologies

Rule based systems in Games

Developing markup metaschemas to support interoperation among resources with different markup schemas

1ST IFIP TC-5 WORKING CONFERENCE ON CAI IFIP-TC5 ULM, GERMANY. NOVEMBER COMPUTER-AIDED INNOVATION WITH THE SEMANTIC WEB

An RDF-based Distributed Expert System

The Semantic Web Revisited. Nigel Shadbolt Tim Berners-Lee Wendy Hall

Knowledge Representation RDF Turtle Namespace

Linguaggi Logiche e Tecnologie per la Gestione Semantica dei testi

Forward Chaining Reasoning Tool for Rya

2. RDF Semantic Web Basics Semantic Web

Implementing and extending SPARQL queries over DLVHEX

Semantic Web Systems Querying Jacques Fleuriot School of Informatics

The Semantic Web. What is the Semantic Web?

Appendix B: The LCA ontology (lca.owl)

Semantic Web Engineering

Ontological Modeling: Part 2

INF3580/4580 Semantic Technologies Spring 2015

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on XML and Semantic Web

Linked data and its role in the semantic web. Dave Reynolds, Epimorphics

Linked Data: What Now? Maine Library Association 2017

OSM Lecture (14:45-16:15) Takahira Yamaguchi. OSM Exercise (16:30-18:00) Susumu Tamagawa

Outline RDF. RDF Schema (RDFS) RDF Storing. Semantic Web and Metadata What is RDF and what is not? Why use RDF? RDF Elements

Semantic Web. Rules in Semantic Web. Morteza Amini. Sharif University of Technology Fall 94-95

XML Perspectives on RDF Querying: Towards integrated Access to Data and Metadata on the Web

Day 2. RISIS Linked Data Course

A Deductive System for Annotated RDFS

XML and Semantic Web Technologies. III. Semantic Web / 3. SPARQL Query Language for RDF

The Semantic Web. Mansooreh Jalalyazdi

TRIPLE An RDF Query, Inference, and Transformation Language

Semantic Web. Rules in Semantic Web. Morteza Amini. Sharif University of Technology Spring 91-92

WellnessRules2: Supporting Social Semantic Wellness Communities with Rule Responder

Short notes about OWL 1

The P2 Registry

The Resource Description Framework and its Schema

Reminder: RDF triples

Rules and Ontologies for the Semantic Web

Using RDF to Model the Structure and Process of Systems

3/6/08. Introduction to Ontology Web Language (OWL) Graphs. Representing knowledge. Graphs as knowledge 2. Graphs as knowledge 1

Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL

Making BioPAX SPARQL

Semantic Web and Linked Data

Domain Specific Semantic Web Search Engine

COMP9321 Web Application Engineering

Semantic Web. MPRI : Web Data Management. Antoine Amarilli Friday, January 11th 1/29

RESOURCES DESCRIPTION FRAMEWORK: RDF

Semantic Query: Solving the Needs of a Net-Centric Data Sharing Environment

Introducing Linked Data

Semantic reasoning for dynamic knowledge bases. Lionel Médini M2IA Knowledge Dynamics 2018

Ontology Links in the Distributed Ontology Language (DOL)

BUILDING THE SEMANTIC WEB

Expressive Querying of Semantic Databases with Incremental Query Rewriting

Semantic Days 2011 Tutorial Semantic Web Technologies

XML and Semantic Web Technologies. III. Semantic Web / 1. Ressource Description Framework (RDF)

The Hoonoh Ontology for describing Trust Relationships in Information Seeking

SPARQL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

Contents. G52IWS: The Semantic Web. The Semantic Web. Semantic web elements. Semantic Web technologies. Semantic Web Services

Semantic Web. Lecture 12: SW Programming Dr. Knarig Arabshian

The RuleML Family of Web Rule Languages

Resource Description Framework (RDF)

Today: RDF syntax. + conjunctive queries for OWL. KR4SW Winter 2010 Pascal Hitzler 3

RDF Schema. Mario Arrigoni Neri

An Introduction to Linked Open Data

Semantic Information Retrieval: An Ontology and RDFbased

Modeling LMF compliant lexica in OWL-DL

SPAR-QL. Mario Arrigoni Neri

IEEE P1900.B: Representation of Contextual/Policy Information & Information Recovery Date:

SPARQL: An RDF Query Language

6. RDFS Modeling Patterns Semantic Web

Linked Data and RDF. COMP60421 Sean Bechhofer

Semantic Web In Depth: Resource Description Framework. Dr Nicholas Gibbins 32/4037

Linking Data with RDF

Semantic Web Tools. Federico Chesani 18 Febbraio 2010

Querying RDF & RDFS. Several query languages exist to retrieve

Rules, RIF and RuleML

CC LA WEB DE DATOS PRIMAVERA Lecture 3: RDF Semantics and Schema. Aidan Hogan

Deep integration of Python with Semantic Web technologies

Bridging the Gap between Semantic Web and Networked Sensors: A Position Paper

Big Data 14. Graph Databases

Data management and integration

On the use of Abstract Workflows to Capture Scientific Process Provenance

A Review and Comparison of Rule Languages and Rule-based Inference Engines for the Semantic Web

Profiles Research Networking Software API Guide

Semantics and the Web: e-government Implications of some Emerging Technology Beyond W3C

What is the Semantic Web?

On Interchanging Between OWL/SWRL and UML/OCL

Web Services: OWL-S 2. BPEL and WSDL : Messages

Self-describing Delegation Networks for the Web

Scaling the Semantic Wall with AllegroGraph and TopBraid Composer. A Joint Webinar by TopQuadrant and Franz

RDFS. Suresh Manandhar* & Dimitar Kazakov

Semantic Web. Ontology and OWL. Morteza Amini. Sharif University of Technology Fall 95-96

Transcription:

RuleML and SWRL, Proof and Trust Semantic Web F. Abel and D. Krause IVS Semantic Web Group January 17, 2008 1 Solution 1: RuleML Express the following RuleML code as a human-readable First Order Logic or Description Logic rule: <rule> <head> <predicate> colleagues </predicate> <var> X </var> <var> Y </var> </head> <body> <predicate> worksfor </predicate> <var> X </var> <var> C </var> <predicate> worksfor </predicate> <var> Y </var> <var> C </var> </body> </rule> Solution: X. Y.(worksF or(x, C) worksf or(y, C) colleagues(x, Y )) 2 Solution 2: SWRL Express the following SWRL code as a human-readable First Order Logic or Description Logic rule: <rdf:rdf xmlns="http://www.abc.de/company#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w1.org/1000/01/rdf-schema#" xmlns:swrl="http://www.w3.org/2003/11/swrlx#" xmlns:ruleml="http://www.w3.org/2003/11/ruleml" 1

xmlns:org="http://www.abc.de/organization.owl#" xml:base="http://www.abc.de/company"> <ruleml:imp> <ruleml:_rlab ruleml:href="#employsandworksforrule"/> <ruleml:_body> <swrlx:individualpropertyatom swrlx:property="&org;employs"> <ruleml:var>x</ruleml:var> <ruleml:var>y</ruleml:var> </swrlx:individualpropertyatom> </ruleml:_body> <ruleml:_head> <swrlx:individualpropertyatom swrlx:property="&org;worksfor"> <ruleml:var>y</ruleml:var> <ruleml:var>x</ruleml:var> </swrlx:individualpropertyatom> </ruleml:_head> </ruleml:imp> </rdf:rdf> Solution: X. Y.(employs(X, Y ) worksf or(y, X)) 3 Solution 3: RuleML, SWRL 1. How do we express disjunctions in the body e.g. X. Y.(a(X, Y ) b(x, Y ) c(x, Y )) with RuleML/SWRL? Answer: RuleML and SWRL only allow to specify Horn-like rules. Horn rules have at maximum 1 positive element when they are transformed into a disjunctive normal form. Hence, such rules can only be realized by splitting the rules into different rules, i.e.: (a) X. Y.(a(X, Y ) c(x, Y )) (b) X. Y.(b(X, Y ) c(x, Y )) Those different rules are interpreted as OR-connected rules. 2. What are the advantages of SWRL in comparison to RuleML? Rules have semantic meaning. For example, predicates/properties are referenced via URI: org:worksfor (= http://www.abc.de/organization.owl#worksfor). Hence, an application, which knows this resource (org:worksfor) also knows about the meaning of this resource. And an application, which does not know this resource yet, can visit the ontology in which the resource is defined. There it will find statements that (partially) explain the meaning of org:worksfor, i.e.: org:worksfor is an owl:objectproperty rdfs:domain of org:worksfor is foaf:person rdfs:range of org:worksfor is foaf:organization org:worksfor is a sub-property of dc:relation rules can be equipped with an URI re-use of rules (possibly in other documents) is eased It s possible to utilize language constructs of OWL (e.g. owl:cardinality,..). 2

4 Solution 4: Proof and Trust 1. What is the purpose of the Proof layer? provides evidence that a given answer is correct explains how an answer was deduced example: query: Select the type of a resource: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix : <http://abc.de/people#>. SELECT?type WHERE { :daniel rdf:type?type} query: Two answers: (:daniel, rdf:type, foaf:person) (:daniel, rdf:type, foaf:agent) proof: How the answer was derived (this is an informal syntax there exist markup languages for this purpose, e.g. PML or N3 Rules can be used)... (X, rdfs:subclassof, Y) -> (A, rdf:type, X) AND (A, rdf:type, Y) -> (:daniel, rdf:type, foaf:agent) Based on which data was the answer deduced? 2. What is the purpose of the Trust layer? In order to make answers to queries reliable and trustful different aspects have to be considered. For example, signatures can be used in in order to ensure that the party, who sent the answer, is really the entity he/she pretends to be. If a communication partner is not known in advance other approaches has to be used to establish trust. For example, service providers can be certified by organizations, whose purpose is to check if a service provider is trustful. Then, service consumers can define rules for communication, e.g. I only trust you if you can prove that you are certified as trustful by Organization XY. Another approach could be that a service consumer defines rules like I only trust you if you can prove that at least 5 of my friends have already used your service (and thus trust you). ( Chain of trust). 3

No. pol 1 pol 2 pol 3 pol 4 pol 5 pol 6 pol 7 Policy triples (#alice, foaf:phone, Z). deny access to triples (X, foaf:phone, Z) IF (X, foaf:currentproject, #rewerse) AND Requester = RecommenderService. triples (X, foaf:phone, Z) IF Requester is certified by BBB AND (#alice, foaf:knows, X). triples (X, Y, Z) IF Time is the current time AND 09:00 < Time AND Time < 17:00 AND Y = foaf:name AND X!= #tom. triples (#alice, foaf:interest, Z) IF (Z, rdf:type, foaf:document) AND (X, foaf:currentproject, P) AND (Z, foaf:topic, T) AND (P, foaf:theme, T). triples (#alice OnlineEcommerceAccount X) IF Invoker of Requester = Y AND (#alice foaf:knows Y). triples (X Y Z) IF (X rdfs:type foaf:person) AND credential (Requester, C) AND issuer (C, X). Table 1: Example of high-level rules controlling access to RDF statements 4

5 Solution 5: Proof and Trust Design a system that realizes functions of the Proof and Trust layer by using rules! 1 Example: Access Control for RDF stores. Users define their own rules that specify which concrete RDF data is allowed to be accessed by which service/application/... Such rules could look as outlined in Table 1. Their intended meaning is as follows: 1. anyone can receive Alice s phone number 2. the RecommenderService is not allowed to access the phone number(s) of members of the REWERSE project 3. recognized trusted services (which have to provide a suitable credential) are allowed to access the phone number(s) of people Alice knows 4. RDF statements containing name of entities different from Alice s boss Tom can be accessed during work time 5. this policy controls access to Alice s interests. Only interests related to her current project(s) can be accessed 6. a service can only access Alice s online ecommerce account if the service was invoked by a person which is known by Alice 7. only those services are allowed to access information about a person if they can supply the credential of this person The enforcement of these rules could be implemented on top of an RDF store, e.g. by rewriting RDF queries, which are sent to the RDF store, in a way that they respect the rules and hence, only return RDF data that is allowed to be accessed. 1 Just write down the concept of such a system. For example a system, which controls access to RDF data, or a system, which gives proofs for derived answers. 5