<!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>1 Introduction</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Claudio Corona</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Emma Di Pasquale</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Antonella Poggi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marco Ruzzi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Domenico Fabio Savo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dip. di Informatica e Sistemistica, SAPIENZA University of Rome</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>DL-Lite is a family of Description Logics (DLs) whose aim is to capture some of the most popular conceptual modeling formalisms, such as Entity-Relationship model [4] and UML class diagrams1, while preserving the tractability of the most important reasoning tasks, such as ontology satisfiability and query answering of arbitrary (union of) conjunctive queries (ground and not ground). More specifically, reasoning over ontologies of the DL-Lite family, is LOGSPACE in data complexity, and can be entirely delegated to a standard DBMS technology. We refer here to DL-LiteA, the DL of the DL-Lite family that is closest to OWL 2.0. Note that DL-LiteA is in fact a fragment of OWL 2. As such, it is possible to restrict the syntax of OWL so that it captures DL-LiteA. Because of the lack of the space, we will not discuss further this topic. We provide an expressive query language for DL-LiteA ontologies, named SparSQL , whose syntax is inspired by both SQL and SPARQL3, one of the most popular W3C proposals as standard query language for OWL. Actually, SparSQL is an epistemic query language that implements the language EQL-Lite(UCQ) presented in [2]. Thus, query answering is in LOGSPACE and can be reduced to evaluate first-order logic queries over the ABox. Moreover, we stress the expressive power of DL-LiteA by presenting a series of features, that are beyond OWL and can be added to the language. Specifically, these features allow one to express data properties of object properties, denial and identification constraints, and they include a new ontology component, called the ECBox, which is a set of general form of constraints called EQL constraints, based on epistemic logics. Note that this is not the first attempt to add constraints to OWL. However, previous related work, e.g. [5], are technically and semantically incomparable with the approach presented in this paper. Notably, all the contributions discussed in this work are currently implemented within the MASTRO system, a tool for ontology representation and reasoning that has DL-LiteA as proprietary core language. The main feature of MASTRO is to reduce all reasoning tasks, such as consistency checking and query answering to the evaluation of standard SQL queries over a DBMS. Note that one of the major benefits of using 1 http://www.omg.org/uml/ 2 From now on we will refer to OWL 2.0, see http://www.webont.org/owl/1.1/. 3 We refer to http://www.w3.org/TR/2008/REC-rdf-sparql-query-20080115/ for details about SPARQL.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        DBMS technologies, is to allow for using huge amounts of possibly pre-existing data,
to populate the ontology instances [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>How to pose expressive queries over DL-LiteA ontologies:</title>
      <p>SparSQL
It is well-known that open-world semantics, typically adopted to interpret DL
ontologies, are essential for representing incomplete information, but make FOL queries over
DL ontologies undecidable. To the best of our knowledge, the most expressive FOL
fragment for which decidability of query answering has been proved in DLs, is the class
of union of conjunctive queries (UCQs), which unfortunately, have limited expressive
power.</p>
      <p>
        Hence, a non monotonic epistemic query language, named EQL-Lite(Q) , was
introduced in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] to query arbitrary DL ontologies. Intuitively, this language is based on
the idea that “we have complete information on what we know”, which allows to query
“what we know” by adopting a closed-world semantics. Thus, EQL-Lite(Q) queries
are FOL queries, whose atoms, expressed in the embedded query language Q, are
epistemic formulas that extract, from an ontology, “what is known to hold”, i.e. the
certain answers. According to the results of [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], EQL-Lite(UCQ) is particularly suitable
to express complicated queries over DL-LiteA ontologies which can be answered in
LOGSPACE w.r.t.the number of assertions in the ontology.
      </p>
      <p>In the following example, we illustrate SparSQL , the query language actually
implementing EQL-Lite(UCQ) in MASTRO.</p>
      <p>Example 1. Consider the following fragment of DL-LiteA ontology:
SubClassOf(F emale P erson)
DisjointClasses(F emale Male)
ObjectPropertyDomain(MARRIES P erson)
SubClassOf(P erson DataMinCardinality(1 SSN))
SubClassOf(Male P erson)
ObjectPropertyRange(MARRIES P erson)</p>
      <p>SymmetricObjectProperty(MARRIES)</p>
      <p>The intensional level of the ontology asserts that males and females are disjoint sets
of persons, where all persons have at least one social security number and can marry
other persons. Moreover, it says that if a person x marries a person y , then also y
marries x.</p>
      <p>Suppose that we want to know if there is not any person that is not known be a male
or a female. This query, not expressible through a UCQ, can be caught by the following
boolean SparSQL query:
VERIFY not exists (SELECT persons:x</p>
      <p>FROM SparqlTable(SELECT ?x
WHEREf?x rdf:type 0P erson0g) persons
EXCEPT( SELECT males:x</p>
      <p>FROM SparqlTable(SELECT ?x</p>
      <p>WHEREf?x rdf:type 0Male0g) males
UNION
SELECT females:x
FROM SparqlTable(SELECT ?x</p>
      <p>WHEREf?x rdf:type 0F emale0g)
females))</p>
    </sec>
    <sec id="sec-3">
      <title>Extending DL-LiteA beyond OWL</title>
      <p>
        We now present some new features that are absent in OWL and can be added to DL-LiteA.
Extending the intensional level It is possible to extend DL-LiteA of object property
data, denial constraints and identification constraints, as formally introduced in [
        <xref ref-type="bibr" rid="ref2 ref3">3, 2</xref>
        ].
