<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="83"/><title>Context Driven XML Retrieval</title><author surname="Tincheva" givenname="Aneliya"><org  name="Bonchev Str"/></author></firstpageheader><frontmatter><p><b>Context Driven XML Retrieval</b></p><p>Aneliya Tincheva IPP-BAS 25A Acad. G. Bonchev Str. Sofia 1113 nelitincheva@gmail.com</p></frontmatter><abstract>This paper presents a data-centric approach to XML information retrieval which benefits from XML document structure and adapts traditional text-centric information retrieval techniques to deal with text content inside XML. We implement our ideas in a configurable, general purpose XML retrieval library which can be tuned to operate on multilingual XML resources with different structure and can be used to extract relevant document fragments with different granularity according to user preferences. We present a rich query format and an algorithm for indexing and query processing. </abstract></header><body><section title="Keywords"><p>XML Retrieval, IR, XML-IR, XPath, document fragment, indexing schema, full-text indexing</p></section><section number="1." title="Introduction"><p>The popularity of the e<b>X</b>tensible <b>M</b>arkup <b>L</b>anguage (XML) has led large quantities of structured information to be stored in this format. Due to this ubiquity, there has lately been interest in information retrieval (IR) from XML. XML-IR presents different challenges than retrieval in text documents due to the semi-structured nature of the data. The goal is to take advantage of the structure of explicitly marked up documents to provide more focused retrieval results. For example, the correct result for a search query might not be a whole document, but a document fragment. Alternatively, the user could directly specify conditions to limit the scope of search to specific XML nodes. Previous work [2, 4] addresses several challenges specific to retrieval from XML documents:</p><p>(1) <i>Granularity of indexing units </i>(Which parts of an XML document should we index?) (2) <i>Granularity of the retrieved </i>results(Which XML nodes are most relevant?) (3) <i>Ranking of XML sub-trees </i>(How should the ranking depend on the type of enclosing XML element and term frequency/inverse document frequency <i>(tf-idf)?</i><i>)</i></p><p>The aim of this work is to define an approach for XML retrieval that can be used for indexing and search independently of the document structure. We call our approach <i>context driven XML retrieval </i>because indexing and search operate on parts of XML documents called <i>contexts. </i>These contexts represent searchable and retrievable parts of an XML document, and for us the IR problem can be viewed as the extraction of contexts that match some search criteria. Traditional IR is a special case of XML-IR where the context has to be a whole document. Narrower contexts could be separate XML elements or their combinations. Our setting assumes knowledge of the XML document structure and the retrieval requirements. Thus an administrator creates indexing and retrieval rules for different XML document corpora. Each corpus requires different indexing rules to define contexts and relations between them - document fragments referable at search time. Using this context driven approach we address challenges (1) and (2). Concerning ranking (3), we employ a strategy which combines the unstructured and structured IR scoring techniques. In the paper we present a scalable index structure, indexing, search algorithms, indexing rules and query language format. We implement our ideas in a general purpose XML retrieval library that can be integrated in different kinds of applications: web applications, standalone systems, web services.</p><p>The rest of the paper is organized as follows: Section 2 describes related work; Section 3 describes motivation; Section 4 presents implementation details. Section 5 concludes the paper and describes future work.</p></section><section number="2." title="Related work"><p>XML retrieval systems vary according to the query language, index structure, document preprocessing, indexing and scoring algorithms they employ. A great variety of XML query languages already exist. Standard ones proposed by W3C are XPath and XQuery. Unfortunately, they do not reflect IR properties such as weighing, relevance-oriented search, data types and vague predicates, structural relativism [1, 14]. Amer-Yahia et al. [4] classifies XML query languages into three classes: keyword query languages (KQL) [5, 6, 12, 13]; tag &amp; KQL [6]; path &amp; KQL [7, 8, 12]; XQuery &amp; KQL [10]. The query language we introduce is a <i>path and KQL </i>in</p><p>XML format, and most related to XPath 2.0, XIRQL,</p><p>XXL, NEXI CAS queries. Different term and structure statistics are implemented in separate XML-IR systems. We share the idea of Mass and Mandelbrod [11] that an XML index consists of a set of separate full-text indices. For full-text search we use the Apache search API Lucene [9].</p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">83</doubt><p><i>Student Research Workshop, RANLP 2009 - Borovets, Bulgaria, </i>pages 83-88<page local="2" global="84"/></p><p>The context driven approach we present can be classified as <b>C</b>ontent<b>-A</b>nd<b>-S</b>tructure (CAS) retrieval under the system developed by the Initiative for the Evaluation of XML Retrieval (INEX) [12].</p></section><section number="3." title="Motivation"><p>In addition to the growing interest in XML retrieval, we had a practical need for an IR system for XML documents. In order to aid annotation efforts, we needed a platform independent search engine that could be tuned for specific applications. Since the document structure was known and important, we wanted to create indexing and retrieval rules to improve retrieval. The system we present allows exactly such application-specific indexing and search.</p></section><section number="4." title="Context Driven XML Retrieval"><p>An <i>XML document </i>is a tree-like data structure which consists of three node types: <i>elements, attributes, character data/text. </i>XML document tree nodes are instances of <i>elements </i>called <i>tags/markups, </i>which can be either empty or have nested <i>elements </i>or <i>text nodes. Attributes </i>are name-value pairs attached to <i>tags. </i>Figure 1 is an example of a textile multimedia XML document created by our group for the purposes of the AsIsKnown project [15]. The example document contains text and images annotated with <i>concepts </i>from a textile knowledge base. Text is delimited in sentences which are organized in paragraphs.</p><doubt alpha="53.8" length="39" tooSmall="True" monospace="0.0">&lt;?xml version="1.0--encoding=--UTF-8"?&gt;</doubt><doubt alpha="66.7" length="6" tooSmall="True" monospace="0.0">&lt;root&gt;</doubt><doubt alpha="74.3" length="152" tooSmall="True" monospace="0.0">&lt;title&gt; &lt;Concept class=,,http://www.asisknown.org/AIKHT#Flowerar&gt; Wallflowers &lt;/Concept&gt; &lt;/title&gt; &lt;img src="BilderflWallflowers_img_0.jpg"&gt; &lt;depictions&gt;</doubt><doubt alpha="74.4" length="90" tooSmall="True" monospace="0.0">&lt;Concept class="http:/M/ww.asisknown.org/AIKHT#Floweral7&gt; &lt;Concept class="http:/to/ww.loa-</doubt><doubt alpha="76.1" length="46" tooSmall="True" monospace="0.0">cnr.it/ontologies/OI/VN/OWN.owl#RED_REDNESS"/&gt;</doubt><doubt alpha="79.1" length="86" tooSmall="True" monospace="0.0">&lt;Concept class-'httpi/Avww.loa-cnr.it/ontologies/OWN/OWN.owlSWALLPAPER"^ &lt;/depictions&gt;</doubt><doubt alpha="50.0" length="6" tooSmall="True" monospace="0.0">&lt;/img&gt;</doubt><doubt alpha="52.2" length="23" tooSmall="True" monospace="0.0">&lt;par id="p1" lang="en"&gt;</doubt><doubt alpha="61.0" length="41" tooSmall="True" monospace="0.0">&lt;s id="s1"&gt;So ranch for less is more.&lt;/s&gt;</doubt><doubt alpha="75.3" length="73" tooSmall="True" monospace="0.0">&lt;s id="s2"&gt;Designers take a leaf nut of the diversity of nature and cover</doubt><doubt alpha="75.6" length="82" tooSmall="True" monospace="0.0">&lt;Conceptclass="http://www.loa-cnr.it/ontologies/OWN/OWN.owl#LAMP2"&gt;lamps&lt;/Concept&gt;</doubt><doubt alpha="76.3" length="97" tooSmall="True" monospace="0.0">«Concept class=,,http:/fwww.loa-cnr.iüontologies/OWN/OWN.owl#CHAIP7,&gt;chaire&lt;/Concept&gt;, even whole</doubt><doubt alpha="75.5" length="98" tooSmall="True" monospace="0.0">&lt;Concept class="http://www.loa-cnr.it/ontologies/OI/VN/OWN.owl#ROOM_1 "&gt;rooms&lt;JConcept&gt;with floral</doubt><doubt alpha="77.1" length="109" tooSmall="True" monospace="0.0">&lt;Concept class="http:/fwww.loa-cnr.it/ontologies/OI/VN/OWrTowl#DESIGN_PATTERN_FIGUREM&gt; pattems&lt;/Concept&gt;.&lt;/s&gt;</doubt><doubt alpha="75.0" length="52" tooSmall="True" monospace="0.0">&lt;s id="s3"&gt;Are the blossoms and leaves only harmless</doubt><doubt alpha="79.6" length="93" tooSmall="True" monospace="0.0">&lt;Concept class="http://www.loa-cnr.it/ontologies/OI/VN/OWN.owl#EMBELLISHIV1ENT"&gt;embellishment</doubt><doubt alpha="78.6" length="70" tooSmall="True" monospace="0.0">&lt;/Concept&gt;or is a new cultural concept making itself known with them ?</doubt><doubt alpha="25.0" length="4" tooSmall="True" monospace="0.0">&lt;/s&gt;</doubt><doubt alpha="50.0" length="14" tooSmall="True" monospace="0.0">&lt;/par&gt; &lt;/root&gt;</doubt><figure caption="Figure 1. Multimedia XML Document"></figure><p>There exist W3C standard languages for navigation through XML documents (XPath) and querying (XQuery). We employ XPath in the implementation of our framework. After the evaluation of an Xpath expression, a set of XML nodes are retrieved. For example, if we want to extract the sentences which contain the word <i>pattern </i>from our example XML document in Figure 1, we can use the XPath expression: <b>//s[contains (descendant::text(), ^"pattern")] </b>. If we need sentences containing the document's title, we need variables to store temporary results and be used in the search expression. We deal with the problem by using an extension of XPath with variables. The expression below extracts the sentences containing the text of the title:</p><doubt alpha="66.7" length="66" tooSmall="False" monospace="0.0">{x:=/title/descendant::text()}/s[contains(descendant::text(), $x)]</doubt><p>We set the variable <i>x </i>to be equal to the document title text. The XPath engine extracts the sentences whose text contains the value of the <i>x </i>variable.</p><subsection number="4.1" title="System architecture"><p>We implement our system in an XML retrieval library. Each document corpus has a separate XML index in a central <i>XML Index Repository. </i>Each index has its own <i>model, </i>defined in an <i>indexing schema. </i>The indexing schemas specify how to extract indexing units (XML sub­trees) called <i>contexts </i>from XML documents with a common structure and defines how the separate <i>contexts </i>are related. Our basic assumption is that a <i>context </i>is a document fragment whose content is indexed in several text fields. A <i>field </i>is a name-value pair whose value is character data. <i>Contexts </i>and <i>fields </i>can be referred to in search queries. An indexing schema is added to an empty index on its creation. Existent XML indices are populated with documents according to the definitions in their corresponding indexing schema. For each context defined in the indexing schema we create and populate a full-text index called <i>context index. </i>The rest of the subsection gives an overview on the system architecture (Figure 2)</p><figure caption="Figure 2. System Architecture"></figure><p>The search engine lifecycle has two sequential phases: <i>system initialization </i>and <i>user interactions. </i>When the system is started a processing module reads system configurations from a configuration file. This file specifies an indexing/search analyzer, document storage, and result extractor implementation classes. The opportunity to configure different implementations makes our framework highly adaptable to various search scenarios. We can use this to tune text analysis, document access policy, result formatting and extraction. Instances of the configured implementations are created by reflection and are made available at runtime. The indexing and retrieval tasks are performed by the <i>indexer </i>and <i>searcher </i>operational modules which manipulate the XML indices, system files and interact with the already instantiated objects.<page local="3" global="85"/></p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">84</doubt></subsection><subsection number="4.2" title="Indexing schema and index structure"><p>Each XML index consists of an <i>indexing schema </i>and one or more full-text indices. The <i>indexing schema </i>is an XML document which defines indexing and extraction rules. Central concepts are <i>context </i>and <i>field, </i>as defined in the previous subsection. Their usage is clarified with the following example. Assume that we have a corpus with documents with the same structure as the one in Figure 1 and we want to retrieve particular paragraphs/ images. For the purpose we define 2 independent contexts: <i>paragraph </i>and <i>image. </i>Our aim is to search for a combination of text matches and concepts. We need to create two fields for the <i>paragraph </i>context <i>(text </i>and <i>concept) </i>and one for the <i>image </i>context <i>(concept). </i>We add one more requirement -we want to extract paragraphs whose adjacent paragraphs and images comply with supplementary search criteria. In this case we need to define some kind of relation between a paragraph and its adjacent paragraphs and images. We call this type of relation <i>coordination between contexts. </i>In the indexing schema the contexts are defined as <i>context </i>elements, <i>fields </i>are elements nested in <i>context </i>elements and <i>coordination between contexts </i>is expressed by nesting <i>context </i>elements.</p><doubt alpha="45.5" length="11" tooSmall="True" monospace="0.0">Field 1.1.3</doubt><figure caption="Figure 4. Indexing Schema Logical Tree View."></figure><p>Each <i>context </i>and <i>field </i>element has an identifier and is associated with an XPath expression. Indexing schema elements are relative to their parent elements, i.e. their identifiers are unique within the scope of their parent element and their XPath expressions are applied relative to the nodes extracted by the XPath expressions of their parent element. The <i>schema root </i>element denotes the <i>default context, </i>i.e. the whole XML document. <i>Field </i>elements have no nested elements and can be boosted. For <i>context </i>elements with child <i>field </i>elements we create separate full-text indices in the XML index repository. Figure 5 illustrates the Lucene index (full-text index) and the XML index structures.</p><figure caption="Figure 5. Lucene and XML Index Structure"></figure><p>The Lucene index (left) is an inverted index consisting of a set of Lucene documents. Each Lucene document carries a unique identifier and contains fields. The XML index (on the right) contains an indexing schema document and a set of Lucene context indices. They are populated with Lucene documents with identifiers which encode the system identifier of the XML document, path to an XML context node and paths to its related XML nodes. The Lucene documents are populated with fields as defined in the indexing schema document. An illustrative example is to index the document in Figure 1. We want to search by concept to extract paragraphs that match one concept pattern with adjacent paragraphs or images matching another pattern. Such a relation between structural document units allows us to create complex search queries. An indexing schema satisfying our requirements is given in Figure 6.</p><doubt alpha="64.4" length="101" tooSmall="True" monospace="0.0">ndant: : Concept/@class"/&gt; xpath="preceding-sibling : : par"&gt; a="descendant : : Concept /'j class "/&gt;</doubt><doubt alpha="78.3" length="46" tooSmall="True" monospace="0.0">ing_paragraph" xpath="folloving-sibling: : par</doubt><doubt alpha="80.0" length="45" tooSmall="True" monospace="0.0">concepts" value="descendant: :Concept/Sclass"</doubt><doubt alpha="63.2" length="19" tooSmall="True" monospace="0.0">Concept/@clas s "/&gt;</doubt><doubt alpha="79.3" length="29" tooSmall="True" monospace="0.0">&lt;schema name="ContextsIndex"&gt;</doubt><doubt alpha="74.5" length="110" tooSmall="True" monospace="0.0">&lt;context name="paragraph" xpath="par"&gt; &lt;field name="concepts " value="desc &lt;context name="previous_paragraph "</doubt><doubt alpha="72.9" length="59" tooSmall="True" monospace="0.0">&lt;context name="following_images " xpath="following: : img"&gt;</doubt><doubt alpha="70.7" length="92" tooSmall="True" monospace="0.0">&lt;field name="concepts" value="descendant;:Concept/'jclass"/&gt; &lt;/context&gt; &lt;/context&gt; &lt;/schema&gt;</doubt><figure caption="Figure 6. Example indexing schema"></figure><p>The index created according to the definitions of the indexing schema on Figure 6 contains five full-text indexes (one for each context with a field). If the document in Figure 1 has a system identifier <i>f1, </i>the content of the separate full-text indexes after the indexing would be:</p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">85</doubt><doubt alpha="73.0" length="37" tooSmall="True" monospace="0.0">&lt;field name="concepts" val &lt;/context&gt;</doubt><doubt alpha="78.9" length="19" tooSmall="True" monospace="0.0">&lt;context name="foll</doubt><doubt alpha="75.0" length="12" tooSmall="True" monospace="0.0">&lt;field name:</doubt><doubt alpha="72.0" length="25" tooSmall="True" monospace="0.0">&lt;/context&gt; &lt;context name:</doubt><doubt alpha="81.0" length="21" tooSmall="True" monospace="0.0">&lt;field name="concepts</doubt><doubt alpha="70.0" length="10" tooSmall="True" monospace="0.0">&lt;/context&gt;</doubt><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Lucene context index</b></p></td><td class="cell"><p><b>Lucene document IDs</b></p></td><td class="cell"><p><b>Field content</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>paragraph</i></p></td><td class="cell"><p>f1_p#1</p></td><td class="cell"><p>The concept URIs in the first paragraph.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>paragraph-}previous_paragraph; </i>(no data added)*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>paragraph-^following_paragraph </i>(no data added)*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>paragraph - previous_images</i></p></td><td class="cell"><p>f1_p#1 @ @ @f 1_img#1</p></td><td class="cell"><p>The concept URIs in the first image.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>paragraph - following_images </i>(no data added)*</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="4" global="86"/><table caption="Table 1. Content of Lucene indices for the example XML Index1"></table><p>Indexing is incremental. When a new XML documents is added to an XML index, its Lucene context indices are updated by creating and populating Lucene documents.</p></subsection><subsection number="4.3" title="Indexing algorithm"><p>Below (Figure 7) is listed the indexing algorithm which is recursive in nature. The recursive structure is inherited from the nesting of contexts.</p><doubt alpha="88.9" length="18" tooSmall="True" monospace="0.0">Index XML document</doubt></subsection></section><section number="1." title="Index default context fie Id s -&gt; call F1"></section><section number="2." title="Index nested contexts -&gt; call F2"><doubt alpha="79.2" length="24" tooSmall="True" monospace="0.0">F1: Index context fields</doubt></section><section number="1." title="Create an empty Lucene document"></section><section number="2." title="Foreach field &lt;- Fields"><doubt alpha="80.8" length="73" tooSmall="True" monospace="0.0">2.1 extract field's contentfrom the XML document and creates Lucene field</doubt><subsection number="2.2" title="add the Lucene field to the Lucene document"></subsection></section><section number="3." title="Add the Lucene documentto the index"><doubt alpha="80.0" length="25" tooSmall="True" monospace="0.0">F2: Index nested contexts</doubt><doubt alpha="82.1" length="28" tooSmall="True" monospace="0.0">Iforeach context &lt;- Contexts</doubt><doubt alpha="81.7" length="71" tooSmall="True" monospace="0.0">1. Extract the contextXML nodes from the XML document -&gt;contextXMLNodes</doubt></section><section number="2." title="foreach xmlNode: contexIXMLNodes {"><subsection number="5.1" title="Get the absolute path to the xmlNode -&gt; absoiutePath"></subsection><subsection number="5.2" title="Get the indexing schema fields for the context -&gt; fields"></subsection><subsection number="5.3" title="Encode the Lucene context document ID-&gt; documentID"></subsection><subsection number="5.4" title="Create a context index and call F1 for the context fie Ids;"><p><b>5.5 Get the nested indexing schema contexts for the </b><b><i>context-} nestedContexts</i></b></p></subsection><subsection number="5.6" title="if [nestedContexts is NOT empty)"><doubt alpha="83.3" length="30" tooSmall="True" monospace="0.0">call F2 for the nestedContexts</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">}</doubt><figure caption="Figure 7. Search procedure"></figure></subsection><subsection number="4.4" title="Query syntax and search algorithm"><p>Search is performed within a single index in order to retrieve relevant content. The search criteria are specified in a query XML document whose format is presented below. <i>Contexts </i>and <i>fields<footnote anchor="2"/> </i>are referred to in search queries. Figure 8 (below) illustrates the query structure.</p><figure caption="Figure 8. Search query structure"></figure><p>The @@@ is a separator between identifiers of dependent contexts. The Lucene document identifier f1_p#1@@@f1_img#1 (row 4) encodes that the first paragraph is related to the first image with a <i>previous_images </i>relation.</p><p>Contexts and fields as defined in the indexing schema for the index in which we are searching.</p><p>Queries have a recursive structure similar to the indexing schema. The <i>context </i>and <i>field </i>elements in queries refer to corresponding elements in the indexing schema by ID. The parent-child element relationship for both contexts and fields <b>should </b>follow the order in the indexing schema. The element content of query <i>context </i>elements consists of:</p><p>- <i>field </i>element(s) - their element content is transformed to a Lucene query. The supported full-text queries for a field include term, phrase, fuzzy, Boolean, span, wildcard, range queries. Search results are sorted by <i>tf-idf.</i><i></i></p><p>- <i>AND; OR l and;or </i>elements - recursive multi­argument operations denoting <i>intersection </i>and <i>union </i>of search results returned for sets of <i><u>context </u></i><u>arguments <i>(AND; OR)</i></u><i> </i>or <i><u>field </u></i><u>arguments <i>(and; or)</i></u><i>. </i>In either case, results are sorted by <i>tf-idf.</i></p><p>The search algorithm is presented below (Figure 9).</p><doubt alpha="81.2" length="16" tooSmall="True" monospace="0.0">XML Index sea'ch</doubt><doubt alpha="88.9" length="27" tooSmall="True" monospace="0.0">Iterate query root children</doubt><doubt alpha="70.6" length="102" tooSmall="True" monospace="0.0">1. For all children - ^context* -&gt; call F1 : result map with key-value pairs ^context ID, result lists</doubt><doubt alpha="64.7" length="116" tooSmall="True" monospace="0.0">2. If child= &lt;and&gt; | &lt;or&gt; | &lt;field&gt; call F2 : result list Return -&gt; result map + &lt;global context, result list&gt; entry</doubt><doubt alpha="77.8" length="18" tooSmall="True" monospace="0.0">F1: Context search</doubt><doubt alpha="87.8" length="49" tooSmall="True" monospace="0.0">Foreach context element: Iterate context children</doubt><doubt alpha="59.3" length="59" tooSmall="True" monospace="0.0">1. If child = &lt;AND&gt; | =OR&gt;     call Fl: context result list</doubt><doubt alpha="51.6" length="62" tooSmall="True" monospace="0.0">2. If child = &lt;and&gt; | &lt;or&gt; | &lt;field&gt;    call F2    result list</doubt><doubt alpha="72.1" length="86" tooSmall="True" monospace="0.0">3. result = result + context result list + result list (sort bytf-idf)Return -&gt; result</doubt><doubt alpha="75.0" length="16" tooSmall="True" monospace="0.0">F2: Field Search</doubt><doubt alpha="67.8" length="59" tooSmall="True" monospace="0.0">If current element = &lt;and&gt; | &lt;or= -&gt; push operator in stack</doubt></subsection></section><section number="1." title="Iterate current element children"><doubt alpha="71.6" length="74" tooSmall="True" monospace="0.0">1.1. For all &lt;field&gt; elements -J lucene search : push result list in stack</doubt><doubt alpha="60.6" length="71" tooSmall="True" monospace="0.0">1.2. For all &lt;and&gt; | &lt;or&gt; elements -» push operator in stack -&gt; call F2</doubt><doubt alpha="72.4" length="199" tooSmall="True" monospace="0.0">2. Process stack -&gt; pop the peak: if peak - result list -&gt; add itto temp list, else process operation &lt;and&gt; &lt;or&gt; on temp list (sort bytf-idf)and push back the result {do while the stack is not empty)</doubt></section><section number="3." title="Return ■&gt; temp"><doubt alpha="81.4" length="43" tooSmall="True" monospace="0.0">Else process lucene search -} Return result</doubt><doubt alpha="82.8" length="29" tooSmall="True" monospace="0.0">F3: Context operations search</doubt><figure caption="Figure 9. Search procedure"></figure><p>Our search algorithm performs depth first search in contexts. If a context has a descendant context then a recursive call is made. The bottom of the recursion is reached when no more context descendants are available. For each separate context having <i>fields </i>we perform search in its corresponding Lucene index.</p><subsection number="4.5" title="Experiment"><p>We evaluated the search engine on a corpus of 135 multimedia documents in XML format, in 3 separate indexes. Our goal was to evaluate indexing and search performance and retrieval relevance. The documents are multilingual (English and Italian) and contain markers for paragraphs, images, and concept annotation for both images and text. The total number of text terms in the corpus is 117 307 and the total number of concept annotations is 9547. The paragraph text is indexed in index <i>(I1). </i>Concept annotations in paragraphs as well as the concepts in the preceding and following paragraphs and images are indexed in index (I2).<page local="5" global="87"/> Finally, the text of paragraphs, besides the concepts, is indexed in index (I3). For text analysis we used the Lucene <i>StandardAnalyzer. </i>This class uses a Java CC-based grammar to tokenize alpha-numeric strings, acronyms, company names, e-mail addresses, computer host names, numbers, words with an interior apostrophe, serial numbers, IP addresses, and CJK (Chinese Japanese Korean) characters. As we see in Chart 1, relatively little time is consumed in the creation of <i>I1. </i>Increasing the schema complexity degrades indexing performance.</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">2</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">86</doubt><p>Indexing performance according to indexing schema complexity</p><doubt alpha="87.0" length="69" tooSmall="True" monospace="0.0">Documents sequential numbers; numberof teictterms; number of concepts</doubt><p><b>Chart 1. Indexing performance</b></p><p>This degradation was not a major concern. We focus on estimating:</p><p>(1) Does indexing performance degrade <i>drastically </i>for complex indexing schemas?</p><p>(2) To   what  extent  does   the   search performance decreases for deeper and broader indexing schemas?</p><p>(3) What is the benefit in precision and recall from querying indexes with more complex schemas?</p><p>Since indexing can be performed in the background and offline, we are only interested in drastic degradation for (1). Schema complexity appears not to affect search performance significantly. We see in Chart 1 that schema complexity only moderately affects indexing performance. With the most complex schema all documents are indexed in under 5 minutes. The estimation issues (2) and (3) are the important ones to be evaluated for a search application. Precision and recall mostly depend on the preciseness and quality of the query, availability of metadata in XML documents, the metadata indexing and querying strategy. The results were more than satisfactory addressing issue (2). For all queries for each index, we obtained results in under 0.5 seconds. We did not evaluate the system on a standard dataset. On the basis of the experiment with I1, I2 and I3 we concluded that precision and recall increase for more complex schemas (3). The precision when querying I2 is higher than the one for I1, because it retrieves conceptually relevant documents either in English or Italian. Although many of the text terms are not annotated with concepts and the variety of queries is limited, the recall for I2 is comparable with the one from I1. The retrieval from I3 is with the highest precision and recall, since it combines advantages of I1 and I2</p></subsection></section><section number="5." title="Conclusion"><p>The aim of this work was to define a user guided approach to XML retrieval that could be used for indexing and search in XML document corpora independent of document structure. We implemented our ideas in a platform independent search engine framework that combines structured and unstructured retrieval techniques and can be integrated in different kind of applications. We ended up with a middle layer component which so far is integrated into prototype systems created for the LT4eL [16] and AsIsKnown [15] research projects. Future work includes running experiments with the test collections created for the INEX competition. Our future goals include integration of automatic language detection and format conversion to XML. We also intend to implement and integrate different tokenizers and analyzers. A future aim and big challenge for us is to adapt and integrate the framework in a web search engine.</p></section><section title="Acknowledgements"><p>This work was supported by the Institute for Parallel Processing (Bulgarian Academy of Science) and granted by the European Projects AsIsKnown (FP6-028044) and LTfLL (FP7-212578). I thank to my advisor Kiril Simov who laid the foundation of the work and assisted me during the past year and a half in the process of design, analysis, development and integration of the XML-IR framework.</p></section><references><p>[1] N. Fuhr: XML Information Retrieval and Information Extraction, University of Dortmund, Germany, 2003</p><doubt alpha="66.1" length="62" tooSmall="False" monospace="0.0">[2]   Ch. D. Manning, P. Raghavan, H. Schütze: Introduction to</doubt><p>Information Retrieval, ISBN: 0521865719,Cambridge University</p><p>Press. 2008.</p><p>[3]  D. Carmel, N. Efrati, G. M. Landau, Y. S. Maarek, and Y. Mass. An Extension of the Vector Space Model for Querying XML Documents via XML Fragments. Proceedings of the SIGIR 2002 Workshop on XML and Information Retrieval, 15. August 2002</p><doubt alpha="57.5" length="106" tooSmall="False" monospace="0.0">[4]   S. Amer-Yahia, M. Lalmas: XML search: languages, INEX and scoring. SIGMOD Record 35(4): 16-23 (2006)</doubt><p>[5]  L. Guo, F. Shao, C. Botev, J. Shanmugasundaram.XRANK: Ranked Keyword Search over XML Documents.SIGMOD 2003.</p><doubt alpha="63.9" length="97" tooSmall="False" monospace="0.0">[6]  S. Cohen, J. Mamou. Y. Kanza, Y. Sagiv. XSEarch: A Semantic Search Engine for XML. VLDB 2003</doubt><p>[7]  A. Theobald, G. Weikum. The Index-Based XXL Search Engine for Querying XML Data with Relevance Ranking. EDBT 2002<page local="6" global="88"/></p><doubt alpha="64.1" length="64" tooSmall="False" monospace="0.0">[8]  A. Trotman, M. Lalmas. The Interpretation of CAS. INEX 2005</doubt><doubt alpha="56.1" length="98" tooSmall="False" monospace="0.0">[9]  E. Hatcher, O. Gospodnetic, and M. McCandless, "Lucene In Action", ISBN: 1932394281, May 2008</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">87</doubt><p>[10] XQueryFull-Text: http://www.w3.org/TR/xpath-full-text-10/<u> </u>[11] Y. Mass, M. Mandelbrod. Retrieving the most relevant XML [13] N. Roussopoulos, S. Kelley, F. Vincent, Nearest Neighbor</p><doubt alpha="66.7" length="21" tooSmall="False" monospace="0.0">Components. INEX 2004</doubt><doubt alpha="57.1" length="42" tooSmall="False" monospace="0.0">[12]INEX 2009:http://www.inex.otago.ac.nz/</doubt><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">Queries, 1995</doubt><p>[14] N. Fuhr and G. Weikum. Classification and Intelligent Search on Information in XML. Bulletin of the IEEE Technical Committee</p><p>on Data Engineering, 25(1), 2002.</p><doubt alpha="65.2" length="69" tooSmall="False" monospace="0.0">[15]AsIsKnown:http://www.asisknown.org/[16]LT4eL:http://www.lt4el.eu/</doubt><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">88</doubt></references></body></article>