SlideShare a Scribd company logo
XML , XML  Databases and M P EG-7 Deniz KILINÇ [email_address]
Content What is XML? XML and Related Technologies What is MPEG-7? XML Storage Using Databases What is a n  NXD (Native XML Database)? MPEG-7 and XML Relation’s Future
What is XML? <XML>
What is XML?   Developed  by  W3C  (World  Wide  Web Consortium)  Universal format for representing structured information It holds both data and metadata which is data about data With the assistance of XSL, XSLT, XPath and XLink technologies, filtering, ordering, calculation and integration processes must be fulfilled Since XML technology supports internet and network technology, HTTP   and SSL protocols are spontaneously supported
What is XML?   Learning, reading, implementing and testing the XML technology is  really easy.  It shortens the application development time like B2B.  Although XML is a simple document format, it is used in complex  application scenarios like RPC messaging.  XML processing and traversing tools are world-wide and  very cheap.  With the development of DOM which is a tree based processing tool, document traversing ha e become a world standard.
XML Real Life Scenarios  Using XML documents as data sources  Processing documents using DOM model  Processing and presentation using XSL, XSLT and  XPath technologies  Using XML documents in the integration of different systems  B2B applications  XMLRPC, XMLHTTP Web Ser ices  SOAP BizTalk  Using XML documents to standardize GUI (Graphical User Interface)  UIML (User Interface Markup Language) (WEB_20, 2004)  XAML (XML  Application Markup Language) (WEB_19, 2004)  Using XML data as  ActiveX component’s content  Using XML technology in different application  areas (MPEG-7, WML, RDF, CML, MathML ,  VoiceXML ,  TV-AnyTime , XHTML  …)
XML and Related Technologies XML Schema Structure definition and d ocument validation XSL Transformation - conversion from one document class to another XPath Extraction of information XLink Linking between documents XQuery Querying
XML and Related Technologies <XSL> XSLT  language  pro v ides  XML  documents  to  be  transformed
XML and Related Technologies <XPath> Purpose: Support addressing parts of an XML document D esigned to be used by both XSLT and XPointer Uses a compact, non-XML syntax to facilitate use within URIs &   XML attribute values /doc/chapter[title=&quot;Introduction&quot;]/section[1] selects the first section   of the chapter titled   “ Introduction” in the   doc document element
<?xml  v ersion=&quot;1.0&quot; encoding=&quot;iso-8859-9&quot;?>  <?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;HelloXS L .xsl&quot;?>   <ROOT>     <Content>First XSL Sample</Content> </ROOT>   <xsl:stylesheet xmlns:xsl= “ http://www.w3.org/1999/XSL/Transform ” v ersion=&quot;1.0&quot;>  <xsl:output method=&quot;html&quot;/>  <xsl:template  match=&quot;/&quot; >  <HTML><BODY><table border=&quot;1&quot;>  <tr><td bgcolor=&quot;si lv er&quot;> /ROOT/Content Query Result</td>  <td bgcolor=&quot;sil v er&quot;>  <font color=&quot;red&quot;><B>   <xsl:value-of  select=&quot;/ROOT/Content&quot; /></B>  </font> < /td></tr>  </table></BODY></HTML>  </xsl:template>  </xsl:stylesheet>
XSLT Output
What is  MPEG-7 ? MPEG-7, formally called “Multimedia   Content Description Interface”, is a   new standard for describing the content of   multimedia data . MPEG-7 is a means of attaching metadata   to multimedia content. Metadata can be stored together or   separately with the multimedia data Metada is kept as an XML file
What is  MPEG-7 ? MPEG-7 descriptions associated with it, may include: still pictures, graphics, 3D models, audio, speech, video, and composition information about how these elements are combined in a multimedia presentation (scenarios).
MPEG-7 Main Elements Description Tools Descriptors (D) Description Schemes (DS) Description Definition Language (DDL) System  Tools
MPEG-7 Main Elements 1- Descriptor (D) Is representation of  a  feature where a future is distinctive characteristic of data Define the syntax and the semantics of each feature (metadata element) Examples ; a time code for representing duration color moments and histogram for representing color character string representing title
MPEG-7 Main Elements 2- Descript ion Scheme (DS) Specifies the structure and semantics of the relationships between their components, that may be both Descriptors and Description Schemes Provides a solution to model and describe multimedia content in terms of structure and semantics Example;  A movie that temporally structured as scenes and shots, including some textual descriptors at scene level and color, motion and audio amplitude descriptors at the shot level.
MPEG-7 Main Elements 3-   Description Definition Language (DDL) D efine s  the syntax of the MPEG-7 Description Tools and to allow the creation of new Description Schemes and, possibly, Descriptors  A llow s  the extension and modification of existing Description Schemes
MPEG-7 Main Elements 4-   System  Tools T o support binary coded representation for efficient storage and transmission, transmission mechanisms (both for textual and binary formats), multiplexing of descriptions, synchronization of descriptions with content, management and protection of intellectual property in MPEG-7 descriptions
MPEG-7 Main Elements
MPEG-7 Applications MPEG-7 standard   organizes the example applications into three sets ; Pull applications   Applications such as storage and retrieval in audiovisual databases, delivery of pictures and video for professional media production, commercial musical applications, sound effects libraries, historical speech database, movie scene retrieval by memorable auditory events, and registration and retrieval of trademarks. Push applications   Applications such as user agent driven media selection and filtering, personalized television services, intelligent multimedia presentations, and information access facilities for people with special needs. Specialized professional applications   Applications that are particularly related to a specific professional environment, notably tele-shopping, bio-medical, remote sensing, educational, and surveillance applications.
Abstract Representation Of Possible Applications Using MPEG-7   <XML> <XML> <XML> <XML>
XML Storage Using Databases There are two different ways to &quot;store&quot; XML documents in a database  XML-enabled databases,  map the document's schema to a database schema and transfer data according to that mapping. have their own data model — relational, hierarchical, object-oriented — and map instances of the XML data model to instances of their data model.  Native XML databases  use a fixed set of structures that can store any XML document and use the XML data model directly .
What is a n  NXD  (Native XML Database)? The database is specialized for storing XML data and stores all components of the XML model intact  XML databases store XML documents as a set   in a   container or collection   which will be called a “collection” A  document within a container has a   unique name or document identifier (id) Must have  “round-tripping”  capability;  getting the same XML out of a system you put in
What is a n  NXD  (Native XML Database)? NXD features ; Storage Document Collections Querying Indexing Updates and Deletes Transactions, Locking, and Concurrency Application Programming Interfaces (APIs)
Storage There are two major choices in terms of how to store   a document Intact Not Intact
Storage Intact NXD Advantage Systems that store XML documents intact will gener- ally parse the XML in order to ensure it is well formed, or for validation   but otherwise store the documents unchanged.   This is useful for applications that require 100%round-tripping capability (in terms of byte compar- isons)   which is difficult to attain any other way. Disadvantage For certain applications and queries ,  it can take a long time   and a large amount of memory   to process a request,  T his is mostly due to the need to parse docu- ments to satisfy a query.
Document Collections  Many native XML databases support the notion of a collection. This plays a role similar to a table in a relational database or a directory in a file system.  For example, suppose you are using a native XML database to store sales orders. In this case, you might want to define a sales order collection so that queries over sales orders could be limited to documents in that collection.
Querying XML documents can be queried using   An XPath expression Using XQuery 1.0 The results may be XML documents, DOM, SAX or a proprietary form. In order to function as a database query language, XPath  and XQuery are  extended slightly to allow queries across collections of documents.
Indexing Four types of indexing; Structural Indexes Value Indexes Full-text indexes
Indexing Structural Indexes Used for tracking structure and path information   such as “track existence of all element nodes with the path,‘/a/b/c ’,”or “track all paths to the node   ‘c ’.” Such indexes are useful for navigational portions of queries. That is   often indexes are used to restrict the result set   to a smaller set of possible results.
Indexing Value Indexes Value indexes are used to track all values for specific   elements or attributes.   A value index on the element   “color”   would have an index entry for every separate   instance of   “color”   and would be useful for a query such   as “//color [=’green ’]” Value indexes may be typed   so   that comparisons can be performed correctly.   For example ,  the value of this element  <nameid >1234 </nameid > could be an integer   or it could be a string.   The type of   an index dictates how it is handled.
Indexing Full-text Indexes Full-text indexes   and searching as people expect on the web is its own   discipline.   There is a working draft for full-text extensions to XQuery [XQueryFT ] ;it is not in general use. Some native XML database products implement what   they call full-text indexing. For example,   “find all of the documents   that have the text   ‘ to be or not to be ’”
Updates and Deletes  Native XML databases have a variety of strategies for updating and deleting documents, from simply replacing or deleting the existing document to modifications through a live DOM tree to languages that specify how to modify fragments of a document.  XUpdate , from the XML:DB Initiative, is an XML-based language. It uses XPath to identify a set of nodes, then specifies whether to insert or delete these nodes, or insert new nodes before or after them. XUpdate has been implemented in a number of native XML databases.
Transactions, Locking, and Concurrency   Virtually all native XML databases support transactions (and presumably support rollbacks).  However, locking is often at the level of entire documents, rather than at the level of individual nodes, so multi-user concurrency can be relatively low.  The problem with node-level locking is implementing it. Locking a node usually requires locking its parent, which in turn requires locking its parent, and so on back to the root, effectively locking the entire document.
Transactions, Locking, and Concurrency Consider a transaction that reads a leaf node. If the transaction does not acquire locks on the ancestors of the leaf node, another transaction can delete an ancestor of the leaf node, in turn deleting the leaf node.  However, it is also clear that another transaction should be able to update those parts of the document not on the direct path from the root to the leaf node.
Application Programming Interfaces (APIs)   Almost all native XML databases offer programmatic APIs. These are usually in the form of an ODBC-like interface, with methods for connecting to the database, exploring metadata, executing queries, and retrieving results.  Results are usually returned as an XML string, a DOM tree, or a SAX Parser or XMLReader over the returned document.
NeoCore NXD Supported Features Indexing Querying, XQuery 1.0 Full text search Update, Delete Transaction Support API  (XMSDataAdapter) HTTP GET/POST

