Hierarchical Multidimensional Modelling Hierarchical - - PowerPoint PPT Presentation

hierarchical multidimensional modelling hierarchical
SMART_READER_LITE
LIVE PREVIEW

Hierarchical Multidimensional Modelling Hierarchical - - PowerPoint PPT Presentation

Hierarchical Multidimensional Modelling Hierarchical Multidimensional Modelling in the Concept- -Oriented Data Model Oriented Data Model in the Concept Alexandr Savinov Fraunhofer Institute for Autonomous Intelligent Systems Knowledge


slide-1
SLIDE 1

Fraunhofer Institute for Autonomous Intelligent Systems

1

Hierarchical Multidimensional Modelling Hierarchical Multidimensional Modelling in the Concept in the Concept-

  • Oriented Data Model

Oriented Data Model

Alexandr Savinov Fraunhofer Institute for Autonomous Intelligent Systems Knowledge Discovery Team Germany alexandr.savinov@ais.fraunhofer.de

slide-2
SLIDE 2

Fraunhofer Institute for Autonomous Intelligent Systems

2

  • Introduction
  • Logical and Physical Structure
  • Dimensions and Inverse Dimensions
  • Projection and De-projection
  • Multidimensional Grouping and Aggregation
  • Conclusion

Contents Contents

FCA Data Modeling ?

slide-3
SLIDE 3

Fraunhofer Institute for Autonomous Intelligent Systems

3

Data models and dimensionality Data models and dimensionality modelling modelling

Introduction Introduction

  • Entities and relationships (ERM)
  • Logic and predicates (deductive databases)
  • Relations (RM)
  • Facts (ORM)
  • Objects (OODM)
  • Dimensions (OLAP, multidimensional databases)
  • Dimension is a named link between subconcept and superconcept

OrderParts Orders Products

  • rder

products

slide-4
SLIDE 4

Fraunhofer Institute for Autonomous Intelligent Systems

4

Assumptions and related work Assumptions and related work

Introduction Introduction

  • Global semantics (URM)
  • Using the structure for navigation (FDM)
  • Hierarchical structure (FCA)
  • Level of details (OLAP)

C Dimension Bottom concept Concept Top concept

slide-5
SLIDE 5

Fraunhofer Institute for Autonomous Intelligent Systems

5

FCA FCA

Introduction Introduction

  • Concept -> Concept
  • Object -> Data item
  • Attribute -> Primitive concept
  • In FCA concepts depend on data while in COM data

depends on concepts, that is concepts define a structure for data (in FCA the structure is derived from data semantics)

  • Items belong to one concept while in FCA object may

belong to many concepts

  • COM concept is a (non-primitive) attribute for

subconcepts

Attributes M Objects G

slide-6
SLIDE 6

Fraunhofer Institute for Autonomous Intelligent Systems

6

Questions Questions

Introduction Introduction

  • Why we have (primitive) attributes defined at structural level while

concepts are derived from data semantics? Why not to have a possibility to define a (non-primitive) attribute as a concept?

Attributes M Objects G Attributes are primitive concepts Each concept has ist set of

  • bjects
slide-7
SLIDE 7

Fraunhofer Institute for Autonomous Intelligent Systems

7

Physical structure Physical structure

Physical Physical and and Logical Logical Structure Structure

  • At physical level an element of the model is a collection of other elements
  • Physical structure is used for representation and access
  • Physical structure is used to implement reference
  • Physical structure is hierarchical where each element has only one parent

R C U V a b c d e f concepts items model root

∈ - membership in

