SlideShare uma empresa Scribd logo
1 de 32
Baixar para ler offline
1st Workshop on Digital Information Management                           March, 30-31, 2011
                                                                             Corfu, Greece




            MXML Storage
          and the Problem of
        Manipulation of Context
  Nikolaos Fousteris 1 , Manolis Gergatsoulis 1 , Yannis Stavrakas 2
  1 Department of Archives and Library Science,      2 Institutefor the Management
                 Ionian University                    of Information Systems (IMIS),
    Ioannou Theotoki 72,49100 Corfu, Greece.                   R. C. Athena,
           {nfouster,manolis}@ionio.gr            G. Mpakou 17, 11524, Athens,Greece.
                                                              yannis@inmis.gr
Introduction & Motivation
 The problem of storing and querying XML data
 using relational databases has been considered
 a lot
 Multidimensional XML is an extension of XML
 and it is used for representing data that assume
 different facets, having different values or
 structure, under different contexts
 We expand the problem of storing and querying
 XML to multidimensional XML data

                                                    2
Outline
 XML Storage
 Multidimensional XML(MXML)
   Fundamental concepts
   MXML example and graphical representation
 MXML Storage
   Two storing approaches are presented
 Context Representation
 Multidimensional XPath (MXPath)
 Context Comparison
 Summary & Future work
                                               3
XML Storage (1/2)
 Includes techniques to store XML data in
 Relational Databases
 XML applications (internet applications)
 are able to exploit the advantages of the
 RDBMS technology
 Operations over XML data, are
 transformed to operations over the
 Relational Schema
                                             4
XML Storage (2/2)
Methodology
  A Relational Schema is chosen for storing XML data
  XML queries are produced by applications
  XML queries are translated to SQL queries
  SQL queries are executed
  Results are translated back to XML and returned to the
  application

Techniques
  Schema Based
  Schema Oblivious
                                                       5
Multidimensional XML (MXML)
Fundamental Concepts (1/3)

 MXML is an extension of XML

 In MXML data assume different facets,
 having different value or structure, under
 different contexts according to a number of
 dimensions which may be applied to
 elements and attributes

                                           6
MXML – Fundamental Concepts (2/3)

 Dimension: is a variable. Assigning different
 values for each dimension it is possible to
 construct different environments for MXML data
 World: represents an environment under which
 data obtain a meaning and is determined by
 assigning to every dimension a single value
 Context Specifier: specifies a set of worlds
 (context) under which a facet of an MXML element
 or attribute, is the holding facet of this element or
 attribute

                                                   7
MXML – Example
<book isbn=[edition=english]"0-13-110362-8"[/]               Multidimensional
             [edition=greek]"0-13-110370-9"[/]>              elements/attributes are
 <title>The C programming language</title>                   elements/attributes that
 <authors>                                                   have different facets
    <author>Brian W. Kernighan</author>                      under different
    <author>Dennis M. Ritchie</author>                       contexts.
 </authors>
 <@publisher>                                                Each multidimensional
                                                             element/attribute
 [edition = english] <publisher>Prentice Hall</publisher>[/]
                                                             contains one or more
 [edition = greek] <publisher>Klidarithmos</publisher>[/]
                                                             facets, called Context
 </@publisher>                                               element/attributes.
 <@translator>
 [edition = greek] <translator>Thomas Moraitis</translator>[/]
 </@translator>
 <@price>
                                                                                8
   …….
MXML Graphical Representation




                                9
MXML – Fundamental Concepts (3/3)

 Explicit Context: Is the true context only within
 the boundaries of a single multidimensional
 element/attribute.
 Inherited Context: Is the context, which is
 inherited from a ancestor node to a descendant
 node in the MXML graph.
 Inherited Context Coverage: It constraints the
 inherited context of a node, so as to contain only
 the worlds under which the node has access to
 some value node.

                                                 10
MXML Storage (1/2)
 MXML storage includes techniques that
 store MXML data in Relational Databases.
 Applications using MXML storage are able
 to exploit the advantages of the RDBMS
 technology.
 MXML additional features (context,
 different types of MXML nodes/edges etc.)
 should be considered.
                                         11
MXML Storage (2/2)
 Naive approach
 Uses a single table (Node Table), to store all
 information contained in a MXML document.
 Each row of the table represents a MXML node
 of the MXML graph.

 Type Approach
 MXML nodes are divided into groups according
 to their type. Each group is stored in a separate
 table named after the type of the nodes.
                                                  12
Naive Approach

                   Node Table:
Stores each MXML node in a row.




                             13
Type Approach




                                     Type Tables:
            Store each MXML node in a row of a
           specific table according to node’s type.
                                                  14
Comparison

Naive approach
  is straightforward
  appear many NULL values
  queries involve a large number of self-joins of the Node
  Table

Type Approach
  avoids NULL values
  reduces the size of the tables involved in joins
  (performance)



                                                        15
Context Representation (1/6)

Question
How can we represent in a Relational Database
the set of worlds which are contained in a context
specifier, for each MXML node?




                                                     16
Context Representation (1/6)
  Naive Representation of Context

Possible Worlds Table:
Assigns a unique ID to each possible
combination of dimension values (world).

Explicit Context Table:
Represents the explicit context (set of
worlds) for a MXML node.

