<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Widget for Semantic Query Expansion</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jouni Tuominen</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tomi Kauppinen</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Kim Viljanen</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Eero Hyvonen</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Semantic Computing Research Group (SeCo) Helsinki University of Technology (TKK) and University of Helsinki</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>We introduce the idea of utilizing ontologies as a service for query expansion, based on an AJAX widget. This ONKI Query Expansion Widget can be integrated into the search input eld of a traditional keyword-based legacy system by one line of JavaScript code, making the search system semantic. For example, when searching for \tools", also \hammers", \axes" etc. can be found based on the underlying hyponymy. In the same vein, the spatial relations of a geo-ontology or temporal relations can be utilized. Application of the widget in legacy search systems on the web is discussed by examples. The widget makes it possible to utilize the ontologies of the Finnish Ontology Library Service ONKI in a very cost-e cient way.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>(rdfs:subClassOf ) for expanding the query concepts with their subclasses. In case
of the Finnish Spatio-temporal ontology SAPO4 the place names in the query
are expanded to regionally overlapping current and historical places. Also other
relations could be used for query expansion by adjusting the ontology-speci c
con guration les of the ONKI Ontology Service as desired.</p>
      <p>To integrate the ONKI widget into an application the following code is added
to the HTML source of the web page. First, the ONKI JavaScript library is
loaded into the browser:
&lt;script type="text/javascript" src="http://www.yso.fi/onki.js"&gt;&lt;/script&gt;</p>
      <p>Then the input elds on the HTML page can be changed into ONKI widgets
by using a parametrized method call in the onkeyup-attribute:
&lt;input id="searchField" onkeyup="onki['koko'].search({'queryExpansion' : true})" /&gt;</p>
      <p>The functionalities of the widget can be customized by parametrizing the
method call. By default the selected query concepts and the concepts expanding
them are stored in hidden input elds to be sent to the application along with
the search form. A JavaScript callback method can be used, too. The form of the
query expression can be de ned by providing a JavaScript method. For example,
in a Google query, disjunctive query terms term1 and term2 are expressed in
the form \term1 " OR \term2 ".</p>
      <p>For a demonstration we have used the Kantapuu. museum collection search
form5, and created a copy of it with three integrated ONKI widgets for the elds
keywords, place of use, and material6. Also a demonstration page consisting of
a Google search eld with integrated ONKI widget is available7.</p>
      <p>Acknowledgements This work has been funded by Lusto The Finnish Forest
Museum8. Partial funding was given by the FinnONTO project9, funded by the
National Technology and Innovation Agency (Tekes) and 38 private and public
organizations, and the EU FP7 project SmartMuseum10.
4 http://www.seco.tkk.fi/ontologies/sapo/
5 http://www.kantapuu.fi/
6 http://www.yso.fi/kantapuu-qe/.
7 http://www.yso.fi/google-qe/
8 http://www.lusto.fi/
9 http://www.seco.tkk.fi/projects/finnonto/
10 http://www.smartmuseum.eu/</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Viljanen</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tuominen</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , Hyvonen, E.:
          <article-title>Publishing and using ontologies as mashup services</article-title>
          .
          <source>In: Proceedings of the 4th Workshop on Scripting for the Semantic Web (SFSW</source>
          <year>2008</year>
          ),
          <source>5th European Semantic Web Conference 2008 (ESWC</source>
          <year>2008</year>
          ), Tenerife,
          <source>Spain (June</source>
          <volume>1</volume>
          {5
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>