Minimal Deductive Systems for RDF

Similar documents
A note on the history of the document: RDF Formalization, by Draltan Marin

Resource Description Framework (RDF) A basis for knowledge representation on the Web

Annotation algebras for RDFS

nsparql: A Navigational Language for RDF 1

Semantic Web Languages Towards an Institutional Perspective

Extended RDF as a Semantic Foundation of Rule Markup Languages

Approximation and Relaxation of Semantic Web Path Queries

SPARQL Formalization

BGP Query Answering against Dynamic RDF Databases

Query Processing on RDF data

RDF and Logic: Reasoning and Extension

Incomplete Information in RDF

Web Ontology Language (OWL)

I4-DX2 RDF Querying in Xcerpt


Query-Oriented Summarization of RDF Graphs

Flexible Querying for SPARQL

Knowledge Representation and Description Logic Part 3

On the Properties of Metamodeling in OWL

Denotational semantics of linear logic

Non-deterministic Matrices for Semi-canonical Deduction Systems

OWL Semantics COMP Sean Bechhofer Uli Sattler

RDFLog: It s like Datalog for RDF

arxiv:cs/ v1 [cs.db] 26 May 2006

Knowledge Base Exchange: The Case of OWL 2 QL

1. Propositional Calculus

Knowledge Sharing. A conceptualization is a map from the problem domain into the representation. A conceptualization specifies:

Extended RDF: Computability and Complexity Issues

SemaDrift: A Protégé Plugin for Measuring Semantic Drift in Ontologies

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Improved Algorithms for Module Extraction and Atomic Decomposition

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

RAPPORT DE RECHERCHE. On Querying Simple Conceptual Graphs With Negation

Graphical Models for Text Mining: Knowledge Extraction and Performance Estimation

1. Propositional Calculus

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Week 4. COMP62342 Sean Bechhofer, Uli Sattler

Representing and Querying Validity Time in RDF and OWL: A Logic-Based Approach

THE EQUATIONAL THEORIES OF REPRESENTABLE RESIDUATED SEMIGROUPS

07 Practical Application of The Axiomatic Method

Tableau Systems for Logics of Formal Inconsistency

Univalent Foundations and Set Theory

The Curry-Howard Isomorphism

Model-theoretic Semantics

A Minimal Deductive System for General Fuzzy RDF

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

A Survey of Temporal Knowledge Representations

Beyond First-Order Logic

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

On the Complexity of the Reflected Logic of Proofs