More Related Content

PDF
Relational Database Schema for MPEG 7 Visual Descriptors by Florian
PPT
MPEG-7 Services in Community Engines
PPTX
Mpeg 7 slides
PPTX
Mpeg 7
PPT
Mpeg 7 slides
PPTX
Mpeg 7 video signature tools for content recognition
PPTX
Ryan hamahashi 10x10 presentation
Relational Database Schema for MPEG 7 Visual Descriptors by Florian
MPEG-7 Services in Community Engines
Mpeg 7 slides
Mpeg 7
Mpeg 7 slides
Mpeg 7 video signature tools for content recognition
Ryan hamahashi 10x10 presentation

What's hot (20)

PPTX
Ryan hamahashi 10x10 presentation
PDF
DDS-PSM-Cxx and simd-cxx
PPT
Document Type Definition
PPT
Dublin Core Basic Syntax Tutorial
PDF
Introduction to Dublin Core Metadata
PPTX
Xml dtd
PPTX
Document type definition
ODP
Dublin core Presentation
PPT
Dublin Core Metadata Initiative Abstract Model
PDF
Diversiweb2011 06 Faceted Approach To Diverse Query Processing - Devika P. Ma...
PPT
PPT
2 dtd - validating xml documents
PPTX
Corpus Annotation with Linked Open Data
PPT
Dublin Core Intro
PPTX
Linked Open Data Cloud
PPTX
Atla dublin core basics workshop
PPTX
The Dublin Core 1:1 Principle in the Age of Linked Data
Ryan hamahashi 10x10 presentation
DDS-PSM-Cxx and simd-cxx
Document Type Definition
Dublin Core Basic Syntax Tutorial
Introduction to Dublin Core Metadata
Xml dtd
Document type definition
Dublin core Presentation
Dublin Core Metadata Initiative Abstract Model
Diversiweb2011 06 Faceted Approach To Diverse Query Processing - Devika P. Ma...
2 dtd - validating xml documents
Corpus Annotation with Linked Open Data
Dublin Core Intro
Linked Open Data Cloud
Atla dublin core basics workshop
The Dublin Core 1:1 Principle in the Age of Linked Data
Ad

