<!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>Discovering Issues in Datasets Using LODSight Visual Summaries</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Marek Dud´aˇs</string-name>
          <email>marek.dudas@vse.cz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vojtˇech Sv´atek</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Information and Knowledge Engineering, University of Economics</institution>
          ,
          <addr-line>W. Churchill Sq.4, 130 67 Prague 3</addr-line>
          ,
          <country country="CZ">Czech Republic</country>
        </aff>
      </contrib-group>
      <fpage>77</fpage>
      <lpage>82</lpage>
      <abstract>
        <p>Quality-checking of linked data is a hot topic nowadays. As complement to fully automated quality analysis we propose issue discovery via manual exploration of dataset summary graphs. Our LODSight summary visualizer has been extended with new features, ontology/predicate filtering, instance picking and multi-dataset summarization, so as to better support this task. Three scenarios of dataset issue discovery have been investigated with the help of the extended tool.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Quality checking of RDF datasets is a widely researched topic with diverse
approaches being applied [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Automated error detection might be test-driven,
where a set of tests implemented, e.g., as SPARQL queries might be run to
search for incorrect predicate usage or typing. However, the tests have to be
prepared in advance. This may work well for checking the usage of entities from a
single ontology; datasets however often refer to several ontologies, and preparing
and maintaining a set of tests for every possible combination of ontologies that
might be used in the dataset does not seem feasible. Using reasoning and
checking for inconsistencies is an obvious option, but requires the ontologies to be
systematically equiped with axioms, including, e.g., the class disjointness ones,
which is not always the case (e.g., in the DBpedia ontology). Manual, user-driven
evaluation of facts in the dataset has also been proposed, but its scalability is
obviously limited.
      </p>
      <p>
        As a novel approach we propose to first summarize the dataset graph/s
and then to apply specifically tailored visualization over the summary, allowing
for manual discovery of issues. Depending on context, the visual exploration of
summaries may either precede the automated quality analysis (indicating, e.g.,
on which predicates the tests are to be run), or, conversely, focus on parts of
the dataset already indicated as problematic by automated analysis; for smaller
datasets the analysis in visualizer might even be sufficient. In the paper we
present several possibilities how a previously developed dataset summary
visualization tool, LODSight [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], enriched with several new features, can be used as
a complement to existing error detection systems.
      </p>
      <p>
        Related research The visualization in LODSight is similar to maps of ontology
usage [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] and Explod [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Both tools could also be used for error detection in
a similar way as presented with LODSight. We are unaware of any research
focused on exploiting visualization for dataset error detection. However, many
non-visual approaches to error detection exist. Atencia et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] proposes finding
pseudo-keys in the dataset and using them to detect errors such as a person with
the same death and birth date. Detection of such errors cannot be performed
nor supported with LODSight type of visualization – it is too general to allow
comparison of values linked to specific instance. Outlier detection implemented
by Paulheim [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] could be supported by LODSight: combinations of classes and
properties detected as outliers could be e.g. highlighted in the visualization. A
simpler form of outlier detection can be even performed in LODSight by looking
at type-property combinations with lower frequency in the dataset represented
by link thickness. Error detection done by P´eron et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] uses domain/range
axioms from ontologies. Kontokostas et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] implemented versatile error
detection based on SPARQL queries automatically created from patterns. Complex
approaches like the last two mentioned obviously can reveal errors that cannot be
seen in the simplified visualization. However, the general overview of the dataset
contents provided by the visualization might still help to determine which
approaches to error detection should be used for the specific dataset. Datasets can
be also checked for errors manually, as shown by Zaveri et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>LODSight</title>
      <p>LODSight1 is a dataset summary visualization tool. It uses SPARQL to find
all type-property and datatype-property paths in the dataset. Type-property
path is a sequence type1 - property - type2. Type1 and type2 are the types
of instances from the dataset that are connected by the property. We use the
term path frequency to denote the number of triples ?s ?property ?o in the
dataset where ?s is an instance of type1 and ?o of type2. Datatype-property
paths are analogous sequences of type - datatype property - datatype. All
paths are merged into one graph and visualized in one view allowing the user
to see generalized structure of the dataset and usage of ontologies in it. The
visualization is interactive and the user can also filter the displayed paths to show
only those with lower or higher frequency. The summarization is run offline as
it might be prohibitively time-consuming in case of larger datasets. The results
of the summarization are stored in a database. A list of previously summarized
datasets is offered to view in the LODSight web application. To support error
detection, we implemented several new features.</p>
      <p>Ontology Filter Whenever dataset visualization is loaded, a list of ontology