Inherited Context Coverage Table:
Assigns an inherited context coverage
(set of worlds) to a MXML node.


                                           17
Context Representation (2/6)
Naive Representation of Context




                                  18
Context Representation (1/7)
Problems
of Naive Representation of Context
 It is needed one row for each possible world in the
 Possible Words Table
 More than one entries in the Explicit Context Table
 or the Inherited Coverage Table are required to
 represent the context of one MXML node
 SQL queries derived from MXML queries contain
 joins with the Possible Words Table

                                                 19
Context Representation (2/7)
Ordered-Based Representation of Context
Basic idea: Total ordering of worlds based on:
  Total ordering of dimensions
  Total ordering of dimension values
For k dimensions with each dimension i having zi
possible values, we may have n=z1*z2*….*zk
possible ordered worlds.
Each world is assigned a unique integer value
between 1 and n (w1 to wn).
                                                   20
Context Representation (3/7)
Ordered-Based Representation of Context

                                    dimensions ordering

                                          dimension values
                                              ordering




                                    possible worlds
                                    ordering



                                                       21
Context Representation (4/7)
Ordered-Based Representation of Context

World Vector:
  A binary number representing a context specifier.
The position of every bit corresponds to the
position of a world in the total ordering of all
possible worlds.
  Each bit of the world vector has two possible
values: 1 if the corresponding world exists in
context specifier or 0 if it does not)
 binary digit for W1   ……       binary digit for Wi       ……      binary digit for Wn
                            1 or 0: world exists or not        n=possible worlds number

possible worlds ordering

                                                                                      22
Context Representation (5/7)
Ordered-Based
Representation of Context




Finding position “i” of a world (belonging to a context
specifier) in the world vector
Ex: node 27 ”ed=en” => world_vector = 0011 ,positions 3 (w3) and 4 (w4)
   ordered worlds:
                     w1=(gr,stud)   w2=(gr,lib)   w3=(en,stud)   w4=(en,lib)
                                                                          23
Context Representation (6/7)
Ordered-Based
Representation of Context


                            Finding worlds
                            (belonging to a context specifier)
                            from
                            the position of the “1” bit values
                            in a world vector

                            Ex: world_vector of node 27 = 0011



                                  (en,stud)   (en,lib)   = “ed=en”

                                                                     24
Context Representation (7/7)
 Ordered-Based
 Representation of Context

Explicit Context Table:
Assigns an explicit context
(expressed in binary format
according to world vector
representation) to a MXML node.
Inherited Context Coverage Table:
Assigns an inherited context coverage
(expressed in binary format according to
world vector representation) to a MXML
node.
                                           25
Multidimensional XPath (MXPath) (1/2)

MXPath:
   An extension of XPath able to easily express
   context-aware queries on MXML data.
   Both explicit context (ec) and inherited context
   coverage (icc) are used to navigate over
   multidimensional elements and attributes.
   Conditions on the explicit context at any point
   of the path are allowed.
   Both multidimensional and context nodes can
   be returned.
                                                 26
Multidimensional XPath (MXPath) (2/2)
MXPath example:
[icc() >= “-”],/child::book
/child::cover[ec() >= “ed=gr”]/child->picture

                                 Query in English:
                                 Find the (multidimensional) sub-
                     Result      element picture of element cover of
                                 the greek edition of the book.

                                 cover[ec() >= “ed=gr”]
                                 is an explicit context qualifier. The
                                 function ec() returns the explicit
                                 context of a node. The above qualifier
                                 says that the ec of the node cover must
                                 be superset of the context described
                                 by the context specifier [ed=gr].
                                                                    27
Context Comparison (1/2)
 MXPath query example:
 [icc() >= “-”],/child::book
 /child::cover[ec() >= “ed=gr”]/child->picture

Basic idea
Using expression [ec( )>=“ed=gr”], we need to compare the
context specifier “ed=gr” with the context specifiers, which are
stored in the Relational Database in order to evaluate MXML
query.

How can we do this using the Ordered-Based representation?

                                                             28
Context Comparison (2/2)
   Let Q1(stored),Q2(query) context specifiers and
   G(Q1),G(Q2) the binary world vectors of Q1,Q2
Comparing Q1 with Q2:
Q1=Q2 <=> G(Q1)=G(Q2) equivalently
Q1=Q2 <=> (G(Q1) XOR G(Q2))=0
Q1!=Q2 <=> NOT(G(Q1)=G(Q2))
Q1≥Q2 <=> (G(Q1) AND G(Q2))=G(Q2)
Q1>Q2 <=> ((G(Q1) AND G(Q2))=G(Q2)) AND (G(Q1)≠G(Q2))
Q1≤Q2 if Q2≥Q1 and Q1<Q2 if Q2>Q1

Note: These rules help on transforming MXML queries to SQL queries

                                                                     29
Summary
  MXML data representation
  Storing MXML in Relational DB
 (2 relational schemas were presented)
  MXML querying using MXPath & Query transformation
  including context representation


Future work
 Algorithm construction and evaluation for query
 transformation
 Use of alternative indexing techniques for improving
 relational schema and query performance
                                                        30
References
1. N. Fousteris, Y. Stavrakas, and M. Gergatsoulis.
   Multidimensional XPath. In Proc. of iiWAS 2008 , pp. 162-169.
   ACM, 2008 .
