Annotation algebras for RDFS

Similar documents
Minimal Deductive Systems for RDF

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

Provenance Semirings. Todd Green Grigoris Karvounarakis Val Tannen. presented by Clemens Ley

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

Approximation and Relaxation of Semantic Web Path Queries

03 Review of First-Order Logic

nsparql: A Navigational Language for RDF 1

Extended RDF as a Semantic Foundation of Rule Markup Languages

Fuzzy Answer Set semantics for Residuated Logic programs

Flexible Querying for SPARQL

Query Processing on RDF data

Incomplete Information in RDF

RDFLog: It s like Datalog for RDF

Peter Wood. Department of Computer Science and Information Systems Birkbeck, University of London Automata and Formal Languages

Kleene Algebra and Arden s Theorem. Anshul Kumar Inzemamul Haque

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

Provenance for Aggregate Queries

BGP Query Answering against Dynamic RDF Databases

Knowledge Representation and Description Logic Part 3

12 Algebraic Structure and Coding Theory

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

Semantic Web Languages Towards an Institutional Perspective

12 Algebraic Structure and Coding Theory

RDF and Logic: Reasoning and Extension

Provenance Semirings

Image schemas via finite-state methods structured category-theoretically

A Minimal Deductive System for General Fuzzy RDF

SPARQL Formalization

A Weak Bisimulation for Weighted Automata

Answering Ontological Ranking Queries Based on Subjective Reports

Tuple Relational Calculus

APPLICATION OF ONTOLOGIES AND SEMANTIC WEB FOR FACILITATION OF ECOLOGY

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

Compositions of Tree Series Transformations

Universität Augsburg

Database Design and Implementation

Extended Index. 89f depth (of a prime ideal) 121f Artin-Rees Lemma. 107f descending chain condition 74f Artinian module

Data Cleaning and Query Answering with Matching Dependencies and Matching Functions

Unit I (Logic and Proofs)

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

What is (certain) Spatio-Temporal Data?

Unification of terms and language expansions

Applied Logics - A Review and Some New Results

Querying for Provenance, Trust, Uncertainty and other Meta Knowledge in RDF 1

Designing a Query Language for RDF: Marrying Open and Closed Worlds

PUG: A Framework and Practical Implementation for Why & Why-Not Provenance (extended version)

Extended RDF: Computability and Complexity Issues

Preuves de logique linéaire sur machine, ENS-Lyon, Dec. 18, 2018

Introduction to Kleene Algebras

RAPPORT DE RECHERCHE. On Querying Simple Conceptual Graphs With Negation

Query-Oriented Summarization of RDF Graphs

A Survey of Temporal Knowledge Representations

Semantics and Inference for Probabilistic Ontologies

Queries and Materialized Views on Probabilistic Databases

Semirings for Breakfast

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

An Overview of Residuated Kleene Algebras and Lattices Peter Jipsen Chapman University, California. 2. Background: Semirings and Kleene algebras

Logic and Reasoning in the Semantic Web (part II OWL)

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang

Path Queries under Distortions: Answering and Containment

Data Cleaning and Query Answering with Matching Dependencies and Matching Functions

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

Extension theorems for homomorphisms

Algebraic Proof Systems

Displacement Logic for Grammar

A Dichotomy. in in Probabilistic Databases. Joint work with Robert Fink. for Non-Repeating Queries with Negation Queries with Negation

Provenance-Based Analysis of Data-Centric Processes

UnSAID: Uncertainty and Structure in the Access to Intensional Data

Relational Algebra by Way of Adjunctions. Jeremy Gibbons (joint work with Fritz Henglein, Ralf Hinze, Nicolas Wu) DBPL, October 2015

A Worst-Case Optimal Multi-Round Algorithm for Parallel Computation of Conjunctive Queries

From Monadic Second-Order Definable String Transformations to Transducers

On Factorisation of Provenance Polynomials

SPARQL Query Containment under RDFS Entailment Regime

Compositions of Bottom-Up Tree Series Transformations

Skills Practice Skills Practice for Lesson 10.1

An Overview of A Formal Framework For Managing Mathematics

The Complexity of Computing the Behaviour of Lattice Automata on Infinite Trees

Quick course in Universal Algebra and Tame Congruence Theory

Functional Many-valued Logic and Global Predicate Compression

High-order consistency in valued constraint satisfaction

Equational Logic. Chapter Syntax Terms and Term Algebras

REPRESENTATION THEOREMS FOR IMPLICATION STRUCTURES

Fully Lexicalized Pregroup Grammars

GeomRDF : A Geodata Converter with a Fine-Grained Structured Representation of Geometry in the Web

