SlideShare a Scribd company logo
Development Of a New Indexing
Technique for XML Document Retrieval
by:

Amjad Ali Amjad
Agenda







Introduction
Background
Problem Statement
Proposed Solution
Results and discussions
Conclusion and future directions
Introduction







What is XML
XML is a markup language much like HTML
XML was designed to describe data
XML tags are not predefined. You must define your
own tags
XML uses a Document Type Definition (DTD) or
an XML Schema to describe the data
Introduction


(continue)

Example Doc 1:
<invoice>
<buyer>
<name>ABC Corp</name>
<address>1 Industrial Way</address>
</buyer>
<seller>
<name>Acme Inc</name>
<address>2 Acme Rd.</address>
</seller>
<item count=3>saw</item>
<item count=2>drill</item>
</invoice>
Introduction






(continue)

Database management systems are
increasingly being called upon to manage
semi-structured data: data with an irregular
or changing organization
Semi-structured data is often represented as
a graph (tree structure)
Evaluating queries over semi-structured data
involves navigating paths through this
relationship structure
Introduction






(continue)

Index Construction for efficient access
Traditional indexing Techniques are
applicable.
Parent child nesting relationship
Expensive querying for this
representation even with indexes
Introduction







(continue)

Building specialized data manager
For semi-structured data repository
Example projects LORE, Tamino,
XYZFind
Update causes a re-computation
How to deal with update problem
Introduction







(continue)

Relative Region Co-ordinate
Knowledge of start and end position
Within the parent element
Only need to update the portion of the
index file
Value indexes on attribute values
Introduction




(continue)