2. Y. Stavrakas, and M. Gergatsoulis. Multidimensional
   Semistructured Data: Representing Context-Dependent
   Information on the Web. In Proc. of CAiSE'02, pp. 183-199,
   Springer 2002.
3. I. Tatarinov, S. Viglas, K. S. Beyer, J. Shanmugasundaram,
   E. J. Shekita, and C. Zhang. Storing and querying ordered
   XML using a relational database system. In Proc. of the 2002
   ACM SIGMOD Int.Conf. on Management of Data, pp. 204-
   215. ACM, 2002.




                                                             31
Thank you..




              32

Mais conteúdo relacionado

Destaque

Non-Functional Testing at London Stock Exchange
Non-Functional Testing at  London Stock ExchangeNon-Functional Testing at  London Stock Exchange
Non-Functional Testing at London Stock ExchangeIosif Itkin
 
Reconciliation Testing Aspects of Trading Systems Software Failures
Reconciliation Testing Aspects of Trading Systems Software FailuresReconciliation Testing Aspects of Trading Systems Software Failures
Reconciliation Testing Aspects of Trading Systems Software FailuresIosif Itkin
 
Tools of the Trade: Load Testing - Ignite session at WebPerfDays NY 14
Tools of the Trade: Load Testing -  Ignite session at WebPerfDays NY 14Tools of the Trade: Load Testing -  Ignite session at WebPerfDays NY 14
Tools of the Trade: Load Testing - Ignite session at WebPerfDays NY 14Alexander Podelko
 
Financial derivatives ppt
Financial derivatives pptFinancial derivatives ppt
Financial derivatives pptVaishnaviSavant
 
Writing Test Cases in Agile
Writing Test Cases in AgileWriting Test Cases in Agile
Writing Test Cases in AgileSaroj Singh
 

Destaque (7)

Non-Functional Testing at London Stock Exchange
Non-Functional Testing at  London Stock ExchangeNon-Functional Testing at  London Stock Exchange
Non-Functional Testing at London Stock Exchange
 
Reconciliation Testing Aspects of Trading Systems Software Failures
Reconciliation Testing Aspects of Trading Systems Software FailuresReconciliation Testing Aspects of Trading Systems Software Failures
Reconciliation Testing Aspects of Trading Systems Software Failures
 
Tools of the Trade: Load Testing - Ignite session at WebPerfDays NY 14
Tools of the Trade: Load Testing -  Ignite session at WebPerfDays NY 14Tools of the Trade: Load Testing -  Ignite session at WebPerfDays NY 14
Tools of the Trade: Load Testing - Ignite session at WebPerfDays NY 14
 
Guide to OTC Trading
Guide to OTC TradingGuide to OTC Trading
Guide to OTC Trading
 
Ecommerce Website Testing Checklist
Ecommerce Website Testing ChecklistEcommerce Website Testing Checklist
Ecommerce Website Testing Checklist
 
Financial derivatives ppt
Financial derivatives pptFinancial derivatives ppt
Financial derivatives ppt
 
Writing Test Cases in Agile
Writing Test Cases in AgileWriting Test Cases in Agile
Writing Test Cases in Agile
 

Semelhante a MXML Storage and the problem of manipulation of context

Probabilistic models (part 1)
Probabilistic models (part 1)Probabilistic models (part 1)
Probabilistic models (part 1)KU Leuven
 
Mapping Subsets of Scholarly Information
Mapping Subsets of Scholarly InformationMapping Subsets of Scholarly Information
Mapping Subsets of Scholarly InformationPaul Houle
 
Tg noh jeju_workshop
Tg noh jeju_workshopTg noh jeju_workshop
Tg noh jeju_workshopTae-Gil Noh
 
X-RECOSA: MULTI-SCALE CONTEXT AGGREGATION FOR MULTI-TURN DIALOGUE GENERATION
X-RECOSA: MULTI-SCALE CONTEXT AGGREGATION FOR MULTI-TURN DIALOGUE GENERATIONX-RECOSA: MULTI-SCALE CONTEXT AGGREGATION FOR MULTI-TURN DIALOGUE GENERATION
X-RECOSA: MULTI-SCALE CONTEXT AGGREGATION FOR MULTI-TURN DIALOGUE GENERATIONIJCI JOURNAL
 
Mining Features from the Object-Oriented Source Code of Software Variants by ...
Mining Features from the Object-Oriented Source Code of Software Variants by ...Mining Features from the Object-Oriented Source Code of Software Variants by ...
Mining Features from the Object-Oriented Source Code of Software Variants by ...Ra'Fat Al-Msie'deen
 
Class 32: Interpreters
Class 32: InterpretersClass 32: Interpreters
Class 32: InterpretersDavid Evans
 
Extending the knowledge level of cognitive architectures with Conceptual Spac...
Extending the knowledge level of cognitive architectures with Conceptual Spac...Extending the knowledge level of cognitive architectures with Conceptual Spac...
Extending the knowledge level of cognitive architectures with Conceptual Spac...Antonio Lieto
 
Deep Learning, Keras, and TensorFlow
Deep Learning, Keras, and TensorFlowDeep Learning, Keras, and TensorFlow
Deep Learning, Keras, and TensorFlowOswald Campesato
 
Distributed System by Pratik Tambekar
Distributed System by Pratik TambekarDistributed System by Pratik Tambekar
Distributed System by Pratik TambekarPratik Tambekar
 