physical collection

} , , { K b a C =

,

K , , A b A a ∈ ∈

,

slide-8
SLIDE 8

Fraunhofer Institute for Autonomous Intelligent Systems

8

Logical structure Logical structure

Physical Physical and and Logical Logical Structure Structure

  • Each element is a combination of other elements (by reference)
  • Logical structure is used to represent data semantics (properties)
  • Logical collection is a dual combination
  • Each element has many parents and many children

, ,

〉 〈 = c b a g , , , K

,

g c g b g a < K < < , , ,

a b c d e f

} , , , { f e d g K =

,

g f g e g d > K > > , , , > - membership in

logical collection g

  • rder

part1 part2 customer date AND OR

slide-9
SLIDE 9

Fraunhofer Institute for Autonomous Intelligent Systems

9

Two level model Two level model

Physical Physical and and Logical Logical Structure Structure

  • [Root] One root element R is a physical collection of concepts,
  • [Syntax] Each concept is
  • [Semantics] Each data item is

– (i) a combination of other data items called superitems (while this item is a subitem), – (ii) empty physical collection,

,

} , , , {

2 1 N

C C C R K

– (i) a combination of other concepts called superconcepts (while this concept is a subconcept), – (ii) a physical collection of data items (or concept instances),

,

= R C C C C

n ∈

〉 〈 = , , ,

2 1

K R i i C ∈ = } , , {

2 1

K

C i i i i

n ∈

〉 〈 = , , , 2

1

K

{} = i

slide-10
SLIDE 10

Fraunhofer Institute for Autonomous Intelligent Systems

10

Two level model Two level model

Physical Physical and and Logical Logical Structure Structure

  • [Special elements] If a concept does not have a superconcept then it is

referred to as primitive and its superconcept is one common top concept; and if a concept does not have a subconcept then it is assumed to be one common bottom concept, and an absence of superitem is denoted by one special null item.

  • [Cycles] Cycles in subconcept-superconcept relation and subitem-

superitem relation are not allowed,

  • [Syntactic constraints] Each data item from a concept may combine only

items from its superconcepts.

, ,

slide-11
SLIDE 11

Fraunhofer Institute for Autonomous Intelligent Systems

11

Model syntax Model syntax

Syntax and Syntax and Semantics Semantics

,

  • At syntactic level a concept is a combination of ist superconcepts
  • Each superconcept is identified by dimension name, that is,

dimension is a relative position of superconcept

,

Prices Users Auctions Top AuctionBids auction Dates Products Categories price user date product category date user

〉 〈 =

n n C

x C x C x C : , , : , :

2 2 1 1

K

slide-12
SLIDE 12

Fraunhofer Institute for Autonomous Intelligent Systems

12

Model semantics Model semantics

Syntax and Syntax and Semantics Semantics

, ,

  • Each concept is a set of items:
  • An item is a combination of its superitems:
  • There is no difference between objects and attribute values: an object

has values in other objects, and it is a value for other objects

〉 〈 =

n

i i i i , , , 2

1

K

} , , {

2 1

K i i C =

a) b)

slide-13
SLIDE 13

Fraunhofer Institute for Autonomous Intelligent Systems

13

Dimensions Dimensions

Model Model Dimensionality Dimensionality

  • Dimension is a named position of superconcept
  • Superconcept is referred to as the domain
  • Dimensions of higher rank consists of many (local) dimensions
  • Dimension with the domain in a primitive concept is a primitive dimension
  • The number of primitive dimensions is the model primitive dimensionality

, ,

Prices Users Auctions Top AuctionBids auction Dates Products Categories price user date product category date user

slide-14
SLIDE 14

Fraunhofer Institute for Autonomous Intelligent Systems

14

Inverse dimensions Inverse dimensions

Model Model Dimensionality Dimensionality

  • Inverse dimension has an opposite direction
  • Inverse dimension identifies a subconcept
  • Inverse dimensions are multi-valued (while dimensions are one-valued)
  • The number of primtive dimensions is equal to the number of primtive

inverse dimensions

  • {AuctionBids.auction.product.category}

, ,

Prices Users Auctions Top AuctionBids auction Dates Products Categories price user date product category date user

slide-15
SLIDE 15

Fraunhofer Institute for Autonomous Intelligent Systems

15

Logical collections Logical collections

Model Model Dimensionality Dimensionality

  • A concept is a logical collection of its subconcepts
  • An item is logical collection of its subitems
  • An item is group for its subitems

, ,

Countries

Orders Products Customers

slide-16
SLIDE 16

Fraunhofer Institute for Autonomous Intelligent Systems

16

Hierarchical coordinate system Hierarchical coordinate system

Model Model Dimensionality Dimensionality

  • A concept can be interpreted as an axis with items as coordinates
  • A coordinate has its own coordinates and points can be used as