IRIs used in the dataset is shown. Users can select any subset of the IRIs
to limit the visualization to entities from the selected ontologies and entities
linked directly to them. This way users can analyze usage of selected ontology
in the context of the dataset.
1 Available at http://lod2-dev.vse.cz/lodsight-v2</p>
      <p>Predicate Filter Similarly to the ontology list, a list of all properties used in
the dataset is displayed. When a subset of the properties is selected, only
the entities linked with them are shown. Users can thus analyze their usage
without other links cluttering the view.</p>
      <p>Analyzing Example Instances Users can select a subset of class nodes in the
graph and retrieve their example instances that are linked with the properties
shown in the generalized graph. The labels or URIs of the instances are
displayed above the class nodes. The user can click on any of them to open
a new browser tab where the resource description is retrieved. This makes
manual checking of the facts related to the instances easier.</p>
      <p>Merging Summarizations of Several Datasets Any number of the
available dataset summarizations can be selected in the list and then visualized in
one view. The paths from all the selected summarizations are simply merged
into one graph and displayed. This feature can be useful in conjunction with
ontology filter – see Section 3.3 for more details.
3
3.1</p>
    </sec>
    <sec id="sec-3">
      <title>Preliminary Tests in Example Usage Scenarios</title>
      <sec id="sec-3-1">
        <title>Analyzing Large Dataset with Predicate Filter</title>
        <p>As an example of a large dataset, we used Greek DBpedia. Visualizing the whole
summarization is simply impossible in this case as it contains thousands of paths
and the resulting visualization is too cluttered and thus unreadable. A way to
get an overview of possibly erroneous parts of the structure would be to limit the
maximum path frequency to a very low number. In this case, that still leads to
too many results and unreadable visualization. So does filtering the visualization
by ontology. A feasible option is to filter by predicate. We can go through the
predicates one by one, or select those suggested by some other error detection
method or by an expert. Consider the latter case, where, e.g., the property
dbo:child from DBpedia ontology was identified as possibly incorrectly used and
thus selected in the predicate filter. In the resulting visualization (Fig. 1) we can
immediately see classes like dbo:WrittenWork, whose instances clearly should not
be linked with dbo:child property. We manually adjust the visualization to focus
on one of them and see that dbo:WrittenWork is linked to dbo:Person with
dbo:child. We select the two class nodes and retrieve their example instances.
Their labels are shown above the class nodes (Fig. 2). They are in Greek, so
perhaps not yet helpful by themselves, but we can click on them and their
description is opened in a new browser window. There we can see that both
instances are actually persons, but one of them was incorrectly typed as book.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Showing the Whole Structure To See Missing Links</title>
        <p>Smaller summarizations (approx. up to hundred paths) of less complex datasets
can be visualized as whole in a single view. This may allow to see another type of
error: missing links. Consider the visualization of the RISM Authorities dataset
summarization in Fig. 3. It shows that the dataset contains interlinked persons
and documents. There are also organizations that are not linked to any person
nor document. That indicates that some facts may be missing in the dataset:
e.g., that persons are members of organizations or organizations are owners of
documents.
3.3</p>
        <p>Detecting Errors in Ontology Usage Across Several Datasets
Filtering the visualization to entities of a selected ontology might be used in
conjunction with merging summarizations of several datasets into one graph. This
way an expert on the given ontology might check its usage in several datasets at
once, instead of looking at each dataset separately. Consider an expert on FOAF
who wants to check if the ontology is used correctly in the RISM Authorities and
ESWC2015 datasets.2 The expert selects both datasets and sets the ontology
filter to FOAF. The result is in Fig. 4. The expert might spot, e.g., the possibly
suboptimal usage of dc:creator to link foaf:Document to foaf:Person (foaf:maker
is recommended by FOAF documentation to link document and person instances
instead of dc:creator ). The expert could find out which datasets contain such
triples and inform their maintainers about the proper usage. The functionality
for showing which part of the graph comes from which dataset in such merged
visualization is however yet to be implemented.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Conclusions and Future Work</title>
      <p>We proposed that dataset structure visualization might be helpful for detecting