– Object property data: to be closer to ER and UML formalisms, DL-LiteA has been
enriched with object property data, representing binary relations between pairs of
objects and values [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], allowing to handle data properties of object properties;
– Denial constraints: they are intensional axioms used to guarantee that a certain
condition is not satisfied by the ontology; specifically, the condition is expressed
through a (boolean) UCQ;
– Identification constraints: they are intensional axioms used to identify a concept of
an ontology by means of relationships with other objects or values. Informally, the
relationships mentioned above can be simple properties of the ontology (i.e., paths
of length 1), as an object property or a data property, or chains of simple properties
(i.e., paths with a length 1).
      </p>
      <p>Example 1 (cont.) The ontology of Example 1 can be enriched with the following
axioms:</p>
      <p>ObjectPropertyDataDomain(W eddingDate MARRIES)
ObjectPropertyDataRange(W eddingDate rdf:date)
KeyFor(SSN P erson)
deny(q() MARRIES(X,X))
The new intensional axioms state that MARRIES is the domain of the object property
data W eddingDate, while its range is date. Moreover, they state that SSN is an
identifier for P erson, and that nobody is married with himself.</p>
      <p>
        Adding epistemic constraints : the ECBox We present a new component of a DL-LiteA
ontology, called ECBox, consisting of a set of epistemic constraints, named EQL
constraints, formally introduced in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. It is worth noting that, as opposed to rules and other
kinds of axioms, constraints are not interpreted as axioms allowing to infer the set of
models of the ontology. On the contrary, constraints are interpreted as simple “checks”
over the ontology set of models.
      </p>
      <p>An EQL constraint is a ECBox axiom used to guarantee that a certain condition is
satisfied by the ontology. Specifically, the condition is expressed through a (boolean)
SparSQL query.</p>
      <p>Let us explain the need for introducing the ECBox. It is well-known that DL-LiteA,
being conceived to keep data complexity of the main reasoning tasks within LOGSPACE,
has renounced to express few constructs typically used in the ER (or UML) formalism,
such as complete generalization and minimal cardinality (greater than 1) on relations.
Hence, for example, it is not possible to assert in a DL-LiteA ontology that a person is
either a male or a female (and nothing else). However, by weakening the semantics and
using a EQLC with the boolean SparSQL query showed in Example 1, it is possible
to guarantee that if the ontology with constraints is satisfiable, then a person is either a
male or a female, in all the models of the ontology.</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>
        We presented a new query language, called SparSQL , that is an implementation of the
EQL-Lite(UCQ) epistemic query language presented in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], whose syntax is inspired
by both SQL and SPARQL, one of the most popular proposals for the standard query
language for OWL. Moreover, we enriched the ontology language mentioned so far
with a new set of constructs, beyond OWL, to handle data properties of object
properties, and to express constraints that might be particularly useful for modeling ontologies
of practical interest. It is worth noting that all along this paper we considered DL-LiteA
ontologies, having traditional ABoxes as for data layer. Actually, MASTRO is able to
access through an ontology and an appropriate set of mappings [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] any data layer,
provided that it is accessible through a standard SQL engine. Notably, both the fragment
of OWL corresponding to DL-LiteA, the SparSQL query language and the expressive
DL-LiteA constraints that were presented, are currently implemented within the
MASTRO system, and keep working when MASTRO is used to access a general data layer.
Furthermore, the first experiments with the overall system are very encouraging.
      </p>
      <p>As future work we plan to follow two main directions. On one hand, we plan to
investigate the use of SparSQL to query ontologies written in DLs, other than DL-LiteA,
e.g. OWL-DL and RDFS. On the other hand, we plan to run experiments with actual
users, in order to compare the usability of MASTRO with the other tools for ontology
management reasoning that are currently available.</p>
    </sec>
    <sec id="sec-5">
      <title>References</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Linking data to ontologies: The description logic DL-LiteA</article-title>
          .
          <source>In Proc. of OWLED</source>
          <year>2006</year>
          , volume
          <volume>216</volume>
          <source>of CEUR Electronic Workshop Proceedings</source>
          , http://ceur-ws.
          <source>org/</source>
          Vol-
          <volume>216</volume>
          /,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          . EQL-Lite:
          <article-title>Effective first-order query processing in description logics</article-title>
          .
          <source>In Proc. of IJCAI</source>
          <year>2007</year>
          , pages
          <fpage>274</fpage>
          -
          <lpage>279</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Path-based identification constraints in description logics</article-title>
          .
          <source>In Proc. of KR</source>
          <year>2008</year>
          ,
          <year>2008</year>
          . To appear.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>P. P.</given-names>
            <surname>Chen</surname>
          </string-name>
          .
          <article-title>The Entity-Relationship model: Toward a unified view of data</article-title>
          .
          <source>ACM Trans. on Database Systems</source>
          ,
          <volume>1</volume>
          (
          <issue>1</issue>
          ):
          <fpage>9</fpage>
          -
          <lpage>36</lpage>
          , Mar.
          <year>1976</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>B.</given-names>
            <surname>Motik</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Horrocks</surname>
          </string-name>
          , and
          <string-name>
            <given-names>U.</given-names>
            <surname>Sattler</surname>
          </string-name>
          .
          <article-title>Adding integrity constraints to OWL</article-title>
          .
          <source>In Proceedings of the Workshop OWLED</source>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Linking data to ontologies</article-title>
          .
          <source>J. on Data Semantics</source>
          , X:
          <fpage>133</fpage>
          -
          <lpage>173</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Ruzzi</surname>
          </string-name>
          .
          <article-title>Ontology-based data access with MASTRO (demo)</article-title>
          .
          <source>In Proceedings of the Workshop OWLED</source>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>