Compiling Axioms from the Source Descriptions Craig Knoblock - - PowerPoint PPT Presentation

compiling axioms from the source descriptions
SMART_READER_LITE
LIVE PREVIEW

Compiling Axioms from the Source Descriptions Craig Knoblock - - PowerPoint PPT Presentation

Compiling Axioms from the Source Descriptions Craig Knoblock University of Southern California 4/4/2005 University of Southern California 1 Domain Modeling Language Domain model specified in a KL-ONE style knowledge representation system


slide-1
SLIDE 1

4/4/2005 University of Southern California 1

Compiling Axioms from the Source Descriptions

Craig Knoblock University of Southern California

slide-2
SLIDE 2

4/4/2005 University of Southern California 2

Domain Modeling Language

Domain model specified in a KL-ONE style knowledge representation system Unary relations (classes) used to represent classes of objects Binary relations used to describe attributes

slide-3
SLIDE 3

4/4/2005 University of Southern California 3

Domain and Source Model

slide-4
SLIDE 4

4/4/2005 University of Southern California 4

Query Processing

How do you determine which sources are relevant to a query? One approach: compile a set of axioms that are then used in the query processing Alternative approach: determine the relevant sources at run-time

Explored later in this class

slide-5
SLIDE 5

4/4/2005 University of Southern California 5

Axioms

Defines the set of sources that can be used to produce various classes of information Relevant axioms depend both on the class of information and the required attributes Example Axioms:

Large-seaport(pn) = s2(s2.pn) Large-seaport(cr gc pn) = s4(s4.cr s4.gc s4.pn) or s5(s5.cr s5.gc s5.pn)

slide-6
SLIDE 6

4/4/2005 University of Southern California 6

Inference Rules for Axiom Compilation

slide-7
SLIDE 7

4/4/2005 University of Southern California 7

Approach to Compiling Axioms

Like a production system, run to quiescence Consider each axiom generated to potentially activate later rules Allow potentially multiple applications of particular rule Only apply rules when they might generate something new

slide-8
SLIDE 8

4/4/2005 University of Southern California 8

Algorithm:

gen := 0; apply DIRECT rule producing axioms(gen); gen := 1; repeat

⌧new := 0; ⌧for each rule in {COVERING, DEFINITION, INHERIT, COMPOSE} ⌧for each activation of rule

  • if activation intersection axioms(gen-1) is not empty

– apply rule candidate axioms(gen); – add candidate axioms not already present; – new := #(added axioms); – gen := gen + 1

until new = 0;

transfer all axioms to lattice;

slide-9
SLIDE 9

4/4/2005 University of Southern California 9

Axioms from the Direct Rule

Seaport(cr gc pn) = s1(s1.cr s1.gc s1.pn)

slide-10
SLIDE 10

4/4/2005 University of Southern California 10

Axioms after Covering Rule

Large-seaport(cr gc pn) = s4(s4.cr s4.gc s4.pn) or s5(s5.cr s5.gc s5.pn)

slide-11
SLIDE 11

4/4/2005 University of Southern California 11

Axioms after Definition Rule

Small-seaport(cr gc pn) = s1(s1.cr s1.gc s1.pn) and s1.cr <=7

slide-12
SLIDE 12

4/4/2005 University of Southern California 12

Axioms after Inherit Rule

slide-13
SLIDE 13

4/4/2005 University of Southern California 13

Axioms after the Compose Rule

slide-14
SLIDE 14

4/4/2005 University of Southern California 14

Initial Axiom Lattice for Large-Seaport

slide-15
SLIDE 15

4/4/2005 University of Southern California 15

Large-Seaport Lattice with Supplementary Axioms

slide-16
SLIDE 16

4/4/2005 University of Southern California 16

Large-Seaport Lattice with Interstitial Axioms

slide-17
SLIDE 17

4/4/2005 University of Southern California 17

Domain and Source Model with Binding Patterns

slide-18
SLIDE 18

4/4/2005 University of Southern California 18

Large-Seaport Lattice with Binding Patterns

slide-19
SLIDE 19

4/4/2005 University of Southern California 19

Big Picture

Given a query

Find the appropriate axiom for each of the domain terms in the query Rewrite domain query into a source query Translate into a Theseus plan (with xwrapper, select, project join, etc) Execute the plan

slide-20
SLIDE 20

4/4/2005 University of Southern California 20

Discussion

Expression language for describing sources Efficient to build axioms as long as there are not many coverings Efficient to process queries Limitation: can’t describe sources as joins