Viewers also liked (7)

PDF
PDF
Unstructured multidimensional array multimedia retrival model based xml database
PPT
I/O & virtualization performance with a search engine based on an xml databa...
PDF
Mpeg 7 Service Oriented System by Florian
PPTX
Xml and multimedia database
PPTX
Video formats
DOCX
Relational / XML DB -SQL Server & Oracle Database
Unstructured multidimensional array multimedia retrival model based xml database
I/O & virtualization performance with a search engine based on an xml databa...
Mpeg 7 Service Oriented System by Florian
Xml and multimedia database
Video formats
Relational / XML DB -SQL Server & Oracle Database
Ad

Similar to XML, XML Databases and MPEG-7 (20)

PDF
PPT
Building a Scalable XML-based Dynamic Delivery Architecture: Standards and Be...
PPT
Web services Overview in depth
PDF
xml test
PDF
test slideshare
PPS
PPT
ravenbenweb xml and its application .PPT
PPT
XML In The Real World - Use Cases For Oracle XMLDB
PPT
DATA INTEGRATION (Gaining Access to Diverse Data).ppt
PPT
Introduction to XML
PPTX
advDBMS_XML.pptx
PPT
XML and Databases
PPTX
Unit 5 xml (1)
PPTX
What is xml
PPT
Xml iet 2015
PPTX
BITM3730 10-31.pptx
PPTX
BITM3730 10-18.pptx
PPTX
Building a Scalable XML-based Dynamic Delivery Architecture: Standards and Be...
Web services Overview in depth
xml test
test slideshare
ravenbenweb xml and its application .PPT
XML In The Real World - Use Cases For Oracle XMLDB
DATA INTEGRATION (Gaining Access to Diverse Data).ppt
Introduction to XML
advDBMS_XML.pptx
XML and Databases
Unit 5 xml (1)
What is xml
Xml iet 2015
BITM3730 10-31.pptx
BITM3730 10-18.pptx