Towards an Effective Calculus for Object Query Languages. The Gap between Theory & Practice

Recent Developments in and Around Coaglgebraic Logics

On the Minimum Many-Valued Modal Logic over a Finite Residuated Lattice

Grounding Formulas with Complex Terms

An Entailment Checker for Separation Logic with Inductive Definitions

On Incomplete XML Documents with Integrity Constraints

Solving fixed-point equations over semirings

Lecture 8: The Field B dr

Algebraic Model Counting

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Cylindrical Algebraic Decomposition in Coq

Axioms of Kleene Algebra

States of free product algebras

Query Answering in DL-Lite with Datatypes: A Non-Uniform Approach

Graphical Models for Text Mining: Knowledge Extraction and Performance Estimation

Propositional Logic: Logical Agents (Part I)

Transcription:

University of Edinburgh Semantic Web in Provenance Management, 2010

RDF definition U a set of RDF URI references (s, p, o) U U U an RDF triple s subject p predicate o object A finite set of triples an RDF graph

RDFS vocabulary RDF Schema a vocabulary of URI s with special semantics: rdfs:resource, rdfs:class, rdfs:literal, rdfs:subclassof, rdfs:subpropertyof, rdfs:domain, rdfs:range, rdf:, rdf:list,... ρdf [S. Muñoz, et al.] a fragment of RDFS vocabulary: sc, sp, dom, range,

RDFS vocabulary RDF Schema a vocabulary of URI s with special semantics: rdfs:resource, rdfs:class, rdfs:literal, rdfs:subclassof, rdfs:subpropertyof, rdfs:domain, rdfs:range, rdf:, rdf:list,... ρdf [S. Muñoz, et al.] a fragment of RDFS vocabulary: sc, sp, dom, range,

RDFS deductive system Sub-class: (A, sc, B) (B, sc, C) ; (A, sc, C) Sub-property: (A, sp, B) (B, sp, C) ; (A, sp, C) Typing: (X, A, Y) (A, dom, B) ; (X,, B) (X,, A) (A, sc, B). (X,, B) (X, A, Y) (A, sp, B). (X, B, Y) (X, A, Y) (A, range, B). (Y,, B)

Example of RDF graph {(Picasso, Paints, Guernica), (Picasso,, Cubist), (Paints, dom, Painter), (Cubist, sc, Painter) } (Picasso,, Painter)} Cubist sc Painter dom Picasso Paints Guernica

Example of RDF graph {(Picasso, Paints, Guernica), (Picasso,, Cubist), (Paints, dom, Painter), (Cubist, sc, Painter), } (Picasso,, Painter)} Cubist sc Painter dom Picasso Paints Guernica

Annotations for RDF Named graphs [J. Caroll, et al.] trust annotations, Temporal RDF [C. Gutierrez, et al.] temporal annotations, Colored RDF [G. Flouris, et al.] provenance annotations, Fuzzy RDF [U. Straccia] probabilistic annotations. In all of these works the fourth column introduced to store an annotation information about an RDF triple: (s, p, o) : v Last two of them introduce approaches how annotations pass through the RDFS inference rules.

Annotations for RDF Named graphs [J. Caroll, et al.] trust annotations, Temporal RDF [C. Gutierrez, et al.] temporal annotations, Colored RDF [G. Flouris, et al.] provenance annotations, Fuzzy RDF [U. Straccia] probabilistic annotations. In all of these works the fourth column introduced to store an annotation information about an RDF triple: (s, p, o) : v Last two of them introduce approaches how annotations pass through the RDFS inference rules.

Examples of annotated RDF graphs Cubist sc Painter dom Picasso Paints Guernica ({1908 1919} {1906 1921}) ({1937} { 29, 000 Now}) = {1908 1919, 1937} max(0.8 0.4, 0.3 1) = 0.32

Examples of annotated RDF graphs Cubist sc : [1906-1921] Painter : [1908-1919] : [1908-1919, 1937] dom : [-29,000-Now] Picasso Paints : [1937] Guernica ({1908 1919} {1906 1921}) ({1937} { 29, 000 Now}) = {1908 1919, 1937} max(0.8 0.4, 0.3 1) = 0.32

Examples of annotated RDF graphs sc Cubist Painter : 0.4 : 0.8 : 0.32 dom : 1 Picasso Paints : 0.3 Guernica ({1908 1919} {1906 1921}) ({1937} { 29, 000 Now}) = {1908 1919, 1937} max(0.8 0.4, 0.3 1) = 0.32

