<?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="54"/><title>RDFa Editor for Ontological Annotation</title><pubinfo>Proceedings of the Student Research Workshop associated with RANLP 2011,pages 54-59, Hissar, Bulgaria, 13 September 2011.</pubinfo><author surname="Duma" givenname="Melania"><org  name="University of Bucharest" country="Romania" city="Bucharest"/></author></firstpageheader><frontmatter><p><b>RDFa Editor for Ontological Annotation</b></p><p><b>Melania Duma</b></p><p>Faculty of Mathematics and Computer Science University of Bucharest Academiei Street number 14, Bucharest</p><p>melaniaduma@gmail.com</p></frontmatter><abstract>One of the purposes of semantic web is to provide machine understandable content and this can be achieved by annotating infor­mation. At the moment, annotations can be created manually and also automatically, both of the approaches having advantages and disadvantages. The goal of this article is to present a new semi-automatic annotation tool, which given a text will annotate words with concepts from an ontology. </abstract></header><body><section number="1" title="Introduction"><p>In the present days, World Wide Web has proven to be one of the easiest and most useful ways of gaining access to information. One of the main characteristics of this information is that it re­quires human intervention in order to be man­aged and presented. The main goal of Semantic Web is to provide a way of transforming this in­formation, so that it is also machine comprehen­sible, idea that is captured in the definition pro­vided by World Wide Web Consortium: "The Semantic Web is about two things. It is about common formats for integration and combination of data drawn from diverse sources, where on the original Web mainly concentrated on the inter­change of documents. It is also about language for recording how the data relates to real world objects" (Ivan, 2011). In order to achieve the ideas presented in this definition, a need for an­notation systems arises.</p><p>Document annotation can be defined as the process of providing data about the content of the documents. In some ways, the process of anno­tating is very similar to that of tagging, and the similarity comes from the fact that they both en­rich the information by providing metadata and they both improve the search capabilities of a system. However, annotations go one step further than tags - they help create more organized metadata which can be further exploited by spe­cialized systems.</p><p>The process of annotating documents can be done both manually, as well as automatically, both of these approaches having advantages and disadvantages.</p><p>One of the biggest advantages of manual an­notation is that it has a high accuracy rate, but it has proven to be both cost and time inefficient. It also often requires for an exact procedure to be followed. At first, the human annotator must fa­miliarize himself with the text, then proceed with the annotations. Any difficult decision regarding an annotation is then saved in a file, and a cura­tor later reviews the specific annotations and makes any necessary changes. This whole proce­dure proves to be very expensive because it re­quires the constant training of personnel, as the level of accuracy of annotation depends drasti­cally of the level of domain specific knowledge of the human annotator.</p><p>On the other hand, automatic annotation can offer a method of annotating in a time efficient way, while having the disadvantage that it is highly error prone, mainly because of the fact that it lacks human intervention.</p><p>In order to overcome these shortcomings, a series of semi-automatic annotation systems have been developed. Many present themselves under the form of an editor that annotates specific parts of a document (word, paragraph, section or an entire document).</p><p>Different approaches on how to perform semi­automatic annotation where implemented in a series of platforms and a survey of these plat­forms is presented in (Reeve and Han, 2005). AeroDAML is a pattern based system, in which nouns and relationships are connected with con­cepts and properties that are part of the DARPA Agent Markup Language (DAML) ontologies (Reeve and Han, 2005). Regarding the architec­ture, AeroDAML is made up of a series of components:<page local="2" global="55"/> a text extraction component based on AeroText, a mapping component and an annota­tion editor.</p><p>Armadillo is also a pattern based system, that given a set of initial words called seeds, will an­notate them and extract the context surrounding these words. Based on these contexts, a set of rules is constructed, which is then used in order to discover other words surrounded by similar contexts. The process takes place again with the new words acting as seeds.</p><p>Another system that can be used for annotat­ing documents is the KIM Platform which con­tains an ontology, a knowledge base, an annota­tion system, and an indexing and retrieval system based on the Lucene engine. During the annota­tion process, the token is not only mapped to a concept in the ontology but also to a reference in the knowledge base, so that word disambiguation can be provided.</p><p>MnM is a machine learning based system, based on the Lazy-NLP algorithm. The result of this algorithm is a set of rules, which are then used to tag information in the document or cor­rect existing tags.</p><p>MUSE is another semantic annotation plat­form based, like KIM platform, on the GATE framework. The component that deals with se­mantic annotation is based on Java Annotation Pattern Engine (JAPE), which provides a gram­mar that helps in constructing rules. These rules are then used in order to create annotations.</p><p>Ont-O-Mat is based on S-CREAM (Semi­automatic CREAtion of Metadata), a semantic annotation framework. Information extraction in Ont-O-Mat is done with the help of Amilcare, and tagging and correction rules are created us­ing the LP algorithm. Furthermore, the process of annotation in Ont-O-Mat is based on the PANKOW (Pattern-based Annotation through Knowledge On the Web) algorithm, which re­turns a set of hypothesis phrases, that are used to create annotations.</p><p>All of the systems mentioned above have been evaluated in terms of precision and recall, and the MnM and MUSE platforms have proven to have the highest performance among them, with a precision of 95%, respectively 93.5% (Reeve and Han, 2005).</p><p>In this paper, a new RDFa editor, that aims to semi-automatically annotate data, will be intro­duced. This new system differentiates from the others in that it helps create valid RDFa annota­tions, which integrated in the content of the Web pages, will make them not only human readable, but also machine understandable. Furthermore, the full potential of these annotations can be at­tained later on, by creating a reasoning module which can be integrated in the platform.</p><p>The paper is structured as follows. In section 2, the main functionalities of the system are pre­sented, together with a description of the main components that form the new editor. An evalua­tion of the new software is provided in section 3, while section 4 contains the conclusion and ideas for future work.</p></section><section number="2" title="System Design and Challenges"><subsection number="2.1" title="System Functionalities"><p>The aim of this article is to describe the design and implementation of an ongoing project, that aims to provide a RDFa editor for semantic an­notation of documents. The aim of RDFa, which is "a way to express RDF data within XHTML, by reusing the existing human-readable data" (Birbeck and Adida, 2008), is to provide a series of attributes. These attributes can be used in or­der to enrich the information contained in the web pages with the help of new metadata.</p><p>Regarding the domain, the editor accepts any kind of document and ontology, as it was con­structed with the purpose of being an open-domain tool.</p><p>A list of the most important functionalities that have been implemented in the new annotating platform is presented below:</p><p>• The application creates annotations based on text chunks, from a given doc­ument and a selected concept from an ontology. At the moment the system works with Nounphrases (NP)</p><p>• The ontology used for annotation can be selected by the user of the application, together with the document to be anno­tated</p><p>• All the annotations made to a documents are saved in a new file and respect the RDFa format</p><p>• After annotations have been made, a ver­sion of the annotated document can be viewed and saved</p><p>• After a document is opened, it is possible to also open an annotation file and merge them</p><page local="3" global="56"/><p>•   The details regarding an annotation can •   Any specific annotation can be deleted at</p><p>be viewed for every annotated NP any point in time</p><p><b>S </b><b>RDFa Editor</b></p><p>File Edit Annotate Help</p><p>Ontology concepts - £j owhThing</p><p>- □ iValuePartition - £j :Spidness□ :Hild <u>H </u><b><u>I</u> </b>iMedium</p><p>□ :Hot <u>r </u><u>I</u> :DomainConcept</p><p><u>r </u><b><u>I</u> </b>iCountry a □ :Food</p><p><b>Annotation details</b></p><p>Word Concept</p><p>View Delete</p><p>Document</p><p>The history of pizza has been , and is contentious, for we can never know which nation invented pizza , but pizza history is no less colorful for that fact. As we can not know the date when the first pizza was invented , we can only speculate who invented pizza .</p><p>Pizza , as we know it today , is a bread crust covered with a tomato base and then flavored with other toppings.</p><p>Yet tomatoes did not appear on European menus until the Sixteenth Century , when they were brought over from the New World by the Spanish conquistadors .</p><p>Pizza as we know it today, with a crust, tomato and other toppings, was even later in history ; it did not originate until the eighteenth Century in Naples .</p><p>Italian folklore claims that the first pizza was Italian , and it is certain that in ancient times the ancient Greeks and Romans had a type of unleavened bread , topped with a flavor before being baked .</p><p>We know from historical writings that the Greek pizza was merery vegetables, but the origin of the pizza in Italy was more sophisticated .</p><p>It was topped with pork scraps, olives and the sweet desserts with honey , raisins and pine nuts.</p><p>Some of those sweet dessert pizza recipes have been enshrined in pizza history and are still used in Italy today .</p><p>Italian pizza history The precise history of the pizza and its origin will never be known , but here is what we know about the Italian pizza history : \* The history of pizza goes back to the time of Virgil, who died in the first Century BC , but not before writing down a pizza recipe for posterity .</p><doubt alpha="85.7" length="42" tooSmall="True" monospace="0.0">Synthetics - Unregistered Evaluation Copy!</doubt><p>Fig. 1 : The interface of the system</p></subsection><subsection number="2.2" title="System Components"><p>Regarding its architecture, the system is made up of a series of different components, that com­bined achieve the goal of semi-automatically an­notating a document (Figure 2).</p><p>The Ontology Manager component, used for importing and presenting the ontology, was cre­ated with help of Jena, a Java framework used for writing Semantic Web applications and Pel­let, an open-source Java based OWL DL reason-er. The Pellet API provides a class, that given an ontology, it presents the class hierarchy under the form of a tree component that can be easily inte­grated in the application.</p><p>The Document component deals with the management of the document that will be anno­tated. Thus, a document is opened and then the text is retrieved and passed to the Document Par­ser component.</p><p>The Document Parser component is concerned with the parsing of the document, which results in the creation of a list of tokens. In order to de­termine which of the tokens are Nounphrases, a part of speech tagger was needed. Therefore, the tagger selected was Stanford Log-linear Part-Of-Speech Tagger developed by the Stanford Natu­ral Language Processing Group. This particular tagger has been chosen because it was developed in Java and it was easy to be integrated into the rest of the application, but also because of its high performance rate.</p><p>The tagger provides two models for the Eng­lish language: bidirectional-distsim-wsj-0-18.tagger and left3words-wsj-0-18.tagger.</p><p>In the development of the new system the first of the options above was chosen mainly because, even though it is slower than the other model, it has an increased accuracy (97.32% over 96.97%).</p><p>The Annotation component of the application deals with the automatic annotation when a noun has been selected from the text and a concept has also been selected from the ontology. In order to achieve this, a lemmatizer was needed, which has the goal "to reduce inflectional forms and sometimes derivationally related forms of a word to a common base form" (Manning et al., 2008).</p><page local="4" global="57"/><p>The use of a lemmatizer was preferred to that of a stemmer, mainly because while the stemmer uses only heuristics in order to determine a base form of a word, a lemmatizer uses vocabularies and morphological analysis in order to determine the dictionary form of an word. Thus, due to the way in which it is constructed, a lemmatizer could help increase the accuracy of annotations.</p><p>WordNet is constructed as a lexical database for the English language. It provides software tools that support automatic text analysis and one of these tools is the lemmatizer. The lemmatizer was used to automatically annotate all the nouns that share the same lemma with the selected noun.</p><p>All the annotations made are saved in a file in XML format. Every annotation is characterized by a noun, represented by the interval indicating the position it occupies in the text, and by the concept used in the annotation, specified by the RDFa attribute @about.</p><p>Resource Description Framework (RDF) is a language whose goal is to create statements re­garding Web sources. In order to create the statements, RDFa, a recommendation of W3C, uses a set of attributes composed of a few XHTML attributes together with some newly created ones (Birbeck and Adida, 2008).</p><p>Among the latter ones, the @about attribute is used in order to define the subject of the data. Because of the fact that the system annotates on­ly nouns, it was assumed that all the nouns repre­sent the subject of the data, and therefore they have all been annotated using the @about attrib­ute.</p><p>The file, in which the annotations are saved, can be later opened again and used in order to organize the existing annotations. More precise­ly, once the text document is displayed, and an annotation file is opened, the annotations from this file are retrieved and then processed.</p><p>The processing of an annotation requires the extraction of the concept it references and the interval which characterizes the position of a noun. Once this interval is retrieved, the position is searched in the current document and the cor­responding noun is highlighted.</p><p>Fig. 2: Components of the system</p><p>The Annotated Document component provides the possibility to view the annotated file. In order to achieve this, the list of annotations specific to the current document is merged with the text and they form a new document which can be viewed and saved.</p><p>In more details, the interval, which describes the position of the noun in the text, is determined for every annotation. The ends of the interval are then searched in the text and the RDFa attribute is inserted in the corresponding position. These insertions are done in a new document so that the original one remains unaffected by these chang­es.</p><p>The Annotation Manager component deals with the management of annotations. It provides a way to view and analyze the concept which was used during the annotation of a noun and also to delete the specified annotation if proven inaccurate.</p><page local="5" global="58"/></subsection></section><section number="3" title="Evaluation"><p>In this section an evaluation of the new system is presented. In order to achieve this, the metrics used for evaluation will be defined. Recall is de­fined as the number of accurate annotation divid­ed by the number of all the annotations made by a human annotator, while precision is defined by the number of accurate annotations divided by the number of accurate plus the number of inac­curate annotations generated by the annotation platform.</p><p>The new system was tested using a document base created with the help of 35 Web pages. The Web pages were parsed and the content was ex­tracted and saved in text files. The ontology used in the evaluation was the pizza.owl ontology and it was chosen because it is constructed in a way that allows correct extraction of the tree compo­nent using Jena and Pellet.</p><p>In order to evaluate the new tool, a number of factors were taken into consideration like the time required by the annotation process and the accuracy of the annotations decided by a human annotator.</p><p>The time is in direct correlation with the length of the document being processed and an­notated, and it ranges from 0.8 seconds for a 500 words document to 4.6 seconds for a 3000 words document. This has been measured on a 3 GB RAM, 2.4. GHz machine.</p><p>In the evaluation stage, the application was tested on a number of 35 documents written in English, having a length on average of 1700 words. After the automatic annotation of the documents, 1427 annotation were generated.</p><p>In order to determine the accuracy of the an­notations, one human annotator verified every annotation. Next, the accurate and inaccurate annotations were counted in order to compute the measures of precision and recall. So, the preci­sion for this set of documents was determined to be 78.3% and the recall to be 69.1%.</p><p>These results could be explained by the part-of-speech tagger used, which has an accuracy of 97.32% and also by the accuracy of the WordNet lemmatizer, but also by the fact that at the mo­ment the system, does not use word disambigua­tion techniques.</p></section><section number="4" title="Conclusion and Future Work"><p>The goal of the new editor is to provide a way of annotating documents using concepts from an ontology. In the same time, the annotations made, are valid under the RDFa recommendation. In this way, the main goal of Semantic Web, that of presenting information so that com­puters can understand and utilize it, is achieved.</p><p>One of the current limitations of the applica­tion is that it only annotates Nounphrases. The annotation process makes use of only a taxono­my extracted from the ontology. In the future, the annotation process could be extended so that ad­jectives are also annotated.</p><p>Another limitation is that the current version of the software supports only documents written in English and having the .txt extension. In the future, the system will be improved, so that a spidering component is added. It will extract content directly from the web pages, which will be afterwards annotated.</p><p>At the moment, when a noun is annotated, all the nouns that share the same lemma with the selected token, are also annotated with the same concept. This process could be further extended in the near future so that synonyms of the select­ed noun, obtained with the help of synsets from WordNet, could be also, automatically, annotated with the same concept.</p><p>Another question that arises is if it would be possible to store the annotation files on a server so that other persons would have access to them, which will surely broaden the perspective of the application. The application would then become a client-server application. This would raise some issues, that would have to be taken in con­sideration, like concurrent changes of an annota­tion file.</p><p>Another improvement that could be made is to increase the speed of the document parsing. This can be achieved by altering the implementation of the parsing algorithm, so that it becomes more time efficient.</p><p>As a conclusion, the new system presented has achieved its goal - it provides a new way of semi-automatically annotating documents. The annotations constructed are based on the RDFa recommendation, and in this way they can be further used by specialized systems. This proves to be one of the main advantages of the new plat­form. Nonetheless, improvements can and will be made to the system, that will help make it more efficient and flexible.</p></section><section title="Acknowledgments"><p>I would like to express my gratitude to Prof. dr. Monica Tataram, University of Bucharest and to Prof. dr. Walther von Hahn and Prof. dr. Cristina Vertan, University of Hamburg, for their super­vision, help and guidance.</p><page local="6" global="59"/></section><references><p>Ben Adida, Mark Birbeck, Shane McCarron and Ste­ven Pemberton. 2008. <i>RDFa in XHTML - Syntax and Processing. </i>June 2011 &lt;http://www.w3 .org/TR/rdfa-syntax/&gt;.</p><p>Mark Birbeck and Ben Adida. 2008. <i>RDFa Primer. </i>June 2011 &lt;http://www.w3 .org/TR/xhtml-rdfa-primer/&gt;.</p><p>Sam Chapman, Alexiei Dingli and Fabio Ciravegna. 2004. <i>Armadillo: Harvesting Information for the Semantic Web. </i>27th Annual International ACM SIGIR Conference on Research and Devel­opment in Information Retrieval, 25-27 July 2004,</p><p>Sheffield, UK.</p><p>Stephen Dill, Nadav Eiron, David Gibson, Daniel Gruhl, R. Guha, Anant Jhingran, Tapas Kanungo, Kevin S. Mccurley, Sridhar Rajagopalan and An­drew Tomkins. 2003. <i>A Case for Automated Large Scale Semantic Annotation. </i>Web Seman­tics: Science, Services and Agents on the World Wide Web, Vol. 1, No. 1: 115-132.</p><p>Siegfried Handschuh, Steffen Staab and Fabio Ci-ravegna. 2002. <i>S-CREAM Semi-automatic CREAtion of Metadata. </i>Proceedings of the 13th International Conference on Knowledge Engineer­ing and Knowledge Management. Ontologies and the Semantic Web.</p><p>Herman Ivan. 2011. <i>W3C Semantic Web Activity. </i>July 2011. &lt;http://www.w3 .org/2001/sw/&gt;.</p><p>Herman Ivan. 2009. <i>W3C Semantic Web Frequent­ly Asked Questions. </i>July 2011. &lt;http://www.w3 .org/RDF/FAQ&gt;.</p><p>Atanas Kiryakov, Borislav Popov, Dimitar Manov, Damyan Ognyanoff, Rosen Marinov and Ivan Ter-ziev. 2004. <i>Automatic Semantic Annotation with KIM. </i>3rd International Semantic Web Con­ference (ISWC2004).</p><p>Nadzeya Kiyavitskaya, Nicola Zeni, James R. Cordy, Luisa Mich and John Mylopoulos. 2005. <i>Semi-Automatic Semantic Annotations for Web Documents. </i>Proceedings of SWAP 2005, 2nd Italian Semantic Web Workshop.</p><p>Paul Kogut and William Holmes. 2001. <i>AeroDAML Applying Information Extraction to generate DAML annotations from Web Pages. </i>Proceed­ings of K-CAP 2001.</p><p>Jacob Köhler, Stephan Philippi, Michael Specht, and Alexander Rüegg. 2006. <i>Ontology based text in­dexing and querying for the semantic web. </i>Journal Knowledge-Based Systems archive Vol. 19</p><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">No. 8</doubt><p>Lothar Lemnitzer and Paola Monachesi. 2007. <i>Key­word extraction for metadata annotation of Learning Objects. </i>Workshop on Natural Lan­guage Processing and Knowledge Representation for eLearning environments</p><p>Lothar Lemnitzer, Cristina Vertan, Alex Killing, Kiril Simov, Diane Evans, Dan Cristea and Paola Mon-achesi. 2007. <i>Improving the search for learning objects with keywords and ontologies. </i>EC-TEL 2007 - Second European Conference on Technolo­gy Enhanced Learning.</p><p>Christopher D. Manning, Prabhakar Raghavan and Hinrich Schütze. 2008. <i>Introduction to Infor­mation Retrieval. </i>Cambridge University Press, Cambridge, UK.</p><doubt alpha="64.8" length="91" tooSmall="False" monospace="0.0">Frank Manola and Eric Miller. 2004.RDF Primer.June 2011 &lt;http://www.w3 .org/TR/rdf-primer/&gt;</doubt><p>Matthew Petrillo and Jessica Baycroft. 2010. <i>Intro­duction  to  manual annotation.  </i>July 2011. &lt;http://gate.ac .uk/wiki/IntroToManualAnnotation April2010.pdf<u>&gt;</u>.</p><p>Borislav Popov, Atanas Kiryakov, Angel Kirilov, Dimitar Manov, Damyan Ognyanoff and Miroslav Goranov. 2003. <i>KIM - Semantic Annotation Platform. </i>Proceedings of the International Seman­tic Web Conference.</p><p>Borislav Popov, Atanas Kiryakov, Damyan Ognyanoff, Dimitar Manov and Angel Kirilov.</p><p>2004. <i>KIM</i><i> - a semantic platform for infor­mation extraction and retrieval. </i>Natural Lan­guage Engineering, Vol. 10, No. 3-4: 375-392.</p><p>Lawrence Reeve and Hyoil Han. 2005. <i>Survey of Semantic annotation platforms. </i>Proceedings of the 20th Annual ACM Symposium on Applied Computing, Web Technologies and Applications track.</p><p>Antonio Sanfilippo, Stephen Tratz, Michelle Gregory, Alan Chappell, Paul Whitney, Christian Posse, Pat­rick Paulson, Bob Baddeley, Ryan Hohimer and Amanda White. 2006. <i>Automating Ontological Annotation with WordNet. </i>Proceedings of Se-mAnnot 2005</p><p>David Vallet, Miriam Fernandez and Pablo Castells.</p><p>2005. <i>An Ontology-Based Information Retriev­al Model. </i>Proceedings of Extended Semantic Web Conference.</p><p><i>Semantic        Annotation.        </i>June 2011. &lt;http://www.ontotext.com/kim/semantic-annotation&gt;.</p></references></body></article>