Mapping Problem Domain Objects to Object-Persistence Formats(OOAD)
Mapping Problem Domain Objects to Object-Persistence Formats(OOAD)Mapping Problem Domain Objects to Object-Persistence Formats(OOAD)
Mapping Problem Domain Objects to Object-Persistence Formats(OOAD)Meenakshi Devi
 
Xml query language and navigation
Xml query language and navigationXml query language and navigation
Xml query language and navigationRaghu nath
 
Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06Barry DeCicco
 
Data integration with a façade. The case of knowledge graph construction.
Data integration with a façade. The case of knowledge graph construction.Data integration with a façade. The case of knowledge graph construction.
Data integration with a façade. The case of knowledge graph construction.Enrico Daga
 

Semelhante a MXML Storage and the problem of manipulation of context (20)

Probabilistic models (part 1)
Probabilistic models (part 1)Probabilistic models (part 1)
Probabilistic models (part 1)
 
Statistics lab 1
Statistics lab 1Statistics lab 1
Statistics lab 1
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
Mapping Subsets of Scholarly Information
Mapping Subsets of Scholarly InformationMapping Subsets of Scholarly Information
Mapping Subsets of Scholarly Information
 
PAM.ppt
PAM.pptPAM.ppt
PAM.ppt
 
Tg noh jeju_workshop
Tg noh jeju_workshopTg noh jeju_workshop
Tg noh jeju_workshop
 
Dvm
DvmDvm
Dvm
 
X-RECOSA: MULTI-SCALE CONTEXT AGGREGATION FOR MULTI-TURN DIALOGUE GENERATION
X-RECOSA: MULTI-SCALE CONTEXT AGGREGATION FOR MULTI-TURN DIALOGUE GENERATIONX-RECOSA: MULTI-SCALE CONTEXT AGGREGATION FOR MULTI-TURN DIALOGUE GENERATION
X-RECOSA: MULTI-SCALE CONTEXT AGGREGATION FOR MULTI-TURN DIALOGUE GENERATION
 
Mining Features from the Object-Oriented Source Code of Software Variants by ...
Mining Features from the Object-Oriented Source Code of Software Variants by ...Mining Features from the Object-Oriented Source Code of Software Variants by ...
Mining Features from the Object-Oriented Source Code of Software Variants by ...
 
Vsm lsi
Vsm lsiVsm lsi
Vsm lsi
 
CNN for modeling sentence
CNN for modeling sentenceCNN for modeling sentence
CNN for modeling sentence
 
Lattice2 tree
Lattice2 treeLattice2 tree
Lattice2 tree
 
Class 32: Interpreters
Class 32: InterpretersClass 32: Interpreters
Class 32: Interpreters
 
Extending the knowledge level of cognitive architectures with Conceptual Spac...
Extending the knowledge level of cognitive architectures with Conceptual Spac...Extending the knowledge level of cognitive architectures with Conceptual Spac...
Extending the knowledge level of cognitive architectures with Conceptual Spac...
 
Deep Learning, Keras, and TensorFlow
Deep Learning, Keras, and TensorFlowDeep Learning, Keras, and TensorFlow
Deep Learning, Keras, and TensorFlow
 
Distributed System by Pratik Tambekar
Distributed System by Pratik TambekarDistributed System by Pratik Tambekar
Distributed System by Pratik Tambekar
 
Mapping Problem Domain Objects to Object-Persistence Formats(OOAD)
Mapping Problem Domain Objects to Object-Persistence Formats(OOAD)Mapping Problem Domain Objects to Object-Persistence Formats(OOAD)
Mapping Problem Domain Objects to Object-Persistence Formats(OOAD)
 
Xml query language and navigation
Xml query language and navigationXml query language and navigation
Xml query language and navigation
 
Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06
 
Data integration with a façade. The case of knowledge graph construction.
Data integration with a façade. The case of knowledge graph construction.Data integration with a façade. The case of knowledge graph construction.
Data integration with a façade. The case of knowledge graph construction.
 

Mais de Giannis Tsakonas

Αρχειακά Μεταδεδομένα: Πρότυπα και Διαχείριση στον Παγκόσμιο Ιστό
Αρχειακά Μεταδεδομένα: Πρότυπα και Διαχείριση στον Παγκόσμιο ΙστόΑρχειακά Μεταδεδομένα: Πρότυπα και Διαχείριση στον Παγκόσμιο Ιστό
Αρχειακά Μεταδεδομένα: Πρότυπα και Διαχείριση στον Παγκόσμιο ΙστόGiannis Tsakonas
 
The “Nomenclature of Multidimensionality” in the Digital Libraries Evaluation...
The “Nomenclature of Multidimensionality” in the Digital Libraries Evaluation...The “Nomenclature of Multidimensionality” in the Digital Libraries Evaluation...
The “Nomenclature of Multidimensionality” in the Digital Libraries Evaluation...Giannis Tsakonas
 
Increasing traceability of physical library items through Koha: the case of S...
Increasing traceability of physical library items through Koha: the case of S...Increasing traceability of physical library items through Koha: the case of S...
Increasing traceability of physical library items through Koha: the case of S...Giannis Tsakonas
 
