<!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>Approximating Inference-enabled Federated SPARQL Queries on Multiple Endpoints</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Yuji Yamagata</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Naoki Fukuta</string-name>
          <email>fukuta@cs</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Graduate School of Informatics, Shizuoka University Shizuoka</institution>
          ,
          <country country="JP">Japan</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Running inference-enabled SPARQL queries may sometimes require unexpectedly long execution time. Therefore, demand has increased to make them more usable by slightly changing their queries, which could produce an acceptable level of similar results. In this demonstration, we present our query-approximation system that can transform an inference-enabled federated SPARQL query into another one that can produce acceptably similar results without unexpectedly long runtimes to avoid timeout on executing inference-enabled federated SPARQL queries.</p>
      </abstract>
      <kwd-group>
        <kwd>SPARQL</kwd>
        <kwd>inference</kwd>
        <kwd>federated query</kwd>
        <kwd>ontology mapping</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Reasoning on LODs allows queries to obtain unstated knowledge from a distinct
one [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Techniques to utilize reasoning capability based on ontology have been
developed to overcome several issues, such as higher complexity in the worst case
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ][
        <xref ref-type="bibr" rid="ref7">7</xref>
        ][
        <xref ref-type="bibr" rid="ref8">8</xref>
        ][
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>When a query prepared by the client might require a long execution time, a
standard SPARQL endpoint implementation will try to execute the query with
lots of cost to return answers. If the endpoint receives lots of heavy queries,
it might spend much time on their execution or, more severely, it might cause
a server-down. This is especially important for endpoints that have inference
engines to support OWL reasoning capability.</p>
      <p>
        In this paper, we present an idea and its prototype implementation of a
query-approximation system that can transform an inference-enabled federated
SPARQL query into another one that can produce acceptably similar results
without unexpectedly long runtimes to avoid timeout on executing
inferenceenabled federated SPARQL queries.1
In [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], Kang et al. introduced a number of metrics that can be used to predict
reasoning performance and evaluated various classi ers to know how accurately
1 A demonstration is available at http://whitebear.cs.inf.shizuoka.ac.jp/Yaseki/
they predict classi cation time for an ontology based on its metric values.
According to their evaluation results, they have prepared prediction models with
accuracy of more than 80%, but there are still major difficulties in improving
them.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], it was introduced that reasoning tasks on ontologies constructed from
an expressive description logic have a high worst-case complexity. It has been
done by analyzing experimental results that divided each of several ontologies
into four and eight random subsets of equal size and measuring classi cation
times of these subsets as increments. They reported that some ontologies
exhibit non-linear sensitivity on their inference performance. They also argued
that there is no straightforward relationship between the performance of a
subset of each isolated ontology and the contribution of each subset to the whole
inference performance on the whole ontology, while they provided an algorithm
that identi es an ontology's hot spots.
      </p>
      <p>
        There are two possible approaches to managing long-running queries. One is
