SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
Integration of Active and Deductive Database Rules
Bertram Lud
ascher
Institut f
ur Informatik, Universit
at Freiburg

Ubersicht
 Motivation; Spektrum von Regelsprachen: Aktive Regeln|Produktionsregeln|Deduktive Regeln
 Statelog
 Terminierung
 Normalformen ) Ausdrucksst
arke, Komplexit
at
 Vergleich
 Zusammenfassung
Motivation 1
Spektrum von Datenbank-Regelsprachen [Widom93]:
Deduktive Regeln Produktionsregeln Aktive Regeln
deklarativ prozedural
S-Datalog
WF-Datalog : : : : : :
RDL
I-/P-Datalog : : : : : : A-RDL: : : : : : Ariel : : : : : : Starburst : : : : : : Postgres
Ziel:
Deduktive Regeln
deklarative Semantik
nur Anfragen
Produktions-/Aktive Regeln
prozedurale Semantik
Anfragen  
Anderungen
Statelog-Regeln
deklarative, zustands-orientierte Semantik
Anfragen  
Anderungen
Aktive Regeln 2
Aktives Datenbanksystem:
External Events DBMS
ECA Rules
External Actions
DB
Conditions Internal Actions
Internal Events
ECA-Regeln:
ON hEventi IF hConditioni THEN hActioni
 automatische 
Anderungen (updates)
 vielseitig einsetzbar (integrity maintenance, monitoring, ...)
komplexe, prozedurale Semantik (Kopplungsmodi, Kon iktau 
osung, ...)
formale Eigenschaften kaum untersucht; Terminierung, Kon uenz
Produktionsregeln 3
Produktionsregeln:
IF hConditioni THEN hActioni
Z.B. P-Datalog (nicht-in ation
ares Datalog):
hActioni hConditioni
del:emp(E,S,D) del:emp(E,S,D)
del:dept mgr(D,E), del:emp(E1,Sal1,D)
del:emp(E, , ), dept mgr(D,E), emp(E1,Sal1,D)
 automatische 
Anderungen ausdr
uckbar
 klare Fixpunkt-Semantik
 formale Eigenschaften (Ausdrucksst
arke, Komplexit
at, Terminierung) genau untersucht [AV]
 einfacher als aktive Regeln
Negationsbehandlung (:tc) ) keine deklarative Semantik
Deduktive Regeln 4
Deduktive Regeln:
IF hPremisei THEN hConclusioni
Z.B. WF-Datalog (wohlfundiertes Datalog):
tc(X,Y) e(X,Y).
tc(X,Y) tc(X,Z),tc(Z,Y).
non-tc(X,Y) :tc(X,Y).
win(X) move(X,Y), :win(Y).
 intuitive, deklarative Semantik (Prinzipien: MIN, SUPP, TAUT,... ), insbesondere f
ur Negation
 formale Eigenschaften bekannt

Anderungsoperationen nicht direkt unterst
utzt
Statelog = States + Datalog 5
Grundidee: Erweiterung von Datalog um Zust
ande:
[S+k]H [S+l]B;[S+m]:C:
 k = l = m ) lokale Regeln  Anfragen ) kein Zustands
ubergang
 k  l;m ) progressive Regeln ) de nieren Transitionen
Ausf
uhrungsmodell:
E0 E1  Ei externe Ereignisse
s0 : : : s1 : : : si : : : si+1
BOT EOT EOT EOT
BOT BOT [$]
A0 A1  Ai externe Aktionen
   ;  ;  ;
 Transition: einzelner Zustands
ubergang [sn]![sn+1]  Transaktion: Gesamt
ubergang [sn];[$]
Statelog: Regelarten 6
Frame-Regeln: [S+1] R(X) [S] R(X), :del:R(X).
[S+1] R(X) [S] ins:R(X).
ICs (Integrit
atsbedingungen): [S] abort [S] ins:R(X), del:R(X)).
Anfragen: [S] tc(X,Y) [S] tc(X,Z), tc(Z,Y).