coordinates for other points

, ,

X Y X Y XY

slide-17
SLIDE 17

Fraunhofer Institute for Autonomous Intelligent Systems

17

Projection Projection

Projection Projection and and De De-

  • projection

projection

  • Projection of a subset of subitems along some dimension path:

, ,

Countries

Orders Products Customers

} , . | { C I i u d i U u d I ⊆ ∈ = ∈ = →

C I ⊆

k

d d d d . . .

2 1

L = ) Dom(d U =

For each subitem we get its superitem along the dimension used in projection Projection direction

U C I

slide-18
SLIDE 18

Fraunhofer Institute for Autonomous Intelligent Systems

18

De De-

  • projection

projection

  • De-projection of a subset of superitems along some inverse dimension:

For each superitems we find all subitems along inverse dimension that reference it De-projection direction

I S

Projection Projection and and De De-

  • projection

projection

, ,

} , . | { } { C I i i d s S s d I ⊆ ∈ = ∈ = →

} . . . { } {

2 1 k

d d d d L =

}) Dom({d S =

Prices Users Auctions Top AuctionBids auction Dates Products Categories price user date product category date user

slide-19
SLIDE 19

Fraunhofer Institute for Autonomous Intelligent Systems

19

Access path Access path

  • Access path is a sequence of projections and de-projections possibly with

constraints

  • Derived property is a named definition of an access path or a query
  • Category.meanPriceForTenDays = avg(

{ab in AuctionBids.auction.product.category | ab.auction.date > today-10 }.price );

Prices Users Auctions Top AuctionBids auction Dates Products Categories price user date product category date user

, ,

Projection Projection and and De De-

  • projection

projection

  • Navigational approach with no

hierarchical structure: – OODB – FDM – Network model

slide-20
SLIDE 20

Fraunhofer Institute for Autonomous Intelligent Systems

20

Multidimensional de Multidimensional de-

  • projection

projection

  • More than one bounding dimension
  • Multidimensional de-projection returns a set of subitems referencing source

items along all bounding dimensions:

, ,

} , . . . | { } , , , {

2 1 2 1

C I i i d s i d s i d s S s d d d I

n n

Grouping Grouping and and Aggregation Aggregation

∈ = ∧ ∧ = ∧ = ∈ = → K K

It is a common coordinate for all subitems from de- projection Two de-projection directions along two bounding dimensions

I S

slide-21
SLIDE 21

Fraunhofer Institute for Autonomous Intelligent Systems

21

Aggregation Aggregation

Grouping Grouping and and Aggregation Aggregation

  • A dimension hierarchy is one dimension path
  • Along each hierarchy we choose a concept called a level
  • Universe of discourse is the Cartesian product of the chosen levels
  • For each point from UoD we find de-projection
  • De-projection is aggregated

, ,

D2 D1 M

The cube is specified by choosing dimensions and their levels of detail The measure is chosen by specifying the concept (the quantity) to be propagated and aggregated This concept contains detailed information used to propagate the measure to the dimensions For each cell one value of measure is computed

} | , , , {

2 1 2 1 j j n n L

D D D D ∈ 〉 〈 = = × × × = Ω ω ω ω ω ω K K

slide-22
SLIDE 22

Fraunhofer Institute for Autonomous Intelligent Systems

22

Example Example

Grouping Grouping and and Aggregation Aggregation

  • {d : Dates, c : Categories | isLastWeek(d) }< avg(

this->{Auctions.date, Auctions.product.category}.maxBid ) as averagePrice >

, ,

Prices Users Auctions Top AuctionBids auction Dates Products Categories price user date product category date user Roll up Drill down

slide-23
SLIDE 23

Fraunhofer Institute for Autonomous Intelligent Systems

23

  • Features:

– Global semantics – Hierarchical multidimensional logical structure – Navigation via access paths, dimensions and inverse dimensions – Multidimensional aggregation and analysis – Concept transformations (not described in this presentation) – Constraint propagation and inference (not described in this presentation)

  • Advantages:

– Clarity of operations – Easiness of use – Formal syntax and semantics – Simple query language (no joins)

, ,

Conclusions Conclusions