to utilize parallel and distributed computing techniques to make those executions
faster [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Another possible approach is rewriting a query that requires long
execution time to a light-weight one. There are some query rewriting approaches to
improve the quality of queries [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ][
        <xref ref-type="bibr" rid="ref3">3</xref>
        ][
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Also, there are some heuristic techniques
to approximate inference-enabled queries by modifying some hotspots in the
query that prevent faster execution [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. However, since those hotspots are also
dependent on their individual ontologies, such query modi cation should take
into account both query-structure and characteristics of the ontologies used.
3
      </p>
    </sec>
    <sec id="sec-2">
      <title>Outline and System Architecture</title>
      <p>If a query seems not to be a time-consuming one, the endpoint executes the
query. If the query execution is classi ed as time-consuming, the endpoint may
have an option to reject the execution of the query or transform that query into
an optimized one. To implement such behaviors in an endpoint, some extensions
should be provided to allow a noti cation to the client that the received query
has been transformed into another one, or the query has been rejected due to a
heavy-load condition.</p>
      <p>
        To realize the idea, we are implementing a preliminary system to classify
whether a query execution is time-consuming or not, rewriting the query to a
more light-weight one, and extending the protocol to notify the rejection of the
query, the applied query-transformation for the query, and so on. We applied a
pattern-based heuristic query rewriting technique that, for example, substitutes
some named classes to subsets of their potential classes that are derived by the
inference. Our prototype system has a unique proxy module called \Front-end
EP" between the client and the endpoint (called \Back-end EP" in this paper).
Figure 1 shows a brief overview of the query execution process mediated by a
Front-end EP. Figure 2 shows the basic procedure of query processing on our
system. Table 1 shows our preliminary evaluation on the heavy-query detection
Approximating Inference-enabled Federated SPARQL Queries
on a single endpoint con guration shown in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Here, we used Linklings ontology
from the OAEI dataset in the preliminary experiment.
      </p>
      <p>
        To prepare datasets to evaluate the performance sensitivity of ontology-level
simpli cation techniques, we reduced Linklings ontology by cutting several
relational descriptions and added 10 instances for each named class. As an
experimental environment, we set up a SPARQL endpoint using Joseki (v3.4.4)
in conjunction with a server-side reasoner using Pellet [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] to enable OWL-level
inference capability on the endpoint. In this experiment, we used 100 ms as the
threshold time. The evaluation data set was generated by queries to get the
instances of a named class in the Linklings ontology. Here, we conducted an
experiment for all 1,369 queries on N-fold cross validation. We used two classi ers:
Bagged C4.5 and Boosted C4.5, implemented in Weka [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] with default
parameters. Further evaluation of the performance on multiple-endpoint con gurations
remains as future work.
whenFrtohnetreecnedivEePdrqejueecrtys itsheclaqsuseirfiyed as
time-consuming.
      </p>
      <p>Front end EP sends the request as is
when the received query is classified as</p>
      <p>not-time-consuming.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Suntisrivaraporn</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Debugging Snomed ct Using Axiom Pinpointing in the Description Logic EL+</article-title>
          . In: Cornet,
          <string-name>
            <given-names>R.</given-names>
            ,
            <surname>Spackman</surname>
          </string-name>
          ,
          <string-name>
            <surname>K</surname>
          </string-name>
          . (eds.)
          <article-title>Representing and sharing knowledge using SNOMED</article-title>
          .
          <source>Proceedings of the 3rd International Conference on Knowledge Representation in Medicine KR-MED</source>
          <year>2008</year>
          , vol.
          <volume>410</volume>
          , pp.
          <volume>1</volume>
          {
          <issue>7</issue>
          .
          <string-name>
            <surname>CEUR-WS</surname>
          </string-name>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bischof</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Polleres</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>RDFS with Attribute Equations via SPARQL Rewriting</article-title>
          . In: Cimiano,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Corcho</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            ,
            <surname>Presutti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            ,
            <surname>Hollink</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            ,
            <surname>Rudolph</surname>
          </string-name>
          , S. (eds.)
          <article-title>The Semantic Web: Semantics and Big Data</article-title>
          .
          <source>LNCS</source>
          , vol.
          <volume>7882</volume>
          , pp.
          <volume>335</volume>
          {
          <fpage>350</fpage>
          .
          <string-name>
            <surname>SpringerVerlag</surname>
          </string-name>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Fujino</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fukuta</surname>
          </string-name>
          , N.:
          <article-title>SPARQLoid - a Querying System using Own Ontology and Ontology Mappings with Reliability</article-title>
          .
          <source>In: Proc. of the 11th International Semantic Web Conference (Poster &amp; Demos) (ISWC</source>
          <year>2012</year>
          )
          <article-title>(</article-title>
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Fujino</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fukuta</surname>
          </string-name>
          , N.:
          <article-title>Utilizing Weighted Ontology Mappings on Federated SPARQL Querying</article-title>
          . In: Kim,
          <string-name>
            <given-names>W.</given-names>
            ,
            <surname>Ding</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            ,
            <surname>Kim</surname>
          </string-name>
          , H.G. (eds.)
          <source>The 3rd Joint International Semantic Technology Conference (JIST2013)</source>
          .
          <source>LNCS</source>
          , vol.
          <volume>8388</volume>
          , pp.
          <volume>331</volume>
          {
          <fpage>347</fpage>
          . Springer International Publishing (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Goncalves</surname>
            ,
            <given-names>R.S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parsia</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>Performance Heterogeneity and Approximate Reasoning in Description Logic Ontologies</article-title>
          . In: Cudre-Mauroux,
          <string-name>
            <given-names>P.</given-names>
            , He in, J.,
            <surname>Sirin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Tudorache</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Euzenat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Hauswirth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Parreira</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.X.</given-names>
            ,
            <surname>Hendler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Schreiber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Bernstein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Blomqvist</surname>
          </string-name>
          , E. (eds.) The Semantic Web{ISWC 2012
          <string-name>
            <surname>Part</surname>
            <given-names>I. LNCS</given-names>
          </string-name>
          , vol.
          <volume>7649</volume>
          , pp.
          <volume>82</volume>
          {
          <fpage>98</fpage>
          . Springer-Verlag (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Hall</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Frank</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Holmes</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pfahringer</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reutemann</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Witten</surname>
            ,
            <given-names>I.H.</given-names>
          </string-name>
          :
          <article-title>The WEKA Data Mining Software: An Update</article-title>
          .
          <source>ACM SIGKDD explorations newsletter 11(1)</source>
          ,
          <volume>10</volume>
          {
          <fpage>18</fpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Kang</surname>
            ,
            <given-names>Y.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>Y.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krishnaswamy</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Predicting Reasoning Performance Using Ontology Metrics</article-title>
          . In: Cudre-Mauroux,
          <string-name>
            <given-names>P.</given-names>
            , He in, J.,
            <surname>Sirin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Tudorache</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Euzenat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Hauswirth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Parreira</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.X.</given-names>
            ,
            <surname>Hendler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Schreiber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Bernstein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Blomqvist</surname>
          </string-name>
          , E. (eds.) The Semantic Web{ISWC 2012
          <string-name>
            <surname>Part</surname>
            <given-names>I. LNCS</given-names>
          </string-name>
          , vol.
          <volume>7649</volume>
          , pp.
          <volume>198</volume>
          {
          <fpage>214</fpage>
          . Springer-Verlag (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Motik</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shearer</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Hypertableau Reasoning for Description Logics</article-title>
          .
          <source>Journal of Arti cial Intelligence Research</source>
          <volume>36</volume>
          ,
          <volume>165</volume>
          {
          <fpage>228</fpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Romero</surname>
            ,
            <given-names>A.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grau</surname>
            ,
            <given-names>B.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
          </string-name>
          , I.:
          <article-title>MORe: Modular Combination of OWL Reasoners for Ontology Classi cation</article-title>
          . In: Cudre-Mauroux,
          <string-name>
            <given-names>P.</given-names>
            , He in, J.,
            <surname>Sirin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            ,
            <surname>Tudorache</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Euzenat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Hauswirth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Parreira</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.X.</given-names>
            ,
            <surname>Hendler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Schreiber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Bernstein</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Blomqvist</surname>
          </string-name>
          , E. (eds.) The Semantic Web{ISWC 2012
          <string-name>
            <surname>Part</surname>
            <given-names>I. LNCS</given-names>
          </string-name>
          , vol.
          <volume>7649</volume>
          , pp.
          <volume>1</volume>
          {
          <fpage>16</fpage>
          . Springer (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. Schatzle,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Przyjaciel-Zablocki</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Hornung</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Lausen</surname>
          </string-name>
          , G.:
          <article-title>PigSPARQL: A SPARQL Query Processing Baseline for Big Data</article-title>
          .
          <source>In: Proc. of the 12th International Semantic Web Conference (Poster &amp; Demos) (ISWC</source>
          <year>2013</year>
          )
          <article-title>(</article-title>
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Sirin</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parsia</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Grau</surname>
            ,
            <given-names>B.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kalyanpur</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Katz</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>Pellet: A practical owl-dl reasoner</article-title>
          .
          <source>Journal of Web Semantics</source>
          <volume>5</volume>
          (
          <issue>2</issue>
          ),
          <volume>51</volume>
          {
          <fpage>53</fpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Yamagata</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fukuta</surname>
            , N.:
            <given-names>A Dynamic</given-names>
          </string-name>
          <string-name>
            <surname>Query</surname>
          </string-name>
          <article-title>Optimization on a SPARQL Endpoint by Approximate Inference Processing</article-title>
          .
          <source>In: Proc. of 5th International Conference on E-Service and Knowledge Management (ESKM</source>
          <year>2014</year>
          ). pp.
          <volume>161</volume>
          {
          <issue>166</issue>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>