Ακαδημαϊκές Βιβλιοθήκες στην Πάτρα: Προηγμένες υπηρεσίες, δικτύωση & προοπτικές
Ακαδημαϊκές Βιβλιοθήκες στην Πάτρα: Προηγμένες υπηρεσίες, δικτύωση & προοπτικέςΑκαδημαϊκές Βιβλιοθήκες στην Πάτρα: Προηγμένες υπηρεσίες, δικτύωση & προοπτικές
Ακαδημαϊκές Βιβλιοθήκες στην Πάτρα: Προηγμένες υπηρεσίες, δικτύωση & προοπτικέςGiannis Tsakonas
 
We were group no 2: notes for the MLAS2015 workshop
We were group no 2: notes for the MLAS2015 workshopWe were group no 2: notes for the MLAS2015 workshop
We were group no 2: notes for the MLAS2015 workshopGiannis Tsakonas
 
Βιβλιοθήκες & Πολιτισμός: τα προφανή και τα ευνόητα
Βιβλιοθήκες & Πολιτισμός: τα προφανή και τα ευνόηταΒιβλιοθήκες & Πολιτισμός: τα προφανή και τα ευνόητα
Βιβλιοθήκες & Πολιτισμός: τα προφανή και τα ευνόηταGiannis Tsakonas
 
{Tech}changes: the technological state of Greek Libraries.
{Tech}changes: the technological state of Greek Libraries.{Tech}changes: the technological state of Greek Libraries.
{Tech}changes: the technological state of Greek Libraries.Giannis Tsakonas
 
Affective relationships between users & libraries in times of economic stress
Affective relationships between users & libraries in times of economic stressAffective relationships between users & libraries in times of economic stress
Affective relationships between users & libraries in times of economic stressGiannis Tsakonas
 
Charting the Digital Library Evaluation Domain with a Semantically Enhanced M...
Charting the Digital Library Evaluation Domain with a Semantically Enhanced M...Charting the Digital Library Evaluation Domain with a Semantically Enhanced M...
Charting the Digital Library Evaluation Domain with a Semantically Enhanced M...Giannis Tsakonas
 
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - Σεμινάριο Κύπρου
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - Σεμινάριο ΚύπρουΔεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - Σεμινάριο Κύπρου
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - Σεμινάριο ΚύπρουGiannis Tsakonas
 
FRBR και Linked Data - Σεμινάριο Αθήνας
FRBR και Linked Data -  Σεμινάριο ΑθήναςFRBR και Linked Data -  Σεμινάριο Αθήνας
FRBR και Linked Data - Σεμινάριο ΑθήναςGiannis Tsakonas
 
Automatic Medical Document Generation via Spatial SNOMED Elements in Hysteros...
Automatic Medical Document Generation via Spatial SNOMED Elements in Hysteros...Automatic Medical Document Generation via Spatial SNOMED Elements in Hysteros...
Automatic Medical Document Generation via Spatial SNOMED Elements in Hysteros...Giannis Tsakonas
 
Policies for geospatial collections: a research in US and Canadian academic l...
Policies for geospatial collections: a research in US and Canadian academic l...Policies for geospatial collections: a research in US and Canadian academic l...
Policies for geospatial collections: a research in US and Canadian academic l...Giannis Tsakonas
 
Developing a Metadata Model for Historic Buildings: Describing and Linking Ar...
Developing a Metadata Model for Historic Buildings: Describing and Linking Ar...Developing a Metadata Model for Historic Buildings: Describing and Linking Ar...
Developing a Metadata Model for Historic Buildings: Describing and Linking Ar...Giannis Tsakonas
 
Query Expansion and Context: Thoughts on Language, Meaning and Knowledge Orga...
Query Expansion and Context: Thoughts on Language, Meaning and Knowledge Orga...Query Expansion and Context: Thoughts on Language, Meaning and Knowledge Orga...
Query Expansion and Context: Thoughts on Language, Meaning and Knowledge Orga...Giannis Tsakonas
 
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - FRBR και Linked Data
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - FRBR και Linked DataΔεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - FRBR και Linked Data
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - FRBR και Linked DataGiannis Tsakonas
 
Open Bibliographic Data and E-LIS
Open Bibliographic Data and E-LISOpen Bibliographic Data and E-LIS
Open Bibliographic Data and E-LISGiannis Tsakonas
 
Dileo Presentation (in English)
Dileo Presentation (in English)Dileo Presentation (in English)
Dileo Presentation (in English)Giannis Tsakonas
 
Evaluation Insights to Key Processes of Digital Repositories
Evaluation Insights to Key Processes of Digital RepositoriesEvaluation Insights to Key Processes of Digital Repositories
Evaluation Insights to Key Processes of Digital RepositoriesGiannis Tsakonas
 
E-LIS, το ηλεκτρονικό αρχείο για τη Βιβλιοθηκονομία και την Επιστήμη της Πληρ...
E-LIS, το ηλεκτρονικό αρχείο για τη Βιβλιοθηκονομία και την Επιστήμη της Πληρ...E-LIS, το ηλεκτρονικό αρχείο για τη Βιβλιοθηκονομία και την Επιστήμη της Πληρ...
E-LIS, το ηλεκτρονικό αρχείο για τη Βιβλιοθηκονομία και την Επιστήμη της Πληρ...Giannis Tsakonas
 

Mais de Giannis Tsakonas (20)

