Information Systems & Semantic Web University of Koblenz ▪ Landau, Germany Advanced Data Modeling Steffen Staab with Simon Schenk.

Slides:



Advertisements
Similar presentations
Information Systems & Semantic Web University of Koblenz Landau, Germany Advanced Data Modeling Relational Data Model continued Steffen Staab with Simon.
Advertisements

Relational data objects 1 Lecture 6. Relational data objects 2 Answer to last lectures activity.
Limitations of the relational model 1. 2 Overview application areas for which the relational model is inadequate - reasons drawbacks of relational DBMSs.
Information Systems & Semantic Web University of Koblenz Landau, Germany Advanced Data Modeling Steffen Staab with Simon Schenk TexPoint fonts used in.
Ontologies and Databases Ian Horrocks Information Systems Group Oxford University Computing Laboratory.
Lecture 11: Datalog Tuesday, February 6, Outline Datalog syntax Examples Semantics: –Minimal model –Least fixpoint –They are equivalent Naive evaluation.
Logic Programming Automated Reasoning in practice.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Web Science & Technologies University of Koblenz ▪ Landau, Germany Advanced Data Modeling Minimal Models Steffen Staab TexPoint fonts used in EMF. Read.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
CPSC 322, Lecture 19Slide 1 Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt ) February, 23, 2009.
Ontologies and the Semantic Web by Ian Horrocks presented by Thomas Packer 1.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Logic Programming Languages. Objective To introduce the concepts of logic programming and logic programming languages To introduce a brief description.
Relational Data Mining in Finance Haonan Zhang CFWin /04/2003.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Advanced Data Modeling Steffen Staab.
Rutgers University Relational Calculus 198:541 Rutgers University.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
Intro to Discrete Structures
Review “Query Languages” Algebra, Calculus, and SQL.
Knowledge Interchange Format Michael Gruninger National Institute of Standards and Technology
Ontologies Reasoning Components Agents Simulations Belief Update, Planning and the Fluent Calculus Jacques Robin.
Lecture 3 [Self Study] Relational Calculus
1 Introduction to Logic Programming. 2 Human Logic Humans are information processors, We acquire information about the world and use this information.
A Z Approach in Validating ORA-SS Data Models Scott Uk-Jin Lee Jing Sun Gillian Dobbie Yuan Fang Li.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
The Relational Model: Relational Calculus
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Relational Calculus Chapter 4, Section 4.3.
Declarative vs Procedural Programming  Procedural programming requires that – the programmer tell the computer what to do. That is, how to get the output.
Database Management Systems, R. Ramakrishnan1 Relational Calculus Chapter 4.
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
Steffen Staab Advanced Data Modeling 1 of 32 WeST Häufungspunkte Bifurkation: x n+1 = r x n (1-x n ) Startwert x 0 = 0,25.
Pattern-directed inference systems
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
This material was developed by  Dr. Toon Calders and  prof. Dr. Jan Paredaens at University of Technology, Eindhoven. The original document can be accessed.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
CS4026 Formal Models of Computation Part II The Logic Model Lecture 2 – Prolog: History and Introduction.
For Monday Finish chapter 19 No homework. Program 4 Any questions?
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Procedural Semantics Soundness of SLD-Resolution.
For Monday Finish chapter 19 Take-home exam due. Program 4 Any questions?
KR A Principled Framework for Modular Web Rule Bases and its Semantics Anastasia Analyti Institute of Computer Science, FORTH-ICS, Greece Grigoris.
CPSC 322, Lecture 19Slide 1 (finish Planning) Propositional Logic Intro, Syntax Computer Science cpsc322, Lecture 19 (Textbook Chpt – 5.2) Oct,
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
Web Science & Technologies University of Koblenz ▪ Landau, Germany Relational Data Model.
Lecture 7: Foundations of Query Languages Tuesday, January 23, 2001.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models of Definite Programs.
Web Science & Technologies University of Koblenz ▪ Landau, Germany Models in First Order Logics.
Database Management Systems, R. Ramakrishnan1 Relational Calculus Chapter 4, Part B.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
Presented by Kyumars Sheykh Esmaili Description Logics for Data Bases (DLHB,Chapter 16) Semantic Web Seminar.
Of 29 lecture 15: description logic - introduction.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
Information Systems & Semantic Web University of Koblenz ▪ Landau, Germany Advanced Data Modeling Steffen Staab with Simon Schenk TexPoint fonts used in.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
CS589 Principles of DB Systems Spring 2014 Unit 2: Recursive Query Processing Lecture 2-1 – Naïve algorithm for recursive queries Lois Delcambre (slides.
ece 720 intelligent web: ontology and beyond
Lecture 1 – Formal Logic.
Relational Calculus Chapter 4, Part B
February 7th – Exam Review
Lecture 16: Probabilistic Databases
Logic Programming Languages
Some Programming Paradigms
Representations & Reasoning Systems (RRS) (2.2)
Relational Calculus Chapter 4, Part B
Presentation transcript:

Information Systems & Semantic Web University of Koblenz ▪ Landau, Germany Advanced Data Modeling Steffen Staab with Simon Schenk

ISWeb - Information Systems & Semantic Web Steffen Staab Organizational Issues Start of Excercise: Tuesday , 8.15 hrs. Room No lecture on and no excercise on Slides on the web page/Klips. Lecture INSS02 is Part of the „Schwerpunkt“ Data & Knowledge Engineering in the Master‘s Programme of Computer Science Also eligible as Wahl- / Wahlpflicht in the Bachelor/Master

ISWeb - Information Systems & Semantic Web Steffen Staab Examinations Admittance to examination: Present three times in the excerises (Übungen) Exam: Oral exam. Contact the secretary Ms Werger end of June.

ISWeb - Information Systems & Semantic Web Steffen Staab Structure of the lecture. Relational data model;. Deductive data model;. Recursive definitions and their semantics;. Query answering;. Integrity constraints;. Complex values;. Object-oriented and object-relational data model;. Simple deductive object- oriented data model;. Unpredictable.

ISWeb - Information Systems & Semantic Web Steffen Staab

ISWeb - Information Systems & Semantic Web Steffen Staab Deductive Databases  evolved during the 1980s, based on the ideas developed in relational databases and logic programming.  developed with the aim of increasing the expressive power of relational query languages, and in particular in connection with the inability of the latter to express recursive queries.

ISWeb - Information Systems & Semantic Web Steffen Staab

ISWeb - Information Systems & Semantic Web Steffen Staab Query languages  navigational (early DBMS);  declarative (relational DBMS).

ISWeb - Information Systems & Semantic Web Steffen Staab Why logics? Logic tried to solve problems similar to those arising in foundations of databases:  how to formalize the application world (language);  How to express its properties (semantics, model theory);  How to reason about these properties (proof theory).

ISWeb - Information Systems & Semantic Web Steffen Staab Why logics? Logic can handle in a uniform framework  recursive definitions;  integrity constraint;  deduction, induction and abduction;  Models for complex values...

ISWeb - Information Systems & Semantic Web Steffen Staab Informal overview of deductive databases  Extentionally defined relations.  Intentionally defined relations.  Integrity constraints.  Recursion.  Complex values.

ISWeb - Information Systems & Semantic Web Steffen Staab Extensionally defined relations Extensional definition: by explicit enumeration of all tuples in the relation. (”Maier”, ”Mozartstrasse”, 678); … (”Schmidt”, ”Raiffeisenstrasse”, 857); …

ISWeb - Information Systems & Semantic Web Steffen Staab Extensionally defined relation In deductive databases we use the language of first-order logic. and represent this relation by a set of facts: entry(”Maier”, ”Mozartstrasse”, 678); … entry(”Schmidt”, ”Raiffeisenstrasse”, 857); …

ISWeb - Information Systems & Semantic Web Steffen Staab Extensional database The extensional database defines relations by sets of facts, for example hasHighestDegree(”Maier”, BSc); hasHighestDegree(”Schmidt”, MSc); … higherDegree(MSc,BSc); … Analogue of tables in relational databases.

ISWeb - Information Systems & Semantic Web Steffen Staab Intensionally defined relations. Rules Suppose we want to define a relation personWithHigherDegree among persons: Person A has higher degree than person B if the highest degree of A is higher than the highest degree of B.

ISWeb - Information Systems & Semantic Web Steffen Staab Intensionally defined relations. Rules Extensional definition personWithHigherDegree(”Schmidt”,”Maier”). personWithHigherDegree(”Maier”,”Kunz”). … is dangerous (too large, may become inconsist after updates).

ISWeb - Information Systems & Semantic Web Steffen Staab Rephrase For each pair of people A, B, A has higher degree than B if the highest degree of A is DA and the highest degree of B is DB and DA is a higher degree than DB.

ISWeb - Information Systems & Semantic Web Steffen Staab Clause (rule) personWithHigherDegree(A,B) :- % head of the clause hasHighestDegree(A,DA),% body hasHighestDegree(B,DB), % of the higherDegree(DA,DB).% clause

ISWeb - Information Systems & Semantic Web Steffen Staab SQL SELECT D1.person, D2.person FROM hasHighestDegree D1, hasHighestDegree D2, higherDegree WHERE D1.degree = higherDegree.higher AND D2.degree = higherDegree.lower

ISWeb - Information Systems & Semantic Web Steffen Staab Relations The relation personWithHigherDegree holds between objects A, B if the relation hasHighestDegree holds between objects A, DA and the relation asHighestDegree holds between objects B, DB and the relation higherDegree holds between objects RA,RB.

ISWeb - Information Systems & Semantic Web Steffen Staab Variables For all objects A, B, DA, DB the relation personWithHigherDegree holds between objects A, B if the relation hasHighestDegree holds between objects A, DA and the relation asHighestDegree holds between objects B, DB and the relation higherDegree holds between objects RA,RB.

ISWeb - Information Systems & Semantic Web Steffen Staab Constants subordinate(O, president) :- officer(O). Here O is a variable, while president is a constant. How to say this syntactically?  Different conventions: Possibility 1: All variables are explicitly quantified Possibility 2: Variables are implicitly quantified (universally or existentially – needs to be agreed by convention) Sets of variables and constants are defined as such

ISWeb - Information Systems & Semantic Web Steffen Staab Disjunction How to express every human is either a woman or a man? human(A) :- man(A). human(A) :- woman(A).

ISWeb - Information Systems & Semantic Web Steffen Staab Negation How to express that every doctor has the same qualification as Doctor No, with the exception of Doctor No himself. sameAs(A,A) :- Object(A). sameQualification(A,B) :- hasHighestDegree(A, D), hasHighestDegree(B, D), notSameAs(A,B). hasHighestDegree(DrNo, PhD).

ISWeb - Information Systems & Semantic Web Steffen Staab Negation Use negation: sameQualification(A,B) :- hasHighestDegree(A, D), hasHighestDegree(B, D), not SameAs(A,B). Negation is handled used the closed world assumption.

ISWeb - Information Systems & Semantic Web Steffen Staab Goals likes(x, y), not likes(y, x). sameQualification(DrNo, y).

ISWeb - Information Systems & Semantic Web Steffen Staab Recursion connected(StartPoint, EndPoint) :- arc(StartPoint, EndPoint). connected(StartPoint, EndPoint) :- arc(StartPoint, NextPoint), connected(NextPoint, EndPoint).

ISWeb - Information Systems & Semantic Web Steffen Staab Recursion StartPoint and EndPoint are connected if StartPoint and EndPoint are connected by an arc or there exists an intermediate point NextPoint such that StartPoint and NextPoint are connected by an arc and NextPoint and EndPoint are connected.

ISWeb - Information Systems & Semantic Web Steffen Staab Integrity constraints Each class has at least one lecturer:  x (class(x) →  y lecturer(y, x)). Each class has at most one lecturer:  x(class(x) →  y  z(lecturer(y, x)  lecturer(z, x) → y=z).

ISWeb - Information Systems & Semantic Web Steffen Staab Complex values route(StartPoint, EndPoint, [StartPoint, EndPoint]) :- arc(StartPoint, EndPoint). route(StartPoint, EndPoint, [StartPointjRoute]) :- arc(StartPoint, NextPoint), route(NextPoint, EndPoint, Route).

ISWeb - Information Systems & Semantic Web Steffen Staab Problems Combinations of following three features create problems with defining semantics of deductive databases and designing query answering algorithms for them:  Negation;  Recursion;  Complex values. Restrictions may be required on the use of (combinations of) these features.

ISWeb - Information Systems & Semantic Web Steffen Staab