More from Deniz Kılınç (6)

PPT
Semantic RDF based integration framework for heterogeneous XML data sources
PPT
MSF (Microsoft Solution Framework)
PPT
Sofware Team Organizations
PPT
Software Reengineering
PPT
Web Engineering
Semantic RDF based integration framework for heterogeneous XML data sources
MSF (Microsoft Solution Framework)
Sofware Team Organizations
Software Reengineering
Web Engineering

Recently uploaded (20)

PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Empathic Computing: Creating Shared Understanding
PDF
Machine learning based COVID-19 study performance prediction
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
KodekX | Application Modernization Development
Understanding_Digital_Forensics_Presentation.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Building Integrated photovoltaic BIPV_UPV.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
MYSQL Presentation for SQL database connectivity
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
The AUB Centre for AI in Media Proposal.docx
Empathic Computing: Creating Shared Understanding
Machine learning based COVID-19 study performance prediction
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
NewMind AI Weekly Chronicles - August'25 Week I
Mobile App Security Testing_ A Comprehensive Guide.pdf
Review of recent advances in non-invasive hemoglobin estimation
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
KodekX | Application Modernization Development

XML, XML Databases and MPEG-7

  • 1. XML , XML Databases and M P EG-7 Deniz KILINÇ [email_address]
  • 2. Content What is XML? XML and Related Technologies What is MPEG-7? XML Storage Using Databases What is a n NXD (Native XML Database)? MPEG-7 and XML Relation’s Future
  • 3. What is XML? <XML>
  • 4. What is XML? Developed by W3C (World Wide Web Consortium) Universal format for representing structured information It holds both data and metadata which is data about data With the assistance of XSL, XSLT, XPath and XLink technologies, filtering, ordering, calculation and integration processes must be fulfilled Since XML technology supports internet and network technology, HTTP and SSL protocols are spontaneously supported
  • 5. What is XML? Learning, reading, implementing and testing the XML technology is really easy. It shortens the application development time like B2B. Although XML is a simple document format, it is used in complex application scenarios like RPC messaging. XML processing and traversing tools are world-wide and very cheap. With the development of DOM which is a tree based processing tool, document traversing ha e become a world standard.
  • 6. XML Real Life Scenarios Using XML documents as data sources Processing documents using DOM model Processing and presentation using XSL, XSLT and XPath technologies Using XML documents in the integration of different systems B2B applications XMLRPC, XMLHTTP Web Ser ices SOAP BizTalk Using XML documents to standardize GUI (Graphical User Interface) UIML (User Interface Markup Language) (WEB_20, 2004) XAML (XML Application Markup Language) (WEB_19, 2004) Using XML data as ActiveX component’s content Using XML technology in different application areas (MPEG-7, WML, RDF, CML, MathML , VoiceXML , TV-AnyTime , XHTML …)
  • 7. XML and Related Technologies XML Schema Structure definition and d ocument validation XSL Transformation - conversion from one document class to another XPath Extraction of information XLink Linking between documents XQuery Querying
  • 8. XML and Related Technologies <XSL> XSLT language pro v ides XML documents to be transformed
  • 9. XML and Related Technologies <XPath> Purpose: Support addressing parts of an XML document D esigned to be used by both XSLT and XPointer Uses a compact, non-XML syntax to facilitate use within URIs & XML attribute values /doc/chapter[title=&quot;Introduction&quot;]/section[1] selects the first section of the chapter titled “ Introduction” in the doc document element
  • 10. <?xml v ersion=&quot;1.0&quot; encoding=&quot;iso-8859-9&quot;?> <?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;HelloXS L .xsl&quot;?> <ROOT> <Content>First XSL Sample</Content> </ROOT> <xsl:stylesheet xmlns:xsl= “ http://www.w3.org/1999/XSL/Transform ” v ersion=&quot;1.0&quot;> <xsl:output method=&quot;html&quot;/> <xsl:template match=&quot;/&quot; > <HTML><BODY><table border=&quot;1&quot;> <tr><td bgcolor=&quot;si lv er&quot;> /ROOT/Content Query Result</td> <td bgcolor=&quot;sil v er&quot;> <font color=&quot;red&quot;><B> <xsl:value-of select=&quot;/ROOT/Content&quot; /></B> </font> < /td></tr> </table></BODY></HTML> </xsl:template> </xsl:stylesheet>
  • 12. What is MPEG-7 ? MPEG-7, formally called “Multimedia Content Description Interface”, is a new standard for describing the content of multimedia data . MPEG-7 is a means of attaching metadata to multimedia content. Metadata can be stored together or separately with the multimedia data Metada is kept as an XML file
  • 13. What is MPEG-7 ? MPEG-7 descriptions associated with it, may include: still pictures, graphics, 3D models, audio, speech, video, and composition information about how these elements are combined in a multimedia presentation (scenarios).
  • 14. MPEG-7 Main Elements Description Tools Descriptors (D) Description Schemes (DS) Description Definition Language (DDL) System Tools
  • 15. MPEG-7 Main Elements 1- Descriptor (D) Is representation of a feature where a future is distinctive characteristic of data Define the syntax and the semantics of each feature (metadata element) Examples ; a time code for representing duration color moments and histogram for representing color character string representing title
  • 16. MPEG-7 Main Elements 2- Descript ion Scheme (DS) Specifies the structure and semantics of the relationships between their components, that may be both Descriptors and Description Schemes Provides a solution to model and describe multimedia content in terms of structure and semantics Example; A movie that temporally structured as scenes and shots, including some textual descriptors at scene level and color, motion and audio amplitude descriptors at the shot level.
  • 17. MPEG-7 Main Elements 3- Description Definition Language (DDL) D efine s the syntax of the MPEG-7 Description Tools and to allow the creation of new Description Schemes and, possibly, Descriptors A llow s the extension and modification of existing Description Schemes
  • 18. MPEG-7 Main Elements 4- System Tools T o support binary coded representation for efficient storage and transmission, transmission mechanisms (both for textual and binary formats), multiplexing of descriptions, synchronization of descriptions with content, management and protection of intellectual property in MPEG-7 descriptions
  • 20. MPEG-7 Applications MPEG-7 standard organizes the example applications into three sets ; Pull applications Applications such as storage and retrieval in audiovisual databases, delivery of pictures and video for professional media production, commercial musical applications, sound effects libraries, historical speech database, movie scene retrieval by memorable auditory events, and registration and retrieval of trademarks. Push applications Applications such as user agent driven media selection and filtering, personalized television services, intelligent multimedia presentations, and information access facilities for people with special needs. Specialized professional applications Applications that are particularly related to a specific professional environment, notably tele-shopping, bio-medical, remote sensing, educational, and surveillance applications.
  • 21. Abstract Representation Of Possible Applications Using MPEG-7 <XML> <XML> <XML> <XML>
  • 22. XML Storage Using Databases There are two different ways to &quot;store&quot; XML documents in a database XML-enabled databases, map the document's schema to a database schema and transfer data according to that mapping. have their own data model — relational, hierarchical, object-oriented — and map instances of the XML data model to instances of their data model. Native XML databases use a fixed set of structures that can store any XML document and use the XML data model directly .
  • 23. What is a n NXD (Native XML Database)? The database is specialized for storing XML data and stores all components of the XML model intact XML databases store XML documents as a set in a container or collection which will be called a “collection” A document within a container has a unique name or document identifier (id) Must have “round-tripping” capability; getting the same XML out of a system you put in
  • 24. What is a n NXD (Native XML Database)? NXD features ; Storage Document Collections Querying Indexing Updates and Deletes Transactions, Locking, and Concurrency Application Programming Interfaces (APIs)
  • 25. Storage There are two major choices in terms of how to store a document Intact Not Intact
  • 26. Storage Intact NXD Advantage Systems that store XML documents intact will gener- ally parse the XML in order to ensure it is well formed, or for validation but otherwise store the documents unchanged. This is useful for applications that require 100%round-tripping capability (in terms of byte compar- isons) which is difficult to attain any other way. Disadvantage For certain applications and queries , it can take a long time and a large amount of memory to process a request, T his is mostly due to the need to parse docu- ments to satisfy a query.
  • 27. Document Collections Many native XML databases support the notion of a collection. This plays a role similar to a table in a relational database or a directory in a file system. For example, suppose you are using a native XML database to store sales orders. In this case, you might want to define a sales order collection so that queries over sales orders could be limited to documents in that collection.
  • 28. Querying XML documents can be queried using An XPath expression Using XQuery 1.0 The results may be XML documents, DOM, SAX or a proprietary form. In order to function as a database query language, XPath and XQuery are extended slightly to allow queries across collections of documents.
  • 29. Indexing Four types of indexing; Structural Indexes Value Indexes Full-text indexes
  • 30. Indexing Structural Indexes Used for tracking structure and path information such as “track existence of all element nodes with the path,‘/a/b/c ’,”or “track all paths to the node ‘c ’.” Such indexes are useful for navigational portions of queries. That is often indexes are used to restrict the result set to a smaller set of possible results.
  • 31. Indexing Value Indexes Value indexes are used to track all values for specific elements or attributes. A value index on the element “color” would have an index entry for every separate instance of “color” and would be useful for a query such as “//color [=’green ’]” Value indexes may be typed so that comparisons can be performed correctly. For example , the value of this element <nameid >1234 </nameid > could be an integer or it could be a string. The type of an index dictates how it is handled.
  • 32. Indexing Full-text Indexes Full-text indexes and searching as people expect on the web is its own discipline. There is a working draft for full-text extensions to XQuery [XQueryFT ] ;it is not in general use. Some native XML database products implement what they call full-text indexing. For example, “find all of the documents that have the text ‘ to be or not to be ’”
  • 33. Updates and Deletes Native XML databases have a variety of strategies for updating and deleting documents, from simply replacing or deleting the existing document to modifications through a live DOM tree to languages that specify how to modify fragments of a document. XUpdate , from the XML:DB Initiative, is an XML-based language. It uses XPath to identify a set of nodes, then specifies whether to insert or delete these nodes, or insert new nodes before or after them. XUpdate has been implemented in a number of native XML databases.
  • 34. Transactions, Locking, and Concurrency Virtually all native XML databases support transactions (and presumably support rollbacks). However, locking is often at the level of entire documents, rather than at the level of individual nodes, so multi-user concurrency can be relatively low. The problem with node-level locking is implementing it. Locking a node usually requires locking its parent, which in turn requires locking its parent, and so on back to the root, effectively locking the entire document.
  • 35. Transactions, Locking, and Concurrency Consider a transaction that reads a leaf node. If the transaction does not acquire locks on the ancestors of the leaf node, another transaction can delete an ancestor of the leaf node, in turn deleting the leaf node. However, it is also clear that another transaction should be able to update those parts of the document not on the direct path from the root to the leaf node.
  • 36. Application Programming Interfaces (APIs) Almost all native XML databases offer programmatic APIs. These are usually in the form of an ODBC-like interface, with methods for connecting to the database, exploring metadata, executing queries, and retrieving results. Results are usually returned as an XML string, a DOM tree, or a SAX Parser or XMLReader over the returned document.
  • 37. NeoCore NXD Supported Features Indexing Querying, XQuery 1.0 Full text search Update, Delete Transaction Support API (XMSDataAdapter) HTTP GET/POST