Αρχειακά Μεταδεδομένα: Πρότυπα και Διαχείριση στον Παγκόσμιο Ιστό
Αρχειακά Μεταδεδομένα: Πρότυπα και Διαχείριση στον Παγκόσμιο ΙστόΑρχειακά Μεταδεδομένα: Πρότυπα και Διαχείριση στον Παγκόσμιο Ιστό
Αρχειακά Μεταδεδομένα: Πρότυπα και Διαχείριση στον Παγκόσμιο Ιστό
 
The “Nomenclature of Multidimensionality” in the Digital Libraries Evaluation...
The “Nomenclature of Multidimensionality” in the Digital Libraries Evaluation...The “Nomenclature of Multidimensionality” in the Digital Libraries Evaluation...
The “Nomenclature of Multidimensionality” in the Digital Libraries Evaluation...
 
Increasing traceability of physical library items through Koha: the case of S...
Increasing traceability of physical library items through Koha: the case of S...Increasing traceability of physical library items through Koha: the case of S...
Increasing traceability of physical library items through Koha: the case of S...
 
Ακαδημαϊκές Βιβλιοθήκες στην Πάτρα: Προηγμένες υπηρεσίες, δικτύωση & προοπτικές
Ακαδημαϊκές Βιβλιοθήκες στην Πάτρα: Προηγμένες υπηρεσίες, δικτύωση & προοπτικέςΑκαδημαϊκές Βιβλιοθήκες στην Πάτρα: Προηγμένες υπηρεσίες, δικτύωση & προοπτικές
Ακαδημαϊκές Βιβλιοθήκες στην Πάτρα: Προηγμένες υπηρεσίες, δικτύωση & προοπτικές
 
We were group no 2: notes for the MLAS2015 workshop
We were group no 2: notes for the MLAS2015 workshopWe were group no 2: notes for the MLAS2015 workshop
We were group no 2: notes for the MLAS2015 workshop
 
Βιβλιοθήκες & Πολιτισμός: τα προφανή και τα ευνόητα
Βιβλιοθήκες & Πολιτισμός: τα προφανή και τα ευνόηταΒιβλιοθήκες & Πολιτισμός: τα προφανή και τα ευνόητα
Βιβλιοθήκες & Πολιτισμός: τα προφανή και τα ευνόητα
 
{Tech}changes: the technological state of Greek Libraries.
{Tech}changes: the technological state of Greek Libraries.{Tech}changes: the technological state of Greek Libraries.
{Tech}changes: the technological state of Greek Libraries.
 
Affective relationships between users & libraries in times of economic stress
Affective relationships between users & libraries in times of economic stressAffective relationships between users & libraries in times of economic stress
Affective relationships between users & libraries in times of economic stress
 
Charting the Digital Library Evaluation Domain with a Semantically Enhanced M...
Charting the Digital Library Evaluation Domain with a Semantically Enhanced M...Charting the Digital Library Evaluation Domain with a Semantically Enhanced M...
Charting the Digital Library Evaluation Domain with a Semantically Enhanced M...
 
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - Σεμινάριο Κύπρου
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - Σεμινάριο ΚύπρουΔεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - Σεμινάριο Κύπρου
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - Σεμινάριο Κύπρου
 
FRBR και Linked Data - Σεμινάριο Αθήνας
FRBR και Linked Data -  Σεμινάριο ΑθήναςFRBR και Linked Data -  Σεμινάριο Αθήνας
FRBR και Linked Data - Σεμινάριο Αθήνας
 
Automatic Medical Document Generation via Spatial SNOMED Elements in Hysteros...
Automatic Medical Document Generation via Spatial SNOMED Elements in Hysteros...Automatic Medical Document Generation via Spatial SNOMED Elements in Hysteros...
Automatic Medical Document Generation via Spatial SNOMED Elements in Hysteros...
 
Policies for geospatial collections: a research in US and Canadian academic l...
Policies for geospatial collections: a research in US and Canadian academic l...Policies for geospatial collections: a research in US and Canadian academic l...
Policies for geospatial collections: a research in US and Canadian academic l...
 
Developing a Metadata Model for Historic Buildings: Describing and Linking Ar...
Developing a Metadata Model for Historic Buildings: Describing and Linking Ar...Developing a Metadata Model for Historic Buildings: Describing and Linking Ar...
Developing a Metadata Model for Historic Buildings: Describing and Linking Ar...
 
Query Expansion and Context: Thoughts on Language, Meaning and Knowledge Orga...
Query Expansion and Context: Thoughts on Language, Meaning and Knowledge Orga...Query Expansion and Context: Thoughts on Language, Meaning and Knowledge Orga...
Query Expansion and Context: Thoughts on Language, Meaning and Knowledge Orga...
 
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - FRBR και Linked Data
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - FRBR και Linked DataΔεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - FRBR και Linked Data
Δεδομένα Βιβλιοθηκών στο μελλοντικό ψηφιακό περιβάλλον - FRBR και Linked Data
 
Open Bibliographic Data and E-LIS
Open Bibliographic Data and E-LISOpen Bibliographic Data and E-LIS
Open Bibliographic Data and E-LIS
 
Dileo Presentation (in English)
Dileo Presentation (in English)Dileo Presentation (in English)
Dileo Presentation (in English)
 
