<!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>On Faceted Search over Knowledge Bases ?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Bernardo Cuenca Grau</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Evgeny Kharlamov</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dmitriy Zheleznyakov</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marcelo Arenas</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sˇ aru¯nas Marciusˇka</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Pontificia Universidad Cato ́lica de Chile</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Oxford</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Motivation An increasing number of applications rely on RDF [2] and SPARQL 1.1 [3] for storing, publishing, and querying semistructured data. The functionality of many such applications is enhanced with OWL 2 ontologies [1], which are used to provide a conceptual layer on top of data and enrich query answers with implicit information. Although the growing popularity of RDF, OWL 2, and SPARQL 1.1 has been accompanied by the development of better and better query answering engines, writing SPARQL 1.1 queries is not well-suited for the majority of users. Thus, an important challenge is the development of simple yet powerful query interfaces that capture welldefined fragments of SPARQL 1.1. Faceted search is a prominent approach for accessing document collections that allows users to narrow down search results by incrementally applying filters, called facets, on the annotations associated to documents [18]. Faceted search has become a mainstream commercial technology, and it is ubiquitous in e-commerce websites. For example, hotel booking websites such as Booking.com allow users to refine search results by selecting suitable values in facets such as 'Price', 'Star Rating', or 'Facilities'. Faceted search has been proposed as a suitable paradigm for querying document collections annotated with RDF, and several RDF-based faceted search systems have been developed [4, 6, 8, 13, 16, 9-11, 14, 12]. Existing approaches are, however, rather systems-oriented, and there is a lack of rigorous theoretical underpinnings. Furthermore, existing works have focused mostly on RDF, thus essentially disregarding the role of OWL 2 ontologies. In particular, the following key questions have not been satisfactorily addressed in the literature: (Q1) What fragments of SPARQL 1.1 can be naturally captured using faceted search as a query paradigm? (Q2) What is the complexity of answering such queries? (Q3) What does it mean to generate and interactively update an interface according to a given ontology? Our goal is to provide such solid foundations. We have formalised faceted interfaces tailored towards graph-based data models, and identified a fragment of first-order logic capturing the underlying queries. We have studied the complexity of answering such queries for RDF and ontologies expressed in the OWL 2 profiles. Moreover, we have devised practical and generic algorithms for recomputing faceted interfaces in response to user actions. Finally, we have implemented and tested our faceted search algorithms ? Work supported by the Royal Society, the EPSRC projects Score!, Exoda, and MaSI3, and the FP7 project OPTIQUE.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        in a prototype system [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], with encouraging results. In this extended abstract, we
provide a short overview of the main ideas underlying our approach.
      </p>
      <p>
        Technical Approach To illustrate our definitions and make our discussion concrete, we
consider an excerpt of Yago [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] about US presidents, which is depicted in Figure 1.
In this figure, dth and dbi stand
for T. Roosevelt and B.
Clincountry president person university ton, which are annotated as US
17d8fdu3oa-ust0nea9di-n0g3citizenOf dth dbi hasChild dke dch gradFrom ddgh ds
aopnvredesri,BdTielhnl’etssoddwaoiurtehg’hs‘tUseoSrnpCrKheese’lrs.meMaitoddrckeheare categorised as ‘person’.
FiFig. 1. Annotated entities nally, Stanford ds , Harvard dh ,
and Georgetown dg are
annotated with ‘university’, and the USA dusa with ‘country’, which, in turn, is annotated
with its ‘founding date’ 1783-09-03. Our goal is to find US presidents who graduated
from either Harvard or Georgetown and have a child who graduated from Stanford.
      </p>
      <p>We model facets as pairs consisting of a predicate (or facet name) and a set of