Questions of this work What is similar in this examples? U. Straccia: Residuated Lattice What are the requirements for an annotation domain to be compatible with RDFS inference rules? Can we build the universal annotation domain such that any annotation can be obtained from it via a homomorphism?

Questions of this work What is similar in this examples? U. Straccia: Residuated Lattice What are the requirements for an annotation domain to be compatible with RDFS inference rules? Can we build the universal annotation domain such that any annotation can be obtained from it via a homomorphism?

Questions of this work What is similar in this examples? U. Straccia: Residuated Lattice What are the requirements for an annotation domain to be compatible with RDFS inference rules? Can we build the universal annotation domain such that any annotation can be obtained from it via a homomorphism?

Questions of this work What is similar in this examples? U. Straccia: Residuated Lattice What are the requirements for an annotation domain to be compatible with RDFS inference rules? Can we build the universal annotation domain such that any annotation can be obtained from it via a homomorphism?

Connection to relational databases Similar questions for relational databases world: What are the requirements for an annotation domain to be compatible with positive relational algebra queries? What is the universal annotation domain such that any annotation can be obtained from it via a homomorphism? How-provenance [T. J. Green, G. Karvounarakis, V. Tannen]: annotation domain commutative semi-ring universal (free) structure semi-ring of positive polynomials over N

Connection to relational databases Similar questions for relational databases world: What are the requirements for an annotation domain to be compatible with positive relational algebra queries? What is the universal annotation domain such that any annotation can be obtained from it via a homomorphism? How-provenance [T. J. Green, G. Karvounarakis, V. Tannen]: annotation domain commutative semi-ring universal (free) structure semi-ring of positive polynomials over N

Annotated RDFS deductive system Sub-class: (A, sc, B) : v 1 (B, sc, C) : v 2 (A, sc, C) : v 1 v 2 ; (X,, A) : v 1 (A, sc, B) : v 2 (X,, B) : v 1 v 2. Sub-property: (A, sp, B) : v 1 (B, sp, C) : v 2 (A, sp, C) : v 1 v 2 ; (X, A, Y) : v 1 (A, sp, B) : v 2 (X, B, Y) : v 1 v 2. Typing: (X, A, Y) : v 1 (A, dom, B) : v 2 (X,, B) : v 1 v 2 ; (X, A, Y) : v 1(A, range, B) : v 2 (Y,, B) : v 1 v 2. Generalisation: (X, A, Y) : v 1 (X, A, Y) : v 2 (X, A, Y) : v 1 v 2.

Annotated RDFS deductive system Sub-class: (A, sc, B) : v 1 (B, sc, C) : v 2 (A, sc, C) : v 1 v 2 ; (X,, A) : v 1 (A, sc, B) : v 2 (X,, B) : v 1 v 2. Sub-property: (A, sp, B) : v 1 (B, sp, C) : v 2 (A, sp, C) : v 1 v 2 ; (X, A, Y) : v 1 (A, sp, B) : v 2 (X, B, Y) : v 1 v 2. Typing: (X, A, Y) : v 1 (A, dom, B) : v 2 (X,, B) : v 1 v 2 ; (X, A, Y) : v 1(A, range, B) : v 2 (Y,, B) : v 1 v 2. Generalisation: (X, A, Y) : v 1 (X, A, Y) : v 2 (X, A, Y) : v 1 v 2.

Annotated RDFS deductive system Sub-class: (A, sc, B) : v 1 (B, sc, C) : v 2 (A, sc, C) : v 1 v 2 ; (X,, A) : v 1 (A, sc, B) : v 2 (X,, B) : v 1 v 2. Sub-property: (A, sp, B) : v 1 (B, sp, C) : v 2 (A, sp, C) : v 1 v 2 ; (X, A, Y) : v 1 (A, sp, B) : v 2 (X, B, Y) : v 1 v 2. Typing: (X, A, Y) : v 1 (A, dom, B) : v 2 (X,, B) : v 1 v 2 ; (X, A, Y) : v 1(A, range, B) : v 2 (Y,, B) : v 1 v 2. Generalisation: (X, A, Y) : v 1 (X, A, Y) : v 2 (X, A, Y) : v 1 v 2.

Properties of annotation algebras (A, sc, B) : v 1 (B, sc, C) : v 2 (A, sc, C) : v 1 v 2 (Sub-class transitivity) = associativity of, (X, A, Y) : v 1 (X, A, Y) : v 2 (X, A, Y) : v 1 v 2 (Generalisation) = associativity and commutativity of,...