Anderungen: % emp.D REFERENCES dept.D ON DELETE CASCADE
[S] del:emp(E,Sal,D) [S] del:dept(D, ), emp(E,Sal,D).
Dynamische ICs und komplexe Ereignisse: e(X;Y) := (f(X); g(Y))
in PFOTL: 'e(X;Y) := (f(X)) ^ g(Y)
Statelog Programm Pe: [S+1] detd f(X) [S] f(X).
[S+1] detd f(X) [S] detd f(X).
[S] detd e(X,Y) [S] g(Y), detd f(X).
Statelog: Semantik und grundlegende Eigenschaften... 7
Def. Statelog-Programm P ist zustandsstrati ziert, wenn keine negativen Abh
angigkeitszyklen
innerhalb eines Zustands auftreten.
Satz. Wenn P progressiv und zustandsstrati ziert ) P ein eindeutiges perfektes Modell:
MP[D = (MP[D[0];MP[D[1];:::):
 P terminiert f
ur D, wenn MP[D[n] = MP[D[n+1]; n  n0.
Allgemein:
 MP[D ist periodisch (ultimately periodic): MP[D[n] = MP[D[n+T]; n  n0
) endlich repr
asentierbar.
...Terminierung 8
Def. Sei P ein Statelog-Programm:
 P terminiert f
ur D wenn Periode T = 1, (TermD)
 P terminiert manchmal/immer, wenn 9D=8D: P terminiert f
ur D. (Term9=8)
Satz.
 (TermD) ist PSPACE-vollst
andig (n = jDj).
 (Term9=8) ist unentscheidbar.
 (TermD) ist in Statelog ausdr
uckbar (P ; P#).
Satz.
Bewachte (G-Statelog) und -monotone Programme (-Statelog) terminieren in PTIME.
(Idee: verhindere Oszillation von 
Anderungen: ins ; del ; ins ;   )
Ergebnisse: Normalformen... 9
 NF-Statelog: nur Regeln der Form
1-(P)rogressiv : [S+1]H [S]B;[S]:C:
(L)okal : [S]H [S]B;[S]:C:
 P-Statelog: nur Regeln vom Typ (P).
Satz. Statelog 1 NF-Statelog % evolutions
aquivalent
Statelog $ P-Statelog % transaktions
aquivalent
Produktionsregeln  deduktive Regeln in Statelog:
H B;:C ,
8























:
P-Datalog : [S+1]H [S]B;[S]:C
I-Datalog : [S+1]H [S]B;[S]:C
[S+1]H [S]H
S-Datalog : [S]H [S]B;[S]:C
WF-Datalog : [S+1]H [S+1]B;[S]:C
...Charakterisierung der Ausdrucksst
arke... 10
Transitionen Transaktionen
WF-Statelog
fGjjNFjg-Statelog
XY-Datalog
fPjIg-Statelog
All
While
Fixpoint
S-Datalog
FO
9FO
Datalog
pos9FO
Conjunctive
?
fPjNFjWFjg-Statelog
XY-Datalog
fIjg-Statelog
G-Statelog
=
=
=
=
=
=
=
(
Daten-Komplexit
at:
DB-PSPACE
DB-PTIME
...Komplexit
at 11
Daten-Komplexit
at:
 Transition: geg.: p(
x), MP[D[s] ges.: MP[D[s+1]
?
j
= p(
x)
 Transaktion: geg.: p(
x), MP[D[0] ges.: MP[D[$]
?
j
= p(
x)
Satz.
 Transition ist PTIME-vollst
andig.
 Transaktion ist PSPACE-vollst
andig.
(n = jDj)
Vergleich mit verwandten Arbeiten 12
 Datalog1S [Chomicki]:
{ temporale Anfragesprache, periodisch, Auswertung: PSPACE-vollst
andig,
{ Ausdrucksst
arken nicht direkt vergleichbar:
 Statelog: relationale DB, Datalog1S: temporale DB
 erlaubt: R
uckw
arts-Regeln
 keine Zustandsstrati zierung, 
Anderungen/Transitionen/Transaktionen
 XY-Datalog [Zaniolo]:
{ Integration von aktiven  deduktiven Regeln
{ komplexe Ereignisse
{ keine Resultate bzgl. Ausdrucksst
arke/Komplexit
at/Terminierung
 I-/P-Datalog [Abiteboul/Vianu]:
{ Anfrage-  
Anderungssprachen, Produktionsregel-Semantik, umfassende Theorie
{ keine Behandlung von aktiven Regeln
{ Teilklassen von Statelog
Zusammenfassung 13
Ergebnisse
Statelog integriert
 aktive Regeln (automatische 
Anderungsoperationen, Kopplungsmodi, komplexe Ereignisse;
nicht jedoch: decoupled, chronicle-Kontext, ...), und
 deduktive Regeln (formale, deklarative Semantik):
Aktive Regeln = Deduktive Regeln + Zust
ande.
 deklarative Semantik: zustandsstrati ziertes Modell MP[D
 Statelog-Normalformen
) Charakterisierung der Ausdrucksst
arke, Komplexit
at (bzgl. Transitionen und Transaktionen)
 Rahmen f
ur aktive Regeln:
-Relationen, Kon iktbehandlung, -monotones Statelog, dynamische ICs, komplexe Ereignisse
 prototypisch implementiert

Weitere ähnliche Inhalte

Mehr von Bertram Ludäscher

Possible Worlds Explorer: Datalog & Answer Set Programming for the Rest of Us
Possible Worlds Explorer: Datalog & Answer Set Programming for the Rest of UsPossible Worlds Explorer: Datalog & Answer Set Programming for the Rest of Us
Possible Worlds Explorer: Datalog & Answer Set Programming for the Rest of UsBertram Ludäscher
 
Deduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
Deduktive Datenbanken & Logische Programme: Eine kleine ZeitreiseDeduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
Deduktive Datenbanken & Logische Programme: Eine kleine ZeitreiseBertram Ludäscher
 
[Flashback 2005] Managing Scientific Data: From Data Integration to Scientifi...
[Flashback 2005] Managing Scientific Data: From Data Integration to Scientifi...[Flashback 2005] Managing Scientific Data: From Data Integration to Scientifi...
[Flashback 2005] Managing Scientific Data: From Data Integration to Scientifi...Bertram Ludäscher
 
Dissecting Reproducibility: A case study with ecological niche models in th...
Dissecting Reproducibility:  A case study with ecological niche models  in th...Dissecting Reproducibility:  A case study with ecological niche models  in th...
Dissecting Reproducibility: A case study with ecological niche models in th...Bertram Ludäscher
 
Incremental Recomputation: Those who cannot remember the past are condemned ...
Incremental Recomputation:  Those who cannot remember the past are condemned ...Incremental Recomputation:  Those who cannot remember the past are condemned ...
Incremental Recomputation: Those who cannot remember the past are condemned ...Bertram Ludäscher
 
Validation and Inference of Schema-Level Workflow Data-Dependency Annotations
Validation and Inference of Schema-Level Workflow Data-Dependency AnnotationsValidation and Inference of Schema-Level Workflow Data-Dependency Annotations
Validation and Inference of Schema-Level Workflow Data-Dependency AnnotationsBertram Ludäscher
 
An ontology-driven framework for data transformation in scientific workflows
An ontology-driven framework for data transformation in scientific workflowsAn ontology-driven framework for data transformation in scientific workflows
An ontology-driven framework for data transformation in scientific workflowsBertram Ludäscher
 
Knowledge Representation & Reasoning and the Hierarchy-of-Hypotheses Approach
Knowledge Representation & Reasoning and the Hierarchy-of-Hypotheses ApproachKnowledge Representation & Reasoning and the Hierarchy-of-Hypotheses Approach
Knowledge Representation & Reasoning and the Hierarchy-of-Hypotheses ApproachBertram Ludäscher
 
Whole-Tale: The Experience of Research
Whole-Tale: The Experience of ResearchWhole-Tale: The Experience of Research
Whole-Tale: The Experience of ResearchBertram Ludäscher
 
ETC & Authors in the Driver's Seat
ETC & Authors in the Driver's SeatETC & Authors in the Driver's Seat
ETC & Authors in the Driver's SeatBertram Ludäscher
 
From Provenance Standards and Tools to Queries and Actionable Provenance
From Provenance Standards and Tools to Queries and Actionable ProvenanceFrom Provenance Standards and Tools to Queries and Actionable Provenance
From Provenance Standards and Tools to Queries and Actionable ProvenanceBertram Ludäscher
 
Wild Ideas at TDWG'17: Embrace multiple possible worlds; abandon techno-ligion
Wild Ideas at TDWG'17: Embrace multiple possible worlds; abandon techno-ligionWild Ideas at TDWG'17: Embrace multiple possible worlds; abandon techno-ligion
Wild Ideas at TDWG'17: Embrace multiple possible worlds; abandon techno-ligionBertram Ludäscher
 
Using YesWorkflow hybrid queries to reveal data lineage from data curation ac...
Using YesWorkflow hybrid queries to reveal data lineage from data curation ac...Using YesWorkflow hybrid queries to reveal data lineage from data curation ac...
Using YesWorkflow hybrid queries to reveal data lineage from data curation ac...Bertram Ludäscher
 
A Brief Provenance Tour … via DataONE
A Brief Provenance Tour  … via DataONEA Brief Provenance Tour  … via DataONE
A Brief Provenance Tour … via DataONEBertram Ludäscher
 
Declarative Datalog Debugging for Mere Mortals
Declarative Datalog Debugging for Mere MortalsDeclarative Datalog Debugging for Mere Mortals
Declarative Datalog Debugging for Mere MortalsBertram Ludäscher
 
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in Practice
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in PracticeWeek-2: Theory & Practice of Data Cleaning: Regular Expressions in Practice
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in PracticeBertram Ludäscher
 
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in Theory
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in TheoryWeek-2: Theory & Practice of Data Cleaning: Regular Expressions in Theory
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in TheoryBertram Ludäscher
 
Why-Not Provenance through Game Semantics
Why-Not Provenance through Game SemanticsWhy-Not Provenance through Game Semantics
Why-Not Provenance through Game SemanticsBertram Ludäscher
 

Mehr von Bertram Ludäscher (20)

Possible Worlds Explorer: Datalog & Answer Set Programming for the Rest of Us
Possible Worlds Explorer: Datalog & Answer Set Programming for the Rest of UsPossible Worlds Explorer: Datalog & Answer Set Programming for the Rest of Us
Possible Worlds Explorer: Datalog & Answer Set Programming for the Rest of Us
 
Deduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
Deduktive Datenbanken & Logische Programme: Eine kleine ZeitreiseDeduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
Deduktive Datenbanken & Logische Programme: Eine kleine Zeitreise
 
[Flashback 2005] Managing Scientific Data: From Data Integration to Scientifi...
[Flashback 2005] Managing Scientific Data: From Data Integration to Scientifi...[Flashback 2005] Managing Scientific Data: From Data Integration to Scientifi...
[Flashback 2005] Managing Scientific Data: From Data Integration to Scientifi...
 
Dissecting Reproducibility: A case study with ecological niche models in th...
Dissecting Reproducibility:  A case study with ecological niche models  in th...Dissecting Reproducibility:  A case study with ecological niche models  in th...
Dissecting Reproducibility: A case study with ecological niche models in th...
 
Incremental Recomputation: Those who cannot remember the past are condemned ...
Incremental Recomputation:  Those who cannot remember the past are condemned ...Incremental Recomputation:  Those who cannot remember the past are condemned ...
Incremental Recomputation: Those who cannot remember the past are condemned ...
 
Validation and Inference of Schema-Level Workflow Data-Dependency Annotations
Validation and Inference of Schema-Level Workflow Data-Dependency AnnotationsValidation and Inference of Schema-Level Workflow Data-Dependency Annotations
Validation and Inference of Schema-Level Workflow Data-Dependency Annotations
 
An ontology-driven framework for data transformation in scientific workflows
An ontology-driven framework for data transformation in scientific workflowsAn ontology-driven framework for data transformation in scientific workflows
An ontology-driven framework for data transformation in scientific workflows
 
Knowledge Representation & Reasoning and the Hierarchy-of-Hypotheses Approach
Knowledge Representation & Reasoning and the Hierarchy-of-Hypotheses ApproachKnowledge Representation & Reasoning and the Hierarchy-of-Hypotheses Approach
Knowledge Representation & Reasoning and the Hierarchy-of-Hypotheses Approach
 
Whole-Tale: The Experience of Research
Whole-Tale: The Experience of ResearchWhole-Tale: The Experience of Research
Whole-Tale: The Experience of Research
 
ETC & Authors in the Driver's Seat
ETC & Authors in the Driver's SeatETC & Authors in the Driver's Seat
ETC & Authors in the Driver's Seat
 
From Provenance Standards and Tools to Queries and Actionable Provenance
From Provenance Standards and Tools to Queries and Actionable ProvenanceFrom Provenance Standards and Tools to Queries and Actionable Provenance
From Provenance Standards and Tools to Queries and Actionable Provenance
 
Wild Ideas at TDWG'17: Embrace multiple possible worlds; abandon techno-ligion
Wild Ideas at TDWG'17: Embrace multiple possible worlds; abandon techno-ligionWild Ideas at TDWG'17: Embrace multiple possible worlds; abandon techno-ligion
Wild Ideas at TDWG'17: Embrace multiple possible worlds; abandon techno-ligion
 
Using YesWorkflow hybrid queries to reveal data lineage from data curation ac...
Using YesWorkflow hybrid queries to reveal data lineage from data curation ac...Using YesWorkflow hybrid queries to reveal data lineage from data curation ac...
Using YesWorkflow hybrid queries to reveal data lineage from data curation ac...
 
A Brief Provenance Tour … via DataONE
A Brief Provenance Tour  … via DataONEA Brief Provenance Tour  … via DataONE
A Brief Provenance Tour … via DataONE
 
Declarative Datalog Debugging for Mere Mortals
Declarative Datalog Debugging for Mere MortalsDeclarative Datalog Debugging for Mere Mortals
Declarative Datalog Debugging for Mere Mortals
 
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in Practice
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in PracticeWeek-2: Theory & Practice of Data Cleaning: Regular Expressions in Practice
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in Practice
 
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in Theory
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in TheoryWeek-2: Theory & Practice of Data Cleaning: Regular Expressions in Theory
Week-2: Theory & Practice of Data Cleaning: Regular Expressions in Theory
 
First-order Provenance Games
First-order Provenance GamesFirst-order Provenance Games
First-order Provenance Games
 
Why-Not Provenance through Game Semantics
Why-Not Provenance through Game SemanticsWhy-Not Provenance through Game Semantics
Why-Not Provenance through Game Semantics
 
Provenance Games
Provenance GamesProvenance Games
Provenance Games
 

[Flashback] Integration of Active and Deductive Database Rules

  • 1. Integration of Active and Deductive Database Rules Bertram Lud ascher Institut f ur Informatik, Universit at Freiburg  Ubersicht Motivation; Spektrum von Regelsprachen: Aktive Regeln|Produktionsregeln|Deduktive Regeln Statelog Terminierung Normalformen ) Ausdrucksst arke, Komplexit at Vergleich Zusammenfassung
  • 2. Motivation 1 Spektrum von Datenbank-Regelsprachen [Widom93]: Deduktive Regeln Produktionsregeln Aktive Regeln deklarativ prozedural S-Datalog WF-Datalog : : : : : : RDL I-/P-Datalog : : : : : : A-RDL: : : : : : Ariel : : : : : : Starburst : : : : : : Postgres Ziel: Deduktive Regeln deklarative Semantik nur Anfragen Produktions-/Aktive Regeln prozedurale Semantik Anfragen  Anderungen Statelog-Regeln deklarative, zustands-orientierte Semantik Anfragen  Anderungen
  • 3. Aktive Regeln 2 Aktives Datenbanksystem: External Events DBMS ECA Rules External Actions DB Conditions Internal Actions Internal Events ECA-Regeln: ON hEventi IF hConditioni THEN hActioni automatische  Anderungen (updates) vielseitig einsetzbar (integrity maintenance, monitoring, ...) komplexe, prozedurale Semantik (Kopplungsmodi, Kon iktau  osung, ...) formale Eigenschaften kaum untersucht; Terminierung, Kon uenz
  • 4. Produktionsregeln 3 Produktionsregeln: IF hConditioni THEN hActioni Z.B. P-Datalog (nicht-in ation ares Datalog): hActioni hConditioni del:emp(E,S,D) del:emp(E,S,D) del:dept mgr(D,E), del:emp(E1,Sal1,D) del:emp(E, , ), dept mgr(D,E), emp(E1,Sal1,D) automatische  Anderungen ausdr uckbar klare Fixpunkt-Semantik formale Eigenschaften (Ausdrucksst arke, Komplexit at, Terminierung) genau untersucht [AV] einfacher als aktive Regeln Negationsbehandlung (:tc) ) keine deklarative Semantik
  • 5. Deduktive Regeln 4 Deduktive Regeln: IF hPremisei THEN hConclusioni Z.B. WF-Datalog (wohlfundiertes Datalog): tc(X,Y) e(X,Y). tc(X,Y) tc(X,Z),tc(Z,Y). non-tc(X,Y) :tc(X,Y). win(X) move(X,Y), :win(Y). intuitive, deklarative Semantik (Prinzipien: MIN, SUPP, TAUT,... ), insbesondere f ur Negation formale Eigenschaften bekannt  Anderungsoperationen nicht direkt unterst utzt
  • 6. Statelog = States + Datalog 5 Grundidee: Erweiterung von Datalog um Zust ande: [S+k]H [S+l]B;[S+m]:C: k = l = m ) lokale Regeln Anfragen ) kein Zustands ubergang k l;m ) progressive Regeln ) de nieren Transitionen Ausf uhrungsmodell: E0 E1 Ei externe Ereignisse s0 : : : s1 : : : si : : : si+1 BOT EOT EOT EOT BOT BOT [$] A0 A1 Ai externe Aktionen ; ; ; Transition: einzelner Zustands ubergang [sn]![sn+1] Transaktion: Gesamt ubergang [sn];[$]
  • 7. Statelog: Regelarten 6 Frame-Regeln: [S+1] R(X) [S] R(X), :del:R(X). [S+1] R(X) [S] ins:R(X). ICs (Integrit atsbedingungen): [S] abort [S] ins:R(X), del:R(X)). Anfragen: [S] tc(X,Y) [S] tc(X,Z), tc(Z,Y).  Anderungen: % emp.D REFERENCES dept.D ON DELETE CASCADE [S] del:emp(E,Sal,D) [S] del:dept(D, ), emp(E,Sal,D). Dynamische ICs und komplexe Ereignisse: e(X;Y) := (f(X); g(Y)) in PFOTL: 'e(X;Y) := (f(X)) ^ g(Y) Statelog Programm Pe: [S+1] detd f(X) [S] f(X). [S+1] detd f(X) [S] detd f(X). [S] detd e(X,Y) [S] g(Y), detd f(X).
  • 8. Statelog: Semantik und grundlegende Eigenschaften... 7 Def. Statelog-Programm P ist zustandsstrati ziert, wenn keine negativen Abh angigkeitszyklen innerhalb eines Zustands auftreten. Satz. Wenn P progressiv und zustandsstrati ziert ) P ein eindeutiges perfektes Modell: MP[D = (MP[D[0];MP[D[1];:::): P terminiert f ur D, wenn MP[D[n] = MP[D[n+1]; n n0. Allgemein: MP[D ist periodisch (ultimately periodic): MP[D[n] = MP[D[n+T]; n n0 ) endlich repr asentierbar.
  • 9. ...Terminierung 8 Def. Sei P ein Statelog-Programm: P terminiert f ur D wenn Periode T = 1, (TermD) P terminiert manchmal/immer, wenn 9D=8D: P terminiert f ur D. (Term9=8) Satz. (TermD) ist PSPACE-vollst andig (n = jDj). (Term9=8) ist unentscheidbar. (TermD) ist in Statelog ausdr uckbar (P ; P#). Satz. Bewachte (G-Statelog) und -monotone Programme (-Statelog) terminieren in PTIME. (Idee: verhindere Oszillation von  Anderungen: ins ; del ; ins ; )
  • 10. Ergebnisse: Normalformen... 9 NF-Statelog: nur Regeln der Form 1-(P)rogressiv : [S+1]H [S]B;[S]:C: (L)okal : [S]H [S]B;[S]:C: P-Statelog: nur Regeln vom Typ (P). Satz. Statelog 1 NF-Statelog % evolutions aquivalent Statelog $ P-Statelog % transaktions aquivalent Produktionsregeln deduktive Regeln in Statelog: H B;:C , 8 : P-Datalog : [S+1]H [S]B;[S]:C I-Datalog : [S+1]H [S]B;[S]:C [S+1]H [S]H S-Datalog : [S]H [S]B;[S]:C WF-Datalog : [S+1]H [S+1]B;[S]:C
  • 11. ...Charakterisierung der Ausdrucksst arke... 10 Transitionen Transaktionen WF-Statelog fGjjNFjg-Statelog XY-Datalog fPjIg-Statelog All While Fixpoint S-Datalog FO 9FO Datalog pos9FO Conjunctive ? fPjNFjWFjg-Statelog XY-Datalog fIjg-Statelog G-Statelog = = = = = = = ( Daten-Komplexit at: DB-PSPACE DB-PTIME
  • 12. ...Komplexit at 11 Daten-Komplexit at: Transition: geg.: p( x), MP[D[s] ges.: MP[D[s+1] ? j = p( x) Transaktion: geg.: p( x), MP[D[0] ges.: MP[D[$] ? j = p( x) Satz. Transition ist PTIME-vollst andig. Transaktion ist PSPACE-vollst andig. (n = jDj)
  • 13. Vergleich mit verwandten Arbeiten 12 Datalog1S [Chomicki]: { temporale Anfragesprache, periodisch, Auswertung: PSPACE-vollst andig, { Ausdrucksst arken nicht direkt vergleichbar: Statelog: relationale DB, Datalog1S: temporale DB erlaubt: R uckw arts-Regeln keine Zustandsstrati zierung,  Anderungen/Transitionen/Transaktionen XY-Datalog [Zaniolo]: { Integration von aktiven deduktiven Regeln { komplexe Ereignisse { keine Resultate bzgl. Ausdrucksst arke/Komplexit at/Terminierung I-/P-Datalog [Abiteboul/Vianu]: { Anfrage-  Anderungssprachen, Produktionsregel-Semantik, umfassende Theorie { keine Behandlung von aktiven Regeln { Teilklassen von Statelog
  • 14. Zusammenfassung 13 Ergebnisse Statelog integriert aktive Regeln (automatische  Anderungsoperationen, Kopplungsmodi, komplexe Ereignisse; nicht jedoch: decoupled, chronicle-Kontext, ...), und deduktive Regeln (formale, deklarative Semantik): Aktive Regeln = Deduktive Regeln + Zust ande. deklarative Semantik: zustandsstrati ziertes Modell MP[D Statelog-Normalformen ) Charakterisierung der Ausdrucksst arke, Komplexit at (bzgl. Transitionen und Transaktionen) Rahmen f ur aktive Regeln: -Relationen, Kon iktbehandlung, -monotones Statelog, dynamische ICs, komplexe Ereignisse prototypisch implementiert