Evaluation Insights to Key Processes of Digital Repositories
Evaluation Insights to Key Processes of Digital RepositoriesEvaluation Insights to Key Processes of Digital Repositories
Evaluation Insights to Key Processes of Digital Repositories
 
E-LIS, το ηλεκτρονικό αρχείο για τη Βιβλιοθηκονομία και την Επιστήμη της Πληρ...
E-LIS, το ηλεκτρονικό αρχείο για τη Βιβλιοθηκονομία και την Επιστήμη της Πληρ...E-LIS, το ηλεκτρονικό αρχείο για τη Βιβλιοθηκονομία και την Επιστήμη της Πληρ...
E-LIS, το ηλεκτρονικό αρχείο για τη Βιβλιοθηκονομία και την Επιστήμη της Πληρ...
 

Último

Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 

Último (20)

Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 

MXML Storage and the problem of manipulation of context

  • 1. 1st Workshop on Digital Information Management March, 30-31, 2011 Corfu, Greece MXML Storage and the Problem of Manipulation of Context Nikolaos Fousteris 1 , Manolis Gergatsoulis 1 , Yannis Stavrakas 2 1 Department of Archives and Library Science, 2 Institutefor the Management Ionian University of Information Systems (IMIS), Ioannou Theotoki 72,49100 Corfu, Greece. R. C. Athena, {nfouster,manolis}@ionio.gr G. Mpakou 17, 11524, Athens,Greece. yannis@inmis.gr
  • 2. Introduction & Motivation The problem of storing and querying XML data using relational databases has been considered a lot Multidimensional XML is an extension of XML and it is used for representing data that assume different facets, having different values or structure, under different contexts We expand the problem of storing and querying XML to multidimensional XML data 2
  • 3. Outline XML Storage Multidimensional XML(MXML) Fundamental concepts MXML example and graphical representation MXML Storage Two storing approaches are presented Context Representation Multidimensional XPath (MXPath) Context Comparison Summary & Future work 3
  • 4. XML Storage (1/2) Includes techniques to store XML data in Relational Databases XML applications (internet applications) are able to exploit the advantages of the RDBMS technology Operations over XML data, are transformed to operations over the Relational Schema 4
  • 5. XML Storage (2/2) Methodology A Relational Schema is chosen for storing XML data XML queries are produced by applications XML queries are translated to SQL queries SQL queries are executed Results are translated back to XML and returned to the application Techniques Schema Based Schema Oblivious 5
  • 6. Multidimensional XML (MXML) Fundamental Concepts (1/3) MXML is an extension of XML In MXML data assume different facets, having different value or structure, under different contexts according to a number of dimensions which may be applied to elements and attributes 6
  • 7. MXML – Fundamental Concepts (2/3) Dimension: is a variable. Assigning different values for each dimension it is possible to construct different environments for MXML data World: represents an environment under which data obtain a meaning and is determined by assigning to every dimension a single value Context Specifier: specifies a set of worlds (context) under which a facet of an MXML element or attribute, is the holding facet of this element or attribute 7
  • 8. MXML – Example <book isbn=[edition=english]"0-13-110362-8"[/] Multidimensional [edition=greek]"0-13-110370-9"[/]> elements/attributes are <title>The C programming language</title> elements/attributes that <authors> have different facets <author>Brian W. Kernighan</author> under different <author>Dennis M. Ritchie</author> contexts. </authors> <@publisher> Each multidimensional element/attribute [edition = english] <publisher>Prentice Hall</publisher>[/] contains one or more [edition = greek] <publisher>Klidarithmos</publisher>[/] facets, called Context </@publisher> element/attributes. <@translator> [edition = greek] <translator>Thomas Moraitis</translator>[/] </@translator> <@price> 8 …….
  • 10. MXML – Fundamental Concepts (3/3) Explicit Context: Is the true context only within the boundaries of a single multidimensional element/attribute. Inherited Context: Is the context, which is inherited from a ancestor node to a descendant node in the MXML graph. Inherited Context Coverage: It constraints the inherited context of a node, so as to contain only the worlds under which the node has access to some value node. 10
  • 11. MXML Storage (1/2) MXML storage includes techniques that store MXML data in Relational Databases. Applications using MXML storage are able to exploit the advantages of the RDBMS technology. MXML additional features (context, different types of MXML nodes/edges etc.) should be considered. 11
  • 12. MXML Storage (2/2) Naive approach Uses a single table (Node Table), to store all information contained in a MXML document. Each row of the table represents a MXML node of the MXML graph. Type Approach MXML nodes are divided into groups according to their type. Each group is stored in a separate table named after the type of the nodes. 12
  • 13. Naive Approach Node Table: Stores each MXML node in a row. 13
  • 14. Type Approach Type Tables: Store each MXML node in a row of a specific table according to node’s type. 14
  • 15. Comparison Naive approach is straightforward appear many NULL values queries involve a large number of self-joins of the Node Table Type Approach avoids NULL values reduces the size of the tables involved in joins (performance) 15
  • 16. Context Representation (1/6) Question How can we represent in a Relational Database the set of worlds which are contained in a context specifier, for each MXML node? 16
  • 17. Context Representation (1/6) Naive Representation of Context Possible Worlds Table: Assigns a unique ID to each possible combination of dimension values (world). Explicit Context Table: Represents the explicit context (set of worlds) for a MXML node. Inherited Context Coverage Table: Assigns an inherited context coverage (set of worlds) to a MXML node. 17
  • 18. Context Representation (2/6) Naive Representation of Context 18
  • 19. Context Representation (1/7) Problems of Naive Representation of Context It is needed one row for each possible world in the Possible Words Table More than one entries in the Explicit Context Table or the Inherited Coverage Table are required to represent the context of one MXML node SQL queries derived from MXML queries contain joins with the Possible Words Table 19
  • 20. Context Representation (2/7) Ordered-Based Representation of Context Basic idea: Total ordering of worlds based on: Total ordering of dimensions Total ordering of dimension values For k dimensions with each dimension i having zi possible values, we may have n=z1*z2*….*zk possible ordered worlds. Each world is assigned a unique integer value between 1 and n (w1 to wn). 20
  • 21. Context Representation (3/7) Ordered-Based Representation of Context dimensions ordering dimension values ordering possible worlds ordering 21
  • 22. Context Representation (4/7) Ordered-Based Representation of Context World Vector: A binary number representing a context specifier. The position of every bit corresponds to the position of a world in the total ordering of all possible worlds. Each bit of the world vector has two possible values: 1 if the corresponding world exists in context specifier or 0 if it does not) binary digit for W1 …… binary digit for Wi …… binary digit for Wn 1 or 0: world exists or not n=possible worlds number possible worlds ordering 22
  • 23. Context Representation (5/7) Ordered-Based Representation of Context Finding position “i” of a world (belonging to a context specifier) in the world vector Ex: node 27 ”ed=en” => world_vector = 0011 ,positions 3 (w3) and 4 (w4) ordered worlds: w1=(gr,stud) w2=(gr,lib) w3=(en,stud) w4=(en,lib) 23
  • 24. Context Representation (6/7) Ordered-Based Representation of Context Finding worlds (belonging to a context specifier) from the position of the “1” bit values in a world vector Ex: world_vector of node 27 = 0011 (en,stud) (en,lib) = “ed=en” 24
  • 25. Context Representation (7/7) Ordered-Based Representation of Context Explicit Context Table: Assigns an explicit context (expressed in binary format according to world vector representation) to a MXML node. Inherited Context Coverage Table: Assigns an inherited context coverage (expressed in binary format according to world vector representation) to a MXML node. 25
  • 26. Multidimensional XPath (MXPath) (1/2) MXPath: An extension of XPath able to easily express context-aware queries on MXML data. Both explicit context (ec) and inherited context coverage (icc) are used to navigate over multidimensional elements and attributes. Conditions on the explicit context at any point of the path are allowed. Both multidimensional and context nodes can be returned. 26
  • 27. Multidimensional XPath (MXPath) (2/2) MXPath example: [icc() >= “-”],/child::book /child::cover[ec() >= “ed=gr”]/child->picture Query in English: Find the (multidimensional) sub- Result element picture of element cover of the greek edition of the book. cover[ec() >= “ed=gr”] is an explicit context qualifier. The function ec() returns the explicit context of a node. The above qualifier says that the ec of the node cover must be superset of the context described by the context specifier [ed=gr]. 27
  • 28. Context Comparison (1/2) MXPath query example: [icc() >= “-”],/child::book /child::cover[ec() >= “ed=gr”]/child->picture Basic idea Using expression [ec( )>=“ed=gr”], we need to compare the context specifier “ed=gr” with the context specifiers, which are stored in the Relational Database in order to evaluate MXML query. How can we do this using the Ordered-Based representation? 28
  • 29. Context Comparison (2/2) Let Q1(stored),Q2(query) context specifiers and G(Q1),G(Q2) the binary world vectors of Q1,Q2 Comparing Q1 with Q2: Q1=Q2 <=> G(Q1)=G(Q2) equivalently Q1=Q2 <=> (G(Q1) XOR G(Q2))=0 Q1!=Q2 <=> NOT(G(Q1)=G(Q2)) Q1≥Q2 <=> (G(Q1) AND G(Q2))=G(Q2) Q1>Q2 <=> ((G(Q1) AND G(Q2))=G(Q2)) AND (G(Q1)≠G(Q2)) Q1≤Q2 if Q2≥Q1 and Q1<Q2 if Q2>Q1 Note: These rules help on transforming MXML queries to SQL queries 29
  • 30. Summary MXML data representation Storing MXML in Relational DB (2 relational schemas were presented) MXML querying using MXPath & Query transformation including context representation Future work Algorithm construction and evaluation for query transformation Use of alternative indexing techniques for improving relational schema and query performance 30
  • 31. References 1. N. Fousteris, Y. Stavrakas, and M. Gergatsoulis. Multidimensional XPath. In Proc. of iiWAS 2008 , pp. 162-169. ACM, 2008 . 2. Y. Stavrakas, and M. Gergatsoulis. Multidimensional Semistructured Data: Representing Context-Dependent Information on the Web. In Proc. of CAiSE'02, pp. 183-199, Springer 2002. 3. I. Tatarinov, S. Viglas, K. S. Beyer, J. Shanmugasundaram, E. J. Shekita, and C. Zhang. Storing and querying ordered XML using a relational database system. In Proc. of the 2002 ACM SIGMOD Int.Conf. on Management of Data, pp. 204- 215. ACM, 2002. 31