Dioids K = K,,,, is a dioid iff it is an idempotent semi-ring: semi-lattice by : (a b) c = a (b c), a b = b a, a = a, a a = a; monoid by : (a b) c = a (b c), a = a = a; distributivity over : a (b c) = (a b) (a c), (b c) a = (b a) (c a); -annihilation of : a = = a. A dioid is a -dioid iff: -annihilation of : a =.

Dioids K = K,,,, is a dioid iff it is an idempotent semi-ring: semi-lattice by : (a b) c = a (b c), a b = b a, a = a, a a = a; monoid by : (a b) c = a (b c), a = a = a; distributivity over : a (b c) = (a b) (a c), (b c) a = (b a) (c a); -annihilation of : a = = a. A dioid is a -dioid iff: -annihilation of : a =.

String dioids Σ an alphabet. Subsequence ordering u u on words in Σ : u = u 1 u 2... u n u = u 1 w 1 u 2 w 2... w n 1 u n. A finite set m Σ is an antichain if for all its elements are noncomparable. M[Σ] set of antichains. min(m) the set of minimal elements (w.r.t. ) of m. On M[Σ] are defined: m 1 + m 2 = min(m 1 m 2 ), m 1 m 2 = min({w 1 w 2 w 1 m 1, w 2 m 2 }). M[Σ] = M[Σ], +,,, {ɛ} string dioid over Σ.

Free -dioids Theorem Given a set of generators Σ the string dioid M[Σ] = M[Σ], +,,, {ɛ} is the free -dioid on Σ. That means, that for any -dioid K f = K,,,, and a valuation φ : Σ K there exists a unique homomorphism Eval φ : M[Σ] K such that for each a Σ holds Eval φ (a) = φ(a).

Application of string annotations Cubist sc Painter dom Picasso Paints Guernica

Application of string annotations Cubist sc : b Painter : a dom : d Picasso Paints : c Guernica Σ = {a, b, c, d}

Application of string annotations Cubist sc : b Painter : a : a b + c d dom : d Picasso Paints : c Guernica Σ = {a, b, c, d}

Application of string annotations Cubist sc : b : [1906-1921] Painter : a : [1908-1919] Picasso : a b + c d Paints : c : [1937] dom : d : [-29,000-Now] Guernica φ T : φ T (a) = [1908 1919], φ T (b) = [1906 1921], φ T (c) = [1937], φ T (d) = [ 29, 000 Now]

Application of string annotations Cubist sc : b : [1906-1921] Painter : a : [1908-1919] Picasso : a b + c d Paints : c : [1937] dom : d : [1908-1919, 1937] : [-29,000-Now] Guernica φ T : φ T (a) = [1908 1919], φ T (b) = [1906 1921], φ T (c) = [1937], φ T (d) = [ 29, 000 Now] Eval φt (a b + c d) = [1908 1919, 1937]

Application of string annotations sc Cubist : b : 0.4 Painter : a : 0.8 Picasso : a b + c d Paints : c : 0.3 dom : d : 1 Guernica φ P : φ P (a) = 0.8, φ P (b) = 0.4, φ P (c) = 0.3, φ P (d) = 1

Application of string annotations sc Cubist : b : 0.4 Painter : a : a b + c d : 0.8 : 0.32 Paints Picasso : c : 0.3 dom : d : 1 Guernica φ P : φ P (a) = 0.8, φ P (b) = 0.4, φ P (c) = 0.3, φ P (d) = 1 Eval φp (a b + c d) = 0.32

Discussion In both of the examples the instantiations of is commutative. In the work from relational databases world we are inspired of [T. J. Green, et al.] the product is also commutative. In our work the product in not commutative. Why? There is no evidence in the deductive system that it should be commutative. We do not say that it must be non-commutative, but may be non-commutative. In the paper we present an example of a form of default reasoning where we appear to need a non-commutative product.

Discussion In both of the examples the instantiations of is commutative. In the work from relational databases world we are inspired of [T. J. Green, et al.] the product is also commutative. In our work the product in not commutative. Why? There is no evidence in the deductive system that it should be commutative. We do not say that it must be non-commutative, but may be non-commutative. In the paper we present an example of a form of default reasoning where we appear to need a non-commutative product.

Thank You

Default RDFS... sc: Plantae sc: Linnaeus Pinophyta sc:... sc: Araucariaceae sc: sc: Noble Noble... Linnaeus... = = Noble Araucaria Wollemia sc: sc: A. araucana W. nobilis

Default RDFS... sc: Plantae sc: Linnaeus Pinophyta sc:... sc: Araucariaceae sc: sc: Noble Noble... Linnaeus... = = Noble Araucaria Wollemia sc: sc: A. araucana W. nobilis