<!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>GraFa: Faceted Search &amp; Browsing for the Wikidata Knowledge Graph</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>José Moreno-Vega</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Aidan Hogan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>IMFD Chile &amp; Department of Computer Science, University of Chile</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>We present a demo of the GraFa faceted search and browsing interface over the Wikidata knowledge graph. We describe the key aspects of the interface, including the types of interactions that the system allows, the ranking schemes employed, and other features to aid usability. We also discuss future plans for improving the system. Online Demo: http://grafa.dcc.uchile.cl/</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Faceted browsing [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] has become a popular paradigm for interacting with data on
the Web, where a number of authors have proposed systems for faceted browsing
interfaces over Semantic Web knowledge-bases (see [
        <xref ref-type="bibr" rid="ref3 ref5">3,5</xref>
        ] for surveys). However,
many such systems are demonstrated for small, uniform datasets, where we could
not find an available system that would work for a dataset as large (many triples)
and diverse (many properties and classes) as Wikidata [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. These large, diverse
datasets are precisely those most in need of intuitive user interfaces.
      </p>
      <p>To bridge this gap, we propose the Graph Facets (GraFa) system designed
to offer faceted search and browsing over large, diverse RDF graphs. An
important feature of the GraFa system is that it provides exact faceted views, meaning
that the facets offered to restrict the current results set offer exact counts and are
exactly those that will lead to non-empty results upon selection. However, result
sets for very common types of (intermediate) queries – such as human or human
AND gender male, etc. – can reach into the millions of entities. Computing the
exact facets for such large results while maintaining interactive response times
is technically challenging and does not appear to be well-supported by
available faceted search tools. To improve scalability while maintaining efficiency,
the GraFa system thus incorporates novel indexing schemes that, in an offline
phase, pre-compute and store exact facets for large results sets.</p>
      <p>
        In our paper accepted in the research track [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], we describe the GraFa
system in detail, including the faceted browsing interactions it permits, the
indexing scheme used to improve query performance, the implementation based on
Lucene, performance experiments over Wikidata, as well as an initial user
evaluation of the system. These results show that by pre-indexing the exact facets
for 141 queries identified as generating more than 50,000 results, the worst-case
response times for the system are under 3 seconds. In addition, initial user
evaluation results provide feedback for further directions in which the system can
be improved. We refer the reader to [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] for detailed results.
      </p>
      <p>
        In the demo track, we propose to offer attendees of ISWC a live demo of
the GraFa system for performing faceted search and browsing over Wikidata.
We also wish to discuss possible features that could be added to the system in
future, other datasets or use-cases to which Grafa could be applied, as well
as to gain feedback and identify potential topics for collaboration. The demo
we plan to provide is publicly available here: http://grafa.dcc.uchile.cl/. In
this paper, we provide details on user interactions, details on the prototype, and
current limitations; for more information on performance, back-end, indexing,
usability, etc., we refer to our paper in the research track [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>User Interactions</title>
      <p>Figure 1 provides an overview of the user
interactions that the GraFa system currently
supports. The user is first presented with the
option of searching by keyword (e.g., "nick
drake") or by selecting a type IRI (e.g., wd:Q5
(human)). Each result set is associated with a
list of facets from which the user may
iteratively select further restrictions of the current
results. We will now discuss each of these
interactions in further detail.</p>
      <p>For the initial keyword search, a ranked
list of entities are returned that have
matching keywords in their labels, aliases or de- Fig. 1: Overview of user
interacscriptions; the properties corresponding to tions supported by GraFa
such values must be configured in the
system (in the case of Wikidata, we use rdfs:label, skos:altLabel and
schema:description). Furthermore, a set of supported languages must be
configured, where the labels, aliases and descriptions of these languages will be
indexed, as available; the demo is configured for both Spanish and English.</p>
      <p>Rather than search by keyword, the user can instead opt to perform a type
search; here, types are defined as values for a configured list of type properties (in
the case of Wikidata, we use wdt:P31 (instance of)). Given that users will often
not know the required IRI of a type, the GraFa interface offers auto-completion
on the labels and aliases of types in the graph, where suggested types are ranked
according to a PageRank score and are annotated with the number of results
with that type. For example, if a user types in the partial label hum, GraFa
will suggest human (3595226 results) as the first result; if selected, GraFa will
search for entities of type wd:Q5; on the other hand, if the user types in per, the
first suggestion will be person (3595226 results), which if selected will also
trigger a query for entities of type wd:Q5 (for which person is an alias).</p>
      <p>Whether the user begins with a keyword or type search, GraFa will
generate a list of resulting entities. For each entity in the results, its label, aliases,
description and an image are displayed; the label is presented as a hyperlink
that will dereference the entity IRI. In the case of keyword search, results are
ranked by a combined query-relevance and PageRank score. In the case of type
search, results are ranked purely by PageRank score. In either case, a list of
facets are computed for the current results set. Each facet is a property and a
list of values that at least one entity in the current result set is associated with.
The facet view displays all possible properties, with a count of the number of
entities with some value for that property. Upon selecting a property, the user
can perform an auto-complete search on the label of a particular value, or can
browse possible values in a drop-down list. Once a value is selected, a new result
set is generated for the active conjunction of restrictions, where these results are
ordered by PageRank; a new facet view is also generated. The user may continue
iteratively adding facets until they are satisfied with the results, or until they
reach a single result (facets with zero results are never offered).
3</p>
    </sec>
    <sec id="sec-3">
      <title>Demo</title>
      <p>We have implemented a prototype of the GraFa system for experimental
purposes and to gather initial feedback and expressions of interest. The system
uses Apache Lucene as a back-end store, managing (1) full-text search
indexing for keyword and auto-complete prefix searches, (2) structured indexes for
type and facet selection, (3) indexes for cached queries generating more than
50,000 results. The front-end is implemented as a Java servlet, with interactive
autocomplete features being based on Javascript libraries. The source code is
available from the following repository: https://github.com/joseignm/GraFa/.</p>
      <p>
        We will demonstrate an instance of the GraFa prototype indexing a dump
of Wikidata. More specifically, the demo indexes the “truthy” dump of Wikidata
from 2017/09/13, containing 1.77 billion triples and 74.1 million entities. On a
machine with an Intel Xeon E5-2609 v3 CPU, 32 GB of RAM, and 2 2TB
Seagate 7200 RPM 32MB Cache SATA, indexing the data takes approximately
5 days, with the majority of time (4.5 days) taken to compute and index all
queries with more than 50,000 results [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. In performance experiments on type
and facet selections, the worst-case response times are around 3 seconds [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>In Figure 2, we provide an example screenshot of the GraFa demo where
the user has searched for lighthouses on the Adriatic Sea, and is now considering
further filtering the 14 available results by country.1
4</p>
    </sec>
    <sec id="sec-4">
      <title>Limitations and Future Work</title>
      <p>
        We see the current GraFa system as offering a baseline system for future
development, where indeed the current version has a number of limitations that we
have yet to address, including (1) support for datatypes and range queries, (2)
support for existential value queries, (3) support for class/property hierarchies
and potentially other forms of inference, (4) incremental updates. We note that
1 See http://grafa.dcc.uchile.cl/search?instance=Q39715&amp;properties=P206%23%23Q13924
existing faceted browsing systems support some of these features, where, for
example, Broccoli [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] offers range queries, while SemFacet [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] offers reasoning
capabilities. It would thus be interesting to see if similar techniques could be
combined into GraFa in the future, what performance cost such new features
would imply for faceted browsing over a dataset such as Wikidata, and indeed,
what sorts of benefits they could bring for users of GraFa.
      </p>
      <p>Acknowledgements This work was supported by the Millennium Institute for
Foundational Research on Data (IMFD) and by Fondecyt Grant No. 1181896.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Arenas</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <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>
          :
          <article-title>Faceted search over RDF-based knowledge graphs</article-title>
          .
          <source>J. Web Sem</source>
          .
          <fpage>37</fpage>
          -
          <issue>38</issue>
          ,
          <fpage>55</fpage>
          -
          <lpage>74</lpage>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bast</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bäurle</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Buchhold</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Haußmann</surname>
          </string-name>
          , E.:
          <article-title>Easy access to the Freebase dataset</article-title>
          .
          <source>In: International World Wide Web Conference (WWW)</source>
          . pp.
          <fpage>95</fpage>
          -
          <lpage>98</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Dadzie</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rowe</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Approaches to visualising Linked Data: A survey</article-title>
          .
          <source>Semantic Web</source>
          <volume>2</volume>
          (
          <issue>2</issue>
          ),
          <fpage>89</fpage>
          -
          <lpage>124</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Moreno-Vega</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hogan</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>GraFa: Scalable Faceted Browsing for RDF Graphs</article-title>
          . In: International Semantic Web Conference (ISWC) (
          <year>2018</year>
          ), (to appear)
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Tzitzikas</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Manolis</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Papadakos</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Faceted exploration of RDF/S datasets: a survey</article-title>
          .
          <source>J. Intell. Inf. Syst</source>
          .
          <volume>48</volume>
          (
          <issue>2</issue>
          ),
          <fpage>329</fpage>
          -
          <lpage>364</lpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Vrandecic</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krötzsch</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Wikidata: a free collaborative knowledgebase</article-title>
          .
          <source>Commun. ACM</source>
          <volume>57</volume>
          (
          <issue>10</issue>
          ),
          <fpage>78</fpage>
          -
          <lpage>85</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Wei</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liu</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zheng</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fu</surname>
            ,
            <given-names>X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Feng</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>A survey of faceted search</article-title>
          .
          <source>J. Web Eng</source>
          .
          <volume>12</volume>
          (
          <issue>1</issue>
          &amp;2),
          <fpage>41</fpage>
          -
          <lpage>64</lpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>