A brief introduction to Logic. (slides from

Outline. 1 Background and Aim. 2 Main results (in the paper) 3 More results (not in the paper) 4 Conclusion

Languages. Languages. An Example Grammar. Grammars. Suppose we have an alphabet V. Then we can write:

P, NP, NP-Complete, and NPhard

Propositional and Predicate Logic - V

Finite Automata and Regular Languages (part III)

An Ontology and Concept Lattice Based Inexact Matching Method for Service Discovery

Axiomatizing Conditional Independence and Inclusion Dependencies

Inducing syntactic cut-elimination for indexed nested sequents

Justification logic - a short introduction

02 Propositional Logic

Introduction to Kleene Algebras

Exchanging More than Complete Data

Formal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University

Intensionality, Extensionality, and Proof Irrelevance in Modal Type Theory

Topics in Model-Based Reasoning

Minimal logic for computable functionals

Decidability in the Substructure Ordering of Finite Graphs

CS375 Midterm Exam Solution Set (Fall 2017)

Inverting Proof Systems for Secrecy under OWA

EDA045F: Program Analysis LECTURE 10: TYPES 1. Christoph Reichenbach

Deductive Characterization of Logic

On 3-valued paraconsistent Logic Programming

An Abstract Decision Procedure for a Theory of Inductive Data Types

2.2 Lowenheim-Skolem-Tarski theorems

The Bayesian Ontology Language BEL

Modal Logics. Most applications of modal logic require a refined version of basic modal logic.

Structured Descriptions & Tradeoff Between Expressiveness and Tractability

Combining Decision Procedures

Combined Satisfiability Modulo Parametric Theories

Graph Theory and Modal Logic

A Linear Time Algorithm for Finding Three Edge-Disjoint Paths in Eulerian Networks

Enhancing the Updatability of Projective Views

Denoting computation

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

First-Order Theorem Proving and Vampire

Proseminar on Semantic Theory Fall 2013 Ling 720 Proving the Soundness and Completeness of Propositional Logic: Some Highlights 1

SPARQL Extensions and Outlook

Relational Database Design

Isomorphism of Finitary Inductive Types

A few bridges between operational and denotational semantics of programming languages

NP-Complete Reductions 2

Errata and Remarks for The Semantics and Proof Theory of the Logic of Bunched Implications BI-monograph-errata.

Classical Propositional Logic

First-order resolution for CTL

Where are we? Operations on fuzzy sets (cont.) Fuzzy Logic. Motivation. Crisp and fuzzy sets. Examples

hal , version 1-21 Oct 2009

The Flows of Concepts

Defining a water quality vocabulary using QUDT and ChEBI

3-Valued Abstraction-Refinement

Transcription:

Minimal Deductive Systems for RDF Sergio Muñoz, Jorge Pérez, Claudio Gutierrez Department of Computer Science Universidad de Chile Pontificia Universidad Católica de Chile Center for Web Research http://www.cwr.cl European Semantic Web Conference 2007 S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 1 / 24

RDF Language and Model Theory looks a little bit complicated at first sight... S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 2 / 24

RDF Language and Model Theory looks a little bit complicated at first sight... S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 2 / 24

RDF Language and Model Theory looks a little bit complicated at first sight... S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 2 / 24

RDF Language and Model Theory looks a little bit complicated at first sight... S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 2 / 24

RDF Language and Model Theory looks a little bit complicated at first sight... S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 2 / 24

Several dozens of reserved keywords... rdfs:resource [res] rdf:type [type] rdfs:isdefinedby [isdefined] rdf:property [prop] rdfs:domain [dom] rdfs:comment [comment] rdfs:class [class] rdfs:range [range] rdfs:label [label] rdfs:literal [literal] rdfs:subclassof [sc] rdf:value [value] rdfs:datatype [datatype] rdfs:subpropertyof [] rdf:nil [nil] rdf:xmlliteral [xmllit] rdf:subject [subj] rdf: 1 [ 1] rdfs:container [cont] rdf:predicate [pred] rdf: 2 [ 2] rdf:statement [stat] rdf:object [obj]... rdf:list [list] rdfs:member [member] rdf: i [ i] rdf:alt [alt] rdf:first [first]... rdf:bag [bag] rdf:rest [rest] rdf:seq [seq] rdfs:seealso [seealso] rdfs:containermembershipproperty [contmp] S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 3 / 24

...plus axiomatic triples... (type, type, prop) (subj, type, prop) (pred, type, prop) (obj, type, prop) (first, type, prop) (rest, type, prop) (value, type, prop) ( 1, type, prop) ( 1, type, contmp) ( 2, type, prop) ( 2, type, contmp)... ( i, type, prop) ( i, type, contmp)... (nil, type, prop) (xmllit, type, datatype) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 4 / 24

...plus more axiomatic triples... (type, dom, res) (dom, dom, prop) (range, dom, prop) (, dom, prop) (sc, dom, class) (subj, dom, stat) (pred, dom, stat) (obj, dom, stat) (member, dom, res) (first, dom, list) (rest, dom, list) (seealso, dom, res) (isdefined, dom, res) (comment, dom, res) (label, dom, res) (value, dom, res) ( 1, dom, res) ( 2, dom, res)... ( i, dom, res)... (type, range, class) (dom, range, class) (range, range, class) (, range, prop) (sc, range, class) (subj, range, res) (pred, range, res) (obj, range, res) (member, range, res) (first, range, res) (rest, range, list) (seealso, range, res) (isdefined, range, res) (comment, range, literal) (label, range, literal) (value, range, res) ( 1, range, res) ( 2, range, res)... ( i, range, res)... S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 5 / 24

...plus more axiomatic triples... (alt, sc, cont) (bag, sc, cont) (seq, sc, cont) (contmp, sc, prop) (xmllit, sc, literal) (datatype, sc, class) (isdefined,, seealso) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 6 / 24

...and on top of this a (slightly) non-standard model theory A notion of interpretation (Res, Prop, Class, Lit, PExt, CExt, Int) including subsets of the universe denoting properties, classes and literals, and mapping defining their extensions. Notion of interpretation of blank nodes Definition of reflexivity, transitivity and semi-extensionality of subclass and subproperty Typing restrictions S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 7 / 24

But...we need a workable language to bring to reality the vision of the Semantic Web Would like to: Have a simple user-language to be able to popularize RDF among Web users. Have a simple ecification to allow sound development work. Have a language in streamlined form to make it easy to formalize and prove results about its properties. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 8 / 24

What is to be done?: To simplify the language S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 9 / 24

What is to be done?: To simplify the language There is a minimal fragment of the theory preserving the essential core of RDFS S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 9 / 24

What is to be done?: To simplify the language There is a minimal fragment of the theory preserving the essential core of RDFS Basic idea: Separate user-language from features and constructors which define and ecificy the language. Concentrate in vocabulary with non-trivial semantics. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 9 / 24

Main contributions & Outline Identify a fragment of RDFS that covers the crucial vocabulary and preserves the original RDFS semantics. Study dependencies among vocabulary and develop sound and complete proof systems for each fragment. Present algorithms to modularize reasoning according to relevant vocabulary. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 10 / 24

Main contributions & Outline Identify a fragment of RDFS that covers the crucial vocabulary and preserves the original RDFS semantics. Study dependencies among vocabulary and develop sound and complete proof systems for each fragment. Present algorithms to modularize reasoning according to relevant vocabulary. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 10 / 24

Main contributions & Outline Identify a fragment of RDFS that covers the crucial vocabulary and preserves the original RDFS semantics. Study dependencies among vocabulary and develop sound and complete proof systems for each fragment. Present algorithms to modularize reasoning according to relevant vocabulary. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 10 / 24

The core vocabulary rdfs:resource [res] rdf:type [type] rdfs:isdefinedby [isdefined] rdf:property [prop] rdfs:domain [dom] rdfs:comment [comment] rdfs:class [class] rdfs:range [range] rdfs:label [label] rdfs:literal [literal] rdfs:subclassof [sc] rdf:value [value] rdfs:datatype [datatype] rdfs:subpropertyof [] rdf:nil [nil] rdf:xmlliteral [xmllit] rdf:subject [subj] rdf: 1 [ 1] rdfs:container [cont] rdf:predicate [pred] rdf: 2 [ 2] rdf:statement [stat] rdf:object [obj]... rdf:list [list] rdfs:member [member] rdf: i [ i] rdf:alt [alt] rdf:first [first]... rdf:bag [bag] rdf:rest [rest] rdf:seq [seq] rdfs:seealso [seealso] rdfs:containermembershipproperty [contmp] S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 11 / 24

The core vocabulary rdfs:resource [res] rdf:type [type] rdfs:isdefinedby [isdefined] rdf:property [prop] rdfs:domain [dom] rdfs:comment [comment] rdfs:class [class] rdfs:range [range] rdfs:label [label] rdfs:literal [literal] rdfs:subclassof [sc] rdf:value [value] rdfs:datatype [datatype] rdfs:subpropertyof [] rdf:nil [nil] rdf:xmlliteral [xmllit] rdf:subject [subj] rdf: 1 [ 1] rdfs:container [cont] rdf:predicate [pred] rdf: 2 [ 2] rdf:statement [stat] rdf:object [obj]... rdf:list [list] rdfs:member [member] rdf: i [ i] rdf:alt [alt] rdf:first [first]... rdf:bag [bag] rdf:rest [rest] rdf:seq [seq] rdfs:seealso [seealso] rdfs:containermembershipproperty [contmp] S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 11 / 24

The core vocabulary rdfs:resource [res] rdf:type [type] rdfs:isdefinedby [isdefined] rdf:property [prop] rdfs:domain [dom] rdfs:comment [comment] rdfs:class [class] rdfs:range [range] rdfs:label [label] rdfs:literal [literal] rdfs:subclassof [sc] rdf:value [value] rdfs:datatype [datatype] rdfs:subpropertyof [] rdf:nil [nil] rdf:xmlliteral [xmllit] rdf:subject [subj] rdf: 1 [ 1] rdfs:container [cont] rdf:predicate [pred] rdf: 2 [ 2] rdf:statement [stat] rdf:object [obj]... rdf:list [list] rdfs:member [member] rdf: i [ i] rdf:alt [alt] rdf:first [first]... rdf:bag [bag] rdf:rest [rest] rdf:seq [seq] rdfs:seealso [seealso] rdfs:containermembershipproperty [contmp] ρdf = {,sc,type,dom,range} S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 11 / 24

Blank node rule G H if there is a homomorphism µ : H G S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 12 / 24

Core rules Subproperty (transitivity, definition) (A,,B) (B,,C) (A,,C) (A,,B) (X,A,Y) (X,B,Y) Subclass (transitivity, definition) (A,sc,B) (B,sc,C) (A,sc,C) (A,sc,B) (X,type,A) (X,type,B) Typing (domain, range) (A,dom,B) (X,A,Y) (X,type,B) (A,range,B) (X,A,Y) (Y,type,B) Implicit Typing (strange case...) (A,dom,B) (C,,A) (X,C,Y) (X,type,B) (A,range,B) (C,,A) (X,C,Y) (Y,type,B) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 13 / 24

Core rules Subproperty (transitivity, definition) (A,,B) (B,,C) (A,,C) (A,,B) (X,A,Y) (X,B,Y) Subclass (transitivity, definition) (A,sc,B) (B,sc,C) (A,sc,C) (A,sc,B) (X,type,A) (X,type,B) Typing (domain, range) (A,dom,B) (X,A,Y) (X,type,B) (A,range,B) (X,A,Y) (Y,type,B) Implicit Typing (strange case...) (A,dom,B) (C,,A) (X,C,Y) (X,type,B) (A,range,B) (C,,A) (X,C,Y) (Y,type,B) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 13 / 24

Core rules Subproperty (transitivity, definition) (A,,B) (B,,C) (A,,C) (A,,B) (X,A,Y) (X,B,Y) Subclass (transitivity, definition) (A,sc,B) (B,sc,C) (A,sc,C) (A,sc,B) (X,type,A) (X,type,B) Typing (domain, range) (A,dom,B) (X,A,Y) (X,type,B) (A,range,B) (X,A,Y) (Y,type,B) Implicit Typing (strange case...) (A,dom,B) (C,,A) (X,C,Y) (X,type,B) (A,range,B) (C,,A) (X,C,Y) (Y,type,B) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 13 / 24

Core rules Subproperty (transitivity, definition) (A,,B) (B,,C) (A,,C) (A,,B) (X,A,Y) (X,B,Y) Subclass (transitivity, definition) (A,sc,B) (B,sc,C) (A,sc,C) (A,sc,B) (X,type,A) (X,type,B) Typing (domain, range) (A,dom,B) (X,A,Y) (X,type,B) (A,range,B) (X,A,Y) (Y,type,B) Implicit Typing (strange case...) (A,dom,B) (C,,A) (X,C,Y) (X,type,B) (A,range,B) (C,,A) (X,C,Y) (Y,type,B) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 13 / 24

Core rules Subproperty (transitivity, definition) (A,,B) (B,,C) (A,,C) (A,,B) (X,A,Y) (X,B,Y) Subclass (transitivity, definition) (A,sc,B) (B,sc,C) (A,sc,C) (A,sc,B) (X,type,A) (X,type,B) Typing (domain, range) (A,dom,B) (X,A,Y) (X,type,B) (A,range,B) (X,A,Y) (Y,type,B) Implicit Typing (strange case...) (A,dom,B) (C,,A) (X,C,Y) (X,type,B) (A,range,B) (C,,A) (X,C,Y) (Y,type,B) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 13 / 24

Reflexivity rules If (A, type, Property) then (A,, A) Subproperty Reflexivity (X,A,Y) (A,,A) (A,,B) (A,,A) (B,,B) (p,,p) (A,dom,X) (A,,A) for p ρdf (A,range,X) (A,,A) Subclass Reflexivity (A,sc,B) (A,sc,A) (B,sc,B) (X,dom,A) (A,sc,A) (X,range,A) (A,sc,A) (X,type,A) (A,sc,A) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 14 / 24

Reflexivity rules If (A, type, Property) then (A,, A) Subproperty Reflexivity (X,A,Y) (A,,A) (A,,B) (A,,A) (B,,B) (p,,p) (A,dom,X) (A,,A) for p ρdf (A,range,X) (A,,A) Subclass Reflexivity (A,sc,B) (A,sc,A) (B,sc,B) (X,dom,A) (A,sc,A) (X,range,A) (A,sc,A) (X,type,A) (A,sc,A) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 14 / 24

Soundness and Completeness Let = denote the standard RDFS entailment, and ρdf a proof system based on the rules presented. Theorem Let G and H be graphs in ρdf then G = H if and only if G ρdf H. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 15 / 24

Blank Nodes Modularization Blank nodes can be treated in an orthogonal form to ρdf vocabulary. Theorem Let G and H be graphs in ρdf and G = H, then there is a proof of H from G where the blank rule is used at most once and at the end. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 16 / 24

The role of reflexivity The only consequence of reflexivity of and sc in RDFS is the possible entailment of triples of the form (x,,x),(x,sc,x). Theorem Let G and H be ρdf graphs. Assume that H does not contain triples of the form (x,,x) and (x,sc,x). Then, G ρdf H without using reflexivity rules. (Also, by not imposing reflexivity, axiomatic triples can be completely avoided.) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 17 / 24

Dependence diagram among ρdf vocabulary type V 0 sc dom range To determine G = H it is enough to test G = H where G is the subgraph of G which involves only nodes in voc(h) and their dependencies in the diagram. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 18 / 24

It is possible to avoid the closure to test RDFS entailment A naive approach to test G = H is: (pre-)compute the closure of G check if H is contained in the closure of G. Theorem The size of the closure of G is O( G 2 ), and this bound is tight. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 19 / 24

It is possible to avoid the closure to test RDFS entailment A naive approach to test G = H is: (pre-)compute the closure of G check if H is contained in the closure of G. Theorem The size of the closure of G is O( G 2 ), and this bound is tight. Alternative: to use a goal oriented approach based on the dependencies diagram. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 19 / 24

Goal oriented entailment algorithm Does the graph entails (x,d,y)? Look for triples of the form (x,a,y) and -paths from a to d. x a b c d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 20 / 24

Goal oriented entailment algorithm Does the graph entails (x,d,y)? Look for triples of the form (x,a,y) and -paths from a to d. x a b c d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 20 / 24

Goal oriented entailment algorithm Does the graph entails (x,d,y)? Look for triples of the form (x,a,y) and -paths from a to d. x a b c d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 20 / 24

Goal oriented entailment algorithm Does the graph entails (x,d,y)? Look for triples of the form (x,a,y) and -paths from a to d. x a b c d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 20 / 24

Goal oriented entailment algorithm Does the graph entails (x,d,y)? Look for triples of the form (x,a,y) and -paths from a to d. x a b c d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 20 / 24

Goal oriented entailment algorithm Does the graph entails (x,d,y)? Look for triples of the form (x,a,y) and -paths from a to d. x a b c d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 20 / 24

Goal oriented entailment algorithm Does the graph entails (x,d,y)? Look for triples of the form (x,a,y) and -paths from a to d. x a b c d y x a y b e c d S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 20 / 24

Goal oriented entailment algorithm Does the graph entails (x,d,y)? Look for triples of the form (x,a,y) and -paths from a to d. x a b c d y x a y b e c d S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 20 / 24

Goal oriented entailment algorithm Does the graph entails (x,d,y)? Look for triples of the form (x,a,y) and -paths from a to d. x a b c d y x a y b e c d S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 20 / 24

Goal oriented entailment algorithm Let G = {...,(x,p,z),(p,,q),(q,,r),(r,,s),(s,dom,c), (c,sc,d),(d,sc,y),... } Does the graph entails (x,type,y)? x z p q r s dom sc c sc d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 21 / 24

Goal oriented entailment algorithm Let G = {...,(x,p,z),(p,,q),(q,,r),(r,,s),(s,dom,c), (c,sc,d),(d,sc,y),... } Does the graph entails (x,type,y)? x z p q r s dom sc c sc d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 21 / 24

Goal oriented entailment algorithm Let G = {...,(x,p,z),(p,,q),(q,,r),(r,,s),(s,dom,c), (c,sc,d),(d,sc,y),... } Does the graph entails (x,type,y)? x z p q r s dom sc c sc d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 21 / 24

Goal oriented entailment algorithm Let G = {...,(x,p,z),(p,,q),(q,,r),(r,,s),(s,dom,c), (c,sc,d),(d,sc,y),... } Does the graph entails (x,type,y)? x z p q r s dom sc c sc d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 21 / 24

Goal oriented entailment algorithm Let G = {...,(x,p,z),(p,,q),(q,,r),(r,,s),(s,dom,c), (c,sc,d),(d,sc,y),... } Does the graph entails (x,type,y)? x z p q r s dom sc c sc d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 21 / 24

Goal oriented entailment algorithm Let G = {...,(x,p,z),(p,,q),(q,,r),(r,,s),(s,dom,c), (c,sc,d),(d,sc,y),... } Does the graph entails (x,type,y)? x z p q r s dom sc c sc d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 21 / 24

Goal oriented entailment algorithm Let G = {...,(x,p,z),(p,,q),(q,,r),(r,,s),(s,dom,c), (c,sc,d),(d,sc,y),... } Does the graph entails (x,type,y)? x z p q r s dom sc c sc d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 21 / 24

Goal oriented entailment algorithm Let G = {...,(x,p,z),(p,,q),(q,,r),(r,,s),(s,dom,c), (c,sc,d),(d,sc,y),... } Does the graph entails (x,type,y)? x z p q r s dom sc c sc d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 21 / 24

Goal oriented entailment algorithm Let G = {...,(x,p,z),(p,,q),(q,,r),(r,,s),(s,dom,c), (c,sc,d),(d,sc,y),... } Does the graph entails (x,type,y)? x z p q r s dom sc c sc d y S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 21 / 24

Entailment can be done in O(n logn) time Theorem The goal oriented algorithm takes O( G log G ) time in testing the entailment G = t. Correctness follows by the dependencies diagram. Essentially time G log G in constructing the necessary graph data-structures. Time G in traversing these data-structures. There is no more efficient approach to test G = t! S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 22 / 24

Entailment can be done in O(n logn) time Theorem The goal oriented algorithm takes O( G log G ) time in testing the entailment G = t. Correctness follows by the dependencies diagram. Essentially time G log G in constructing the necessary graph data-structures. Time G in traversing these data-structures. There is no more efficient approach to test G = t! S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 22 / 24

The O(n log n) bound is tight. Theorem Testing G = t takes time Ω( G log G ). Idea: Coding the set-disjointness problem, which is Ω(n log n) S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 23 / 24

Conclusions Core fragment of RDFS well-behaved, representative, and simple. S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 24 / 24

Conclusions Core fragment of RDFS well-behaved, representative, and simple. Efficient algorithm to check entailment S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 24 / 24

Conclusions Core fragment of RDFS well-behaved, representative, and simple. Efficient algorithm to check entailment Suggestions Add missing rules Eliminate reflexivity Treat bnodes orthogonal to rest S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 24 / 24

Conclusions Core fragment of RDFS well-behaved, representative, and simple. Efficient algorithm to check entailment Suggestions Add missing rules Eliminate reflexivity Treat bnodes orthogonal to rest Next: Navigational language based on testing algorithm S. Muñoz, J. Pérez, C. Gutierrez Minimal Deductive Systems for RDF 24 / 24