Term-based inverted indices on element
content when this is a large piece of
text.
Index on tag name (i.e given a tag
name we can return all the elements
with the specified tag.
Background





Position based indexing
Queries are processed by manipulating the
range of offsets of words, elements or
attributes.
In path-based indexing, the location of
words is expressed as structural elements
and the paths in tree structures are used for
the processing of query.
Background




(continue)

Bitcube: A three dimensional indexing
for XML Documents
According to this technique documents
can be hierarchically represented by
XML elements. XML documents are
represented and indexed.
Background




(continue)

Content and Structure in indexing and
ranking XML
Index structures with a ranking support are
therefore needed for fast access to relevant
parts of large documents collections. An
analysis reveals that ranking parameters
related to both the content and structure of
data are poorly supported by most known
XML indexes.
Background



(continue)

Ctree
It provides an indexing structure that is based
on two levels: path summary and detailed
element-level relationships. The first one, the
path summary, is a tree that is
distracted from the original data
Background



(continue)

Indexing for XML Siblings:
Given the importance of XPath based query access,
Grust proposed R-tree index, we refer to as wholetree indexes (WI). Such index, however, has a very
high cost for the following-sibling and precedingsibling axes. In this method they develop a family of
index structures, which refer to as splittree indexes
(SI), to address this problem, in which (i) XML data is
horizontally split by a simple, yet efficient criteria,
and (ii) the split value is associated with tree
labeling.
Background




(continue)

High-performance XML Storage/Retrieval
System.
The basic idea of this technique is to allocate a field
ID to each text data item of the XML element and to
register it in the structure index and text index. The
structure index manages the hierarchical structure of
each field, and the text index manages the field ID
and document ID in which query words appears. The
structure index is one big data tree and represents
the overlapped structure of documents.
Background




(continue)

Indexing documents for queries on
structure,content and attributes

It Explains position-based indexing and
path-based indexing to access XML
document by content, structure, or
attributes.
Background



(continue)

Extensible index technique
An extensible index technique is proposed to
express position information between nodes
in a XML document. It is an efficient index
technique that simplifies the comparative
object applied to a search query and
minimizes the reconstruction of index
structure by update operation. In addition,
they specially proposed extensible index
technique with deferred update.
Problem Statement


Support of element addressing




Index size becomes very large






Doc.ID should include NodeId (Xpath) + Offset
Xpath are long

Support of typed data
 Integer, float, simple types of XML schema

Requires classical indexes for certain
elements
Problem Statement


Query processing






(continue)

Structural joins
Text search
Exact search

Support of updates


Incremental updates would be a plus
Problem Statement




Evaluation criteria
Identifiers







By element scan

Update




By join algo.
By graph traversal
By OID comparison

Keyword Search




Per node or per document

Descendant/Ancestor Search




(continue)

Incremental

Index size


By B-tree traversal

Entry number

Entry size
Problem Statement






(continue)

indexing structures use which the absolute
address to pinpoint where data resides,
update causes a re-computation
If the update frequency is high the cost of
reconstruction is unbearable
Support of updating the indexes is not
considered in most of the indexing
techniques.
Problem Statement




(continue)

Updates are an issue in any such
labeling scheme. It is conceivable that a
complete re-labeling could be required
for each update,
the existing techniques do not support
the storage of multiple documents in a
single time.
Proposed Technique









An XML document instance is a plain-text file that
uses markup delimiters (tags) to define the logical
structure of a document in a hierarchical fashion.
Robert Korfhage proposed three purposes of indexing
in IR, which can best take advantage of structured
documents.
To permit easy location of documents by topic;
To define topic areas and hence relate one document
to another;
To predict relevance of a given document to given
information need.
Proposed Technique




(continue)

The current structured query and indexing
models for XML have not fulfilled these
requirements.
The ideal system seems to be one that will
provide efficient and comprehensive indexing
of document content and structure, and be
able to support the predicted degree of
relevance all matching documents have to a
particular query
Proposed Technique




(continue)

There is a node corresponding to each
element, with child nodes for subelements. However, all attributes of an
element node are clubbed together into
a single node, which is then stored as a
child node of that element node
The content of an element node, if any,
is pulled out into a separate child node.
Proposed Technique


Ancestor–descendant relationship




(continue)

a node(S1,E1,L1) is the ancestor of node
(S2,E2,L2) Iff S1<S2 ^ E1>E2

Parent–child relationship


a node (S1,E1,L1)is the parent of
node(S2,E2,L2) iff S1<S2^E1>E2 ^L1=
L2-1
Proposed Technique




(continue)

S1 and S2 are start labels, E1 and E2
are end labels, and L1 and L2 are level
labels in these formulae.
We address the update issue by leaving
gaps between successive label values.
Results and discussions


System architecture


Data Parser




(continue)

The Data Parser takes an XML document as
input, and produces a parse tree as output.

Data manager takes each node of tree
mark its indices and store it into
database.
Results and discussions




(continue)

If the node is of mixed type, with
multiple content parts interspersed with
sub-elements, each content part is
pulled out into a separate child node.
All processing instructions, comments,
and such are simply ignored
Conclusion and future directions




Reconstruction of index file due to a partial update is
a problem that XML database applications inevitably
have to face

We have developed the indexing system that
is based on the two indexing techniques
extensible index technique and the relative
region coordinate based indexing of XML
documents with our own proposed scheme
which assigns the level numbers to each node
of XML documents and document number to
each document.
Conclusion & future directions
(continue)




Update of the index structure which
increases the cost is successfully
removed as the index structure remains
unaffected after adding the new nodes.
Parent child and ancestor-descendent
relationship could be found easily for
efficient retrieval.
Conclusion & future directions
(continue)




all processing instructions, comments,
and such which are simply ignored. In a
future, it could be created yet another
child node of the element node with all
such data.
An index that is efficient for both
update and retrieval may not available.
Conclusion & future directions
(continue)




One of alternatives is building two
separate indices such that one is
suitable when update is frequent, the
other is better at query processing.
In this case, a transformation
mechanism between the indexing
structures is needed to be developed.

More Related Content

PDF
Effective Data Retrieval in XML using TreeMatch Algorithm
PDF
HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...
PDF
ENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIES
PDF
Expression of Query in XML object-oriented database
PPTX
ADB introduction
PDF
A Competent and Empirical Model of Distributed Clustering
PDF
Enhancing the labelling technique of
PDF
Catalog-based Conversion from Relational Database into XML Schema (XSD)
Effective Data Retrieval in XML using TreeMatch Algorithm
HOLISTIC EVALUATION OF XML QUERIES WITH STRUCTURAL PREFERENCES ON AN ANNOTATE...
ENHANCING KEYWORD SEARCH OVER RELATIONAL DATABASES USING ONTOLOGIES
Expression of Query in XML object-oriented database
ADB introduction
A Competent and Empirical Model of Distributed Clustering
Enhancing the labelling technique of
Catalog-based Conversion from Relational Database into XML Schema (XSD)

What's hot (16)

PDF
AtomiDB Dr Ashis Banerjee reviews
PDF
Towards a New Data Modelling Architecture - Part 1
PDF
TRANSFORMATION RULES FOR BUILDING OWL ONTOLOGIES FROM RELATIONAL DATABASES
PPTX
Presentation1
PPTX
Introduction to ER Diagrams
PPTX
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
PDF
Xml data clustering an overview
PDF
Part2- The Atomic Information Resource
PDF
Converting UML Class Diagrams into Temporal Object Relational DataBase
PPS
ความรู้เบื้องต้นฐานข้อมูล 1
DOCX
Data models
PDF
EFFICIENT SCHEMA BASED KEYWORD SEARCH IN RELATIONAL DATABASES
PDF
Dbms Notes Lecture 4 : Data Models in DBMS
PPTX
Data resource management and DSS
PDF
A unified approach for spatial data query
PPTX
NIF as a Multi-Model Semantic Information System
AtomiDB Dr Ashis Banerjee reviews
Towards a New Data Modelling Architecture - Part 1
TRANSFORMATION RULES FOR BUILDING OWL ONTOLOGIES FROM RELATIONAL DATABASES
Presentation1
Introduction to ER Diagrams
Fundamentals of Data Modeling and Database Design by Dr. Kamal Gulati
Xml data clustering an overview
Part2- The Atomic Information Resource
Converting UML Class Diagrams into Temporal Object Relational DataBase
ความรู้เบื้องต้นฐานข้อมูล 1
Data models
EFFICIENT SCHEMA BASED KEYWORD SEARCH IN RELATIONAL DATABASES
Dbms Notes Lecture 4 : Data Models in DBMS
Data resource management and DSS
A unified approach for spatial data query
NIF as a Multi-Model Semantic Information System
Ad

Viewers also liked (20)

DOCX
Oracle soa xml faq
PDF
XML in software development
PDF
Tool Development 04 - XML
PPT
2 dtd - validating xml documents
PPS
Milan Pištalo - EProBanking
PDF
EHP_PhD-Thesis
PDF
DSS ITSEC Conference 2012 - SIEM Q1 Labs IBM Security Systems Intelligence
PPTX
IK Profile PPT-NEW 03.12.15
PPS
La tecnologia y el mundial sudafrica 2010 1
 
DOC
Cómo hacer rentable un proyecto artístico
PDF
certificado UCLM - Administración y Dirección de Empresas Sostenibles
PDF
Fadi Amer - CV
PDF
Soluzioni Flakt Woods per Air Comfort e Fire Safety
PPTX
SegurosVeterinarios.com: Los Seguros Veterinarios y el Sector de las Mascotas
PDF
PDF
regioS 1 - Die NRP nach der Startphase
PDF
The Choice Islam and Christianity (volume two)
ODP
Scrum Con Exito
PDF
The Key To Marketing Technology is Breaking Down the Walls (Graham Brown mobi...
DOCX
Trabajo finalintegracioncruizc2
Oracle soa xml faq
XML in software development
Tool Development 04 - XML
2 dtd - validating xml documents
Milan Pištalo - EProBanking
EHP_PhD-Thesis
DSS ITSEC Conference 2012 - SIEM Q1 Labs IBM Security Systems Intelligence
IK Profile PPT-NEW 03.12.15
La tecnologia y el mundial sudafrica 2010 1
 
Cómo hacer rentable un proyecto artístico
certificado UCLM - Administración y Dirección de Empresas Sostenibles
Fadi Amer - CV
Soluzioni Flakt Woods per Air Comfort e Fire Safety
SegurosVeterinarios.com: Los Seguros Veterinarios y el Sector de las Mascotas
regioS 1 - Die NRP nach der Startphase
The Choice Islam and Christianity (volume two)
Scrum Con Exito
The Key To Marketing Technology is Breaking Down the Walls (Graham Brown mobi...
Trabajo finalintegracioncruizc2
Ad

Similar to Development of a new indexing technique for XML document retrieval (20)

PDF
International Journal of Computational Engineering Research(IJCER)
PDF
Holistic Evaluation of XML Queries with Structural Preferences on an Annotate...
PPTX
Adbms_unit1_1 - Copy.pptxzsszcsczsxczxcxzcxzc
PDF
Expression of Query in XML object-oriented database
PDF
Expression of Query in XML object-oriented database
PPTX
XML DATABASES in the Master of Engineering
PDF
Automatically converting tabular data to
PPTX
Adbms_unit1_1.pptx dsfdsfdfdfdfsdfdsfdsf
PPTX
Web data management (chapter-1)
PPT
ravenbenweb xml and its application .PPT
PDF
An Efficient Annotation of Search Results Based on Feature Ranking Approach f...
PDF
Annotating Search Results from Web Databases
PDF
M.sc. engg (ict) admission guide database management system 4
PDF
XML COMPACTION IMPROVEMENTS BASED ON BINARY STRING ENCODINGS
PDF
Xml document probabilistic
PDF
Space efficient structures for json documents
PDF
A Survey on Heterogeneous Data Exchange using Xml
PDF
RELATIONAL STORAGE FOR XML RULES........
PDF
RELATIONAL STORAGE FOR XML RULES
International Journal of Computational Engineering Research(IJCER)
Holistic Evaluation of XML Queries with Structural Preferences on an Annotate...
Adbms_unit1_1 - Copy.pptxzsszcsczsxczxcxzcxzc
Expression of Query in XML object-oriented database
Expression of Query in XML object-oriented database
XML DATABASES in the Master of Engineering
Automatically converting tabular data to
Adbms_unit1_1.pptx dsfdsfdfdfdfsdfdsfdsf
Web data management (chapter-1)
ravenbenweb xml and its application .PPT
An Efficient Annotation of Search Results Based on Feature Ranking Approach f...
Annotating Search Results from Web Databases
M.sc. engg (ict) admission guide database management system 4
XML COMPACTION IMPROVEMENTS BASED ON BINARY STRING ENCODINGS
Xml document probabilistic
Space efficient structures for json documents
A Survey on Heterogeneous Data Exchange using Xml
RELATIONAL STORAGE FOR XML RULES........
RELATIONAL STORAGE FOR XML RULES

Development of a new indexing technique for XML document retrieval

  • 1. Development Of a New Indexing Technique for XML Document Retrieval by: Amjad Ali Amjad
  • 3. Introduction      What is XML XML is a markup language much like HTML XML was designed to describe data XML tags are not predefined. You must define your own tags XML uses a Document Type Definition (DTD) or an XML Schema to describe the data
  • 4. Introduction  (continue) Example Doc 1: <invoice> <buyer> <name>ABC Corp</name> <address>1 Industrial Way</address> </buyer> <seller> <name>Acme Inc</name> <address>2 Acme Rd.</address> </seller> <item count=3>saw</item> <item count=2>drill</item> </invoice>
  • 5. Introduction    (continue) Database management systems are increasingly being called upon to manage semi-structured data: data with an irregular or changing organization Semi-structured data is often represented as a graph (tree structure) Evaluating queries over semi-structured data involves navigating paths through this relationship structure
  • 6. Introduction     (continue) Index Construction for efficient access Traditional indexing Techniques are applicable. Parent child nesting relationship Expensive querying for this representation even with indexes
  • 7. Introduction     (continue) Building specialized data manager For semi-structured data repository Example projects LORE, Tamino, XYZFind Update causes a re-computation How to deal with update problem
  • 8. Introduction     (continue) Relative Region Co-ordinate Knowledge of start and end position Within the parent element Only need to update the portion of the index file Value indexes on attribute values
  • 9. Introduction   (continue) Term-based inverted indices on element content when this is a large piece of text. Index on tag name (i.e given a tag name we can return all the elements with the specified tag.
  • 10. Background    Position based indexing Queries are processed by manipulating the range of offsets of words, elements or attributes. In path-based indexing, the location of words is expressed as structural elements and the paths in tree structures are used for the processing of query.
  • 11. Background   (continue) Bitcube: A three dimensional indexing for XML Documents According to this technique documents can be hierarchically represented by XML elements. XML documents are represented and indexed.
  • 12. Background   (continue) Content and Structure in indexing and ranking XML Index structures with a ranking support are therefore needed for fast access to relevant parts of large documents collections. An analysis reveals that ranking parameters related to both the content and structure of data are poorly supported by most known XML indexes.
  • 13. Background   (continue) Ctree It provides an indexing structure that is based on two levels: path summary and detailed element-level relationships. The first one, the path summary, is a tree that is distracted from the original data
  • 14. Background   (continue) Indexing for XML Siblings: Given the importance of XPath based query access, Grust proposed R-tree index, we refer to as wholetree indexes (WI). Such index, however, has a very high cost for the following-sibling and precedingsibling axes. In this method they develop a family of index structures, which refer to as splittree indexes (SI), to address this problem, in which (i) XML data is horizontally split by a simple, yet efficient criteria, and (ii) the split value is associated with tree labeling.
  • 15. Background   (continue) High-performance XML Storage/Retrieval System. The basic idea of this technique is to allocate a field ID to each text data item of the XML element and to register it in the structure index and text index. The structure index manages the hierarchical structure of each field, and the text index manages the field ID and document ID in which query words appears. The structure index is one big data tree and represents the overlapped structure of documents.
  • 16. Background   (continue) Indexing documents for queries on structure,content and attributes It Explains position-based indexing and path-based indexing to access XML document by content, structure, or attributes.
  • 17. Background   (continue) Extensible index technique An extensible index technique is proposed to express position information between nodes in a XML document. It is an efficient index technique that simplifies the comparative object applied to a search query and minimizes the reconstruction of index structure by update operation. In addition, they specially proposed extensible index technique with deferred update.
  • 18. Problem Statement  Support of element addressing   Index size becomes very large    Doc.ID should include NodeId (Xpath) + Offset Xpath are long Support of typed data  Integer, float, simple types of XML schema Requires classical indexes for certain elements
  • 19. Problem Statement  Query processing     (continue) Structural joins Text search Exact search Support of updates  Incremental updates would be a plus
  • 20. Problem Statement   Evaluation criteria Identifiers     By element scan Update   By join algo. By graph traversal By OID comparison Keyword Search   Per node or per document Descendant/Ancestor Search   (continue) Incremental Index size  By B-tree traversal Entry number Entry size
  • 21. Problem Statement    (continue) indexing structures use which the absolute address to pinpoint where data resides, update causes a re-computation If the update frequency is high the cost of reconstruction is unbearable Support of updating the indexes is not considered in most of the indexing techniques.
  • 22. Problem Statement   (continue) Updates are an issue in any such labeling scheme. It is conceivable that a complete re-labeling could be required for each update, the existing techniques do not support the storage of multiple documents in a single time.
  • 23. Proposed Technique      An XML document instance is a plain-text file that uses markup delimiters (tags) to define the logical structure of a document in a hierarchical fashion. Robert Korfhage proposed three purposes of indexing in IR, which can best take advantage of structured documents. To permit easy location of documents by topic; To define topic areas and hence relate one document to another; To predict relevance of a given document to given information need.
  • 24. Proposed Technique   (continue) The current structured query and indexing models for XML have not fulfilled these requirements. The ideal system seems to be one that will provide efficient and comprehensive indexing of document content and structure, and be able to support the predicted degree of relevance all matching documents have to a particular query
  • 25. Proposed Technique   (continue) There is a node corresponding to each element, with child nodes for subelements. However, all attributes of an element node are clubbed together into a single node, which is then stored as a child node of that element node The content of an element node, if any, is pulled out into a separate child node.
  • 26. Proposed Technique  Ancestor–descendant relationship   (continue) a node(S1,E1,L1) is the ancestor of node (S2,E2,L2) Iff S1<S2 ^ E1>E2 Parent–child relationship  a node (S1,E1,L1)is the parent of node(S2,E2,L2) iff S1<S2^E1>E2 ^L1= L2-1
  • 27. Proposed Technique   (continue) S1 and S2 are start labels, E1 and E2 are end labels, and L1 and L2 are level labels in these formulae. We address the update issue by leaving gaps between successive label values.
  • 28. Results and discussions  System architecture  Data Parser   (continue) The Data Parser takes an XML document as input, and produces a parse tree as output. Data manager takes each node of tree mark its indices and store it into database.
  • 29. Results and discussions   (continue) If the node is of mixed type, with multiple content parts interspersed with sub-elements, each content part is pulled out into a separate child node. All processing instructions, comments, and such are simply ignored
  • 30. Conclusion and future directions   Reconstruction of index file due to a partial update is a problem that XML database applications inevitably have to face We have developed the indexing system that is based on the two indexing techniques extensible index technique and the relative region coordinate based indexing of XML documents with our own proposed scheme which assigns the level numbers to each node of XML documents and document number to each document.
  • 31. Conclusion & future directions (continue)   Update of the index structure which increases the cost is successfully removed as the index structure remains unaffected after adding the new nodes. Parent child and ancestor-descendent relationship could be found easily for efficient retrieval.
  • 32. Conclusion & future directions (continue)   all processing instructions, comments, and such which are simply ignored. In a future, it could be created yet another child node of the element node with all such data. An index that is efficient for both update and retrieval may not available.
  • 33. Conclusion & future directions (continue)   One of alternatives is building two separate indices such that one is suitable when update is frequent, the other is better at query processing. In this case, a transformation mechanism between the indexing structures is needed to be developed.