values (typically documents represented by URIs or literals). Examples of facet names are
the binary relations ‘gradFrom’ and ‘dateOfBirth’, and examples of values for these
facets are specific documents such as ‘ds’ (Stanford) and literals such as ‘1858-10-27’.
Selection of multiple values within a facet can be interpreted either conjunctively or
disjunctively, and hence we distinguish between conjunctive and disjunctive facets.
Furthermore, we distinguish a special facet type, whose values are categories (i.e., unary
predicates) rather than specific documents or literals. Finally, we also allow for a
special value any which denotes the set of all values compatible with the facet predicate.
We assume that C, UP and BP are pairwise disjoint infinite sets of constants, unary
predicates and binary predicates.</p>
      <p>Definition 1. Let type and any be symbols not occurring in C [ UP [ BP. A facet
is a pair (X; ), with 2 f^; _g, a non-empty set, and either (i) X = type and</p>
      <p>UP, or (ii) X 2 BP, any 2 and either C [ fanyg or UP [ fanyg. A
facet of the form (X; ^ ) is conjunctive, and a facet of the form (X; _ ) is disjunctive.
In a facet F = (X; ), X is the facet name, denoted by F j1, and contains the facet
values and it is denoted by F j2.</p>
      <p>The following facets could be of use when searching over these documents.
F1 = (type; _fUSpres; president; person; country; universityg);
F2 = (hasChild; _fany; dke ; dch g);
F4 = (citizenOf; ^fdusa; dukg);</p>
      <p>F3 = (gradFrom; _fany; dh; ds; dgg);</p>
      <p>F5 = (citizenOf; _fdusa; dukg):
F1 can be exploited to restrict types of entities, F2 to narrow down search results to
entities with children, where ‘any’ can be used to say that we are not looking for a
specific child, F3 to select an alma mater, and F4 and F5 to select a citizenship.
Faceted Interfaces. A faceted interface represents an arrangement of facets that can
be displayed for users, and captures the choices of facet values made by them. Thus,
it encodes both a query, whose answers constitute the current search results, and the
possible choices of facet values available to users for further refinement. In contrast to
traditional faceted search, our notion of interface allows the user to ‘navigate’ across
interconnected sets of documents and establish independent filters to each of them.
Definition 2. A basic faceted interface (BFI) is a pair (F; ), with F a facet and
F j2 the set of selected values. The set of faceted interfaces (or interfaces, for short) is
given by the following grammar, where I0 and I1 = (F; ) are BFIs and F j1 2 BP:</p>
      <p>I ::= path j (path ^ path) j (path _ path);
path ::= I0 j (I1=I):
A BFI encodes user choices for a specific facet, e.g., the BFI (F1; fUSpresg) selects the
documents categorised as US presidents. BFIs are put together in paths: sequences of
nested facets that capture navigation between sets of documents. With nesting ‘=’ we
capture queries such as ‘people with a child who graduated from Stanford’ by using
the interface (F2; fanyg)=(F3; fdsg) which first selects people having (any) children
and then those children with a Stanford degree. Finally, two types of branching can be
applied: (path1 ^ path2) indicates that search results satisfy the conditions in both path1
and path2, while (path1 _ path2) indicates that they satisfy those in path1 or path2. The
following interface Iex encodes the query ‘return US presidents who graduated from
Harvard or Georgetown and who have a child who graduated from Stanford’.</p>
      <p>
        (F1; fUSpresg) ^ (F3; fdh ; dgg) ^ (F2; fanyg)=(F3; fdsg) :
Faceted Queries. Queries encoded in faceted interfaces can be captured by formulae
in the positive existential fragment of first-order logic with one free variable, where
in every disjunction '1 _ '2, the subformulae '1 and '2 share at most one variable.
Moreover, these queries involve predicates of arity at most two and are tree shaped. The
output variable of a faceted query is the root variable in the query graph. We also
considered extensions of faceted interfaces that allow us to choose different output variables (a
functionality typically referred to as refocusing [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]). The query encoded by Iex returns
two presidents: Roosevelt and Clinton. We investigated combined complexity of faceted
query evaluation for ontologies expressed in the OWL 2 profiles [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. We showed that
the problem is PTIME-complete for RL and EL ontologies and NP-complete for QL.
We also investigated combined complexity under the active domain semantics (the
default in SPARQL query evaluation), and showed that it is tractable for all the profiles.
Interface Generation and Update. Faceted navigation is an interactive process. Starting
with an initial interface generated from a keyword search, users ‘tick’ or ‘untick’ facet
values and the system reacts by updating both search results (query answers) and facets
available for further navigation. We formally captured this interaction and proposed
interface generation and update algorithms that are ‘guided’ by the (explicit and implicit)
information in the ontology. Our algorithms are based on the same general principle:
each element of the initial interface (resp. each change in an interface as a response of
an action) must be ‘justified’ by a suitable entailment in O. In this way, by exploring
the ontology, we can guide users in the formulation of meaningful queries.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. W3C:
          <article-title>OWL 2 Web Ontology Language</article-title>
          . http://www.w3.org/TR/owl2-overview/
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. W3C:
          <article-title>Resource Description Framework (RDF)</article-title>
          . http://www.w3.org/RDF/
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3. W3C:
          <article-title>SPARQL 1.1 Query Language</article-title>
          . www.w3.org/TR/sparql11-query/
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Berners-Lee</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hollenbach</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lu</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Presbrey</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Prudhommeaux</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schraefel</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.M.C.</surname>
          </string-name>
          <article-title>: Tabulator Redux: Browsing and Writing Linked Data</article-title>
          . In: LDOW (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Clarkson</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Navathe</surname>
            ,
            <given-names>S.B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Foley</surname>
            ,
            <given-names>J.D.</given-names>
          </string-name>
          :
          <article-title>Generalized Formal Models for Faceted User Interfaces</article-title>
          .
          <source>In: JCDL</source>
          . pp.
          <fpage>125</fpage>
          -
          <lpage>134</lpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Fafalios</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tzitzikas</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>X-ENS: Semantic Enrichment of Web Search Results at RealTime</article-title>
          . In: SIGIR (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Grau</surname>
            ,
            <given-names>B.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kharlamov</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marciuska</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zheleznyakov</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Arenas</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jimenez-Ruiz</surname>
          </string-name>
          , E.:
          <article-title>SemFacet: Semantic Faceted Search over Yago</article-title>
          .
          <source>In: WWW Demo</source>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Hahn</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bizer</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sahnwaldt</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Herta</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Robinson</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , Bu¨rgle,
          <string-name>
            <given-names>M.</given-names>
            , Du¨wiger, H.,
            <surname>Scheel</surname>
          </string-name>
          ,
          <string-name>
            <surname>U.</surname>
          </string-name>
          :
          <article-title>Faceted Wikipedia Search</article-title>
          . In: BIS (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Heim</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ziegler</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lohmann</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>gFacet: A browser for the web of data</article-title>
          .
          <source>In: IMC-SSW. CEUR-WS</source>
          , vol.
          <volume>417</volume>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Hildebrand</surname>
          </string-name>
          , M.,
          <string-name>
            <surname>van Ossenbruggen</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hardman</surname>
          </string-name>
          , L.:
          <article-title>/facet: A Browser for Heterogeneous Semantic Web Repositories</article-title>
          . In: ISWC (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Huynh</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mazzocchi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karger</surname>
            ,
            <given-names>D.R.</given-names>
          </string-name>
          :
          <article-title>Piggy Bank: Experience the Semantic Web Inside Your Web Browser</article-title>
          .
          <source>J. Web Sem</source>
          .
          <volume>5</volume>
          (
          <issue>1</issue>
          ) (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Huynh</surname>
            ,
            <given-names>D.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Karger</surname>
            ,
            <given-names>D.R.</given-names>
          </string-name>
          :
          <article-title>Parallax and Companion: Set-based Browsing for the Data Web (</article-title>
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. Hyvo¨nen, E.,
          <string-name>
            <surname>Saarela</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Viljanen</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>Ontogator: Combining View- and Ontology-Based Search with Semantic Browsing</article-title>
          . In: XML Finland (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Kobilarov</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dickinson</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Humboldt: Exploring Linked Data</article-title>
          . In: LDOW (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Motik</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cuenca Grau</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fokoue</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>OWL 2 Web Ontology Language Profiles</article-title>
          .
          <source>W3C Recommendation</source>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16. m.c. schraefel,
          <string-name>
            <surname>Smith</surname>
            ,
            <given-names>D.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Owens</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Russell</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Harris</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          , Wilson,
          <string-name>
            <surname>M.L.</surname>
          </string-name>
          :
          <article-title>The Evolving mSpace Platform: Leveraging the Semantic Web on the Trail of the Memex</article-title>
          . In: Hypertext (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Suchanek</surname>
            ,
            <given-names>F.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kasneci</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weikum</surname>
          </string-name>
          , G.:
          <article-title>Yago: A Core of Semantic Knowledge</article-title>
          . In: WWW (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Tunkelang</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          : Faceted Search.
          <source>Synthesis Lectures on Information Concepts</source>
          , Retrieval, and Services, Morgan &amp; Claypool Publishers (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>