errors in a dataset. We enriched existing dataset summary visualization tool,
LODSight, with several new features and showed their usage in several scenarios
2 Randomly chosen out of the datasets we summarized with LODSight so far.
of error detection. Preliminary results suggest that in case of large datasets3 the
capabilities of the visualization are somewhat limited – the same results can be
achieved using some existing automated error detection method more easily. For
smaller datasets, whose whole summarizations can be viewed on one screen, we so
far identified two possible use cases when the visualization might be useful:
finding missing links and checking ontology usage across several datasets. Although
the former might be done automatically without the visualization, the
visualization may allow an expert user to more easily decide whether disconnected
subgraphs in the summarization are a result of an error or just a coincidence.
The latter cannot be easily replaced by automated tests, since it would be hard
to prepare tests for every possible combination of properties and classes from
different ontologies; in contrast, an expert can spot the incorrect usage immediately
in the visualization. Future work will include investigating other error detection
scenarios, thorough evaluation, and reliability enhancement of the tool.
The research is supported by UEP IGA F4/90/2015 and by long-term
institutional support of research activities by Faculty of Informatics and Statistics,
Univ. of Economics, Prague.
3 In terms of the number of combinations of classes and properties used in the dataset.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Atencia</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>David</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Scharffe</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Keys and pseudo-keys detection for web datasets cleansing and interlinking</article-title>
          .
          <source>In: Knowledge Engineering and Knowledge Management</source>
          , pp.
          <fpage>144</fpage>
          -
          <lpage>153</lpage>
          . Springer (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. Dud´aˇs,
          <string-name>
            <given-names>M.</given-names>
            , Sva´tek, V.,
            <surname>Mynarz</surname>
          </string-name>
          , J.:
          <article-title>Dataset summary visualization with LODSight</article-title>
          .
          <source>In: The 12th Extented Semantic Web Conference (ESWC2015)</source>
          . http://lod2-dev. vse.cz/lodsight/lodsight-eswc2015-demopaper.pdf
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Khatchadourian</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Consens</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          : Explod:
          <article-title>Summary-based exploration of interlinking and RDF usage in the linked open data cloud</article-title>
          .
          <source>The Semantic Web: Research</source>
          and Applications pp.
          <fpage>272</fpage>
          -
          <lpage>287</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Kinsella</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , Boja¯rs,
          <string-name>
            <given-names>U.</given-names>
            ,
            <surname>Harth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Breslin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.G.</given-names>
            ,
            <surname>Decker</surname>
          </string-name>
          ,
          <string-name>
            <surname>S.:</surname>
          </string-name>
          <article-title>An interactive map of semantic web ontology usage</article-title>
          .
          <source>In: Information Visualisation</source>
          ,
          <year>2008</year>
          . IV'
          <volume>08</volume>
          . 12th International Conference. pp.
          <fpage>179</fpage>
          -
          <lpage>184</lpage>
          . IEEE (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Kontokostas</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Westphal</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Auer</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hellmann</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lehmann</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cornelissen</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaveri</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Test-driven evaluation of linked data quality</article-title>
          .
          <source>In: Proceedings of the 23rd international conference on World Wide Web</source>
          . pp.
          <fpage>747</fpage>
          -
          <lpage>758</lpage>
          . ACM (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Paulheim</surname>
          </string-name>
          , H.:
          <article-title>Identifying wrong links between datasets by multi-dimensional outlier detection</article-title>
          .
          <source>In: 3rd International Workshop on Debugging Ontologies and Ontology Mappings</source>
          ,
          <source>WoDOOM</source>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Paulheim</surname>
          </string-name>
          , H.:
          <article-title>Automatic knowledge graph refinement: A survey of approaches and evaluation methods (</article-title>
          <year>2015</year>
          ), http://www.semantic
          <article-title>-web-journal</article-title>
          .net/system/ files/swj1083.pdf
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8. P´eron, Y.,
          <string-name>
            <surname>Raimbault</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          , M´enier, G.,
          <string-name>
            <surname>Marteau</surname>
            ,
            <given-names>P.F.</given-names>
          </string-name>
          :
          <article-title>On the detection of inconsistencies in RDF data sets and their correction at ontological level (</article-title>
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Zaveri</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kontokostas</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sherif</surname>
            ,
            <given-names>M.A.</given-names>
          </string-name>
          , Bu¨hmann, L.,
          <string-name>
            <surname>Morsey</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Auer</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lehmann</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>User-driven quality evaluation of DBpedia</article-title>
          .
          <source>In: Proceedings of the 9th International Conference on Semantic Systems</source>
          . pp.
          <fpage>97</fpage>
          -
          <lpage>104</lpage>
          . ACM (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>