<!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>Shapes as property restrictions and property-based similarity</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Silvia LIKAVEC</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dipartimento di Informatica</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Unviersita` di Torino</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Italy</string-name>
        </contrib>
      </contrib-group>
      <fpage>95</fpage>
      <lpage>105</lpage>
      <abstract>
        <p>In this work we look into the details of modeling shapes in an ontology as property restrictions on classes. In this way shapes do not have to be categorized in an exhaustive hierarchy and there is no need to take immediate decisions on how to group the objects, it is rather possible to individualize some important characteristics of shapes and use them as the basis for their categorization and comparison. This approach also makes it possible to use the adequate similarity measure based on properties which helps find similar shapes in di↵ erent contexts, depending on the relevance of the properties in the particular situation.</p>
      </abstract>
      <kwd-group>
        <kwd />
        <kwd>ontology</kwd>
        <kwd>OWL</kwd>
        <kwd>shapes</kwd>
        <kwd>properties</kwd>
        <kwd>restrictions</kwd>
        <kwd>similarity</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>In many di↵ erent areas, from virtual reality to architectural design, from biology to
medicine, from mathematics to computer science, the notion of shape plays a crucial
role. Finding patterns and forms in objects surrounding us, describing them and
understanding their interaction is essential to human nature. Hence, varied approaches to the
categorization of shapes and forms, as well as their mutual similarity and connectedness,
are of great importance for the development of many scientific fields.</p>
      <p>
        In various domains, there is a raising tendency to use ontologies as powerful
formalisms for knowledge representation with associated reasoning mechanisms
(inheritance, subsumption, classification etc.). Ontologies provide explicit specifications of
domain concepts and relationships that exist between them [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. They guarantee exact
semantics for each statement and avoid semantic ambiguities. Their usage allows for
extensibility and re-usability, since they are expressed with standard formats and
technologies.
      </p>
      <p>
        In the domain of shape, form and structure representation, there were some attempts
at modeling shapes ontologically, as an exhaustive hierarchy. In [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] the authors develop
a limited graphics ontology for natural language interfaces, covering the concepts like
“Shape”, “Action” and various features which describe shapes (size, color, position etc.).
In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] two first-order ontologies for representing 2D and 3D shapes like surfaces and
boxes are introduced. They use only the notions such as part-of and connectedness, rather
than Euclidean geometric relations, such as alignment and length of segments, or the
notions of curvature or surface area. In the domain of architectural design, [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] presents
a conceptual “building shape ontology” which sorts building shapes and captures their
meaning and semantics.
      </p>
      <p>
        In the realm of spatial design and reasoning, authors in [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] explore the role
ontological formalization plays in modeling of high-level conceptual requirement constraints.
They concentrate on ontological modeling of structural forms from di↵ erent
perspectives. As for architectural design, information that is being used often originates from
various sources. In [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], the authors take a step towards integration of various aspects of
architectural domain (spatial constraints, relations among objects, abstract
conceptualizations) designing modular ontologies based on the theory of "-connections. [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]
describes a method for the retrieval of 3-dimensional shapes (in this case furniture models)
based on a mapping between low level features described by the shape descriptor and
ontology concepts. This furniture ontology is used in annotation and key word based
retrieval of furniture models.
      </p>
      <p>
        As far as similarity among ontological concepts is concerned, three main approaches
can be distinguished. The first one [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] is based on information content of a class in
an IS-A taxonomy, given by the negative logarithm of the probability of occurrence of
the class in a text corpus. The second approach [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] uses the ontology graph structure,
by measuring directly the distance between nodes (usually, the number of edges or the
number of nodes that need to be traversed in order to reach one node from the other).
Finally, the third approach combines the information content approach with edge counting
based approach (see for example [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]). Di↵ erent notions of similarity and the relationships
among them are tackled in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Starting form Leibnizian relative identity as the only local
form of similarity, they show that more sophisticated notions can be obtained by applying
transformations across heterogeneous logics. They also distinguish between ontological
and epistemic similarities. While ontological similarities stem from the structure of the
world itself, epistemic similarities are used to connect entities in di↵ erent worlds.
      </p>
      <p>The rest of the paper is organized as follows. Section 1 provides a summary of the
treatment of properties in OWL and the definition of property restrictions on classes. In
Section 2 we discuss some issues concerning modeling of shapes as property restrictions
on classes, followed by some examples of shape definitions. Details of the approach to
calculating similarity of shapes based on properties can be found in Section 3. Section 4
concludes.</p>
    </sec>
    <sec id="sec-2">
      <title>1. Properties and property restrictions in OWL</title>
      <sec id="sec-2-1">
        <title>1.1. Properties in OWL</title>
        <p>In di↵ erent contexts, domain knowledge can be represented semantically using
ontologies expressed in OWL2. In an ontology, domain concepts are organized hierarchically
and have their features defined as properties. Two kinds of properties can be distinguished
in OWL: (i) object properties relating individuals among themselves and (ii) data type
properties relating individuals to data type values.</p>
        <p>Characteristics of a property are defined with a property axiom, most commonly
defining its domain and range. rdfs:domain links a property to a class description,
whereas rdfs:range links a property to either a class description or a data range. For
example:
&lt;owl:ObjectProperty rdf:ID="has_curvature"&gt;
&lt;rdfs:domain rdf:resource="#Shape"/&gt;
&lt;rdfs:range rdf:resource="#Curvature "/&gt;
&lt;/owl:ObjectProperty&gt;
defines the property has curvature which ties the elements of Shape class to the elements
of Curvature class.</p>
        <p>Equivalent properties are defined with owl:equivalentProperty.</p>
        <p>In the following section we will see how properties are used in OWL to define classes
with property restrictions.</p>
      </sec>
      <sec id="sec-2-2">
        <title>1.2. Defining classes with property restrictions</title>
        <p>Properties are used in OWL for defining classes with property restrictions, by means of
local anonymous classes, which are collections of individuals all satisfying certain
restrictions on certain properties. Two kinds of property restrictions exist: value constraints
and cardinality constraints. A value constraint concerns constraints on the range of the
property when applied to a particular class description. A cardinality constraint imposes
constraints on the number of values a property can take, in the context of a particular
class description.</p>
        <p>We start with the brief description of value constraints. There are three ways of
defining value constraints:
• owl:allValuesFrom defines a class for which all the values of the given property
are either members of the specified class or data values within the specified data
range. It is possible not to have any values for the given property. For example:
&lt;owl:Restriction&gt;
&lt;owl:onProperty rdf:resource="#has_angle" /&gt;
&lt;owl:allValuesFrom rdf:resource="#RightAngle" /&gt;
&lt;/owl:Restriction&gt;
describes an anonymous OWL class of all individuals for which the has angle
property only has values of the class RightAngle (for example square or
rectangle). In predicate logic, the counterpart of owl:allValuesFrom constraint is the
universal quantifier, i.e. for each instance of the class defined with the
restriction, every value for the property must fulfill the constraint and the constraint is
trivially satisfied for an instance that has no value for the specified property.
• owl:someValuesFrom specifies a class for which at least one of the values of the
given property is either a member of the specified class or a data value within the
specified data range (at least one must exist). There might be other values for the
given property. For example:
&lt;owl:Restriction&gt;
&lt;owl:onProperty rdf:resource="#has_angle" /&gt;
&lt;owl:someValuesFrom rdf:resource="#RightAngle" /&gt;
&lt;/owl:Restriction&gt;
describes an anonymous OWL class of all individuals which have at least one right
angle (for example right-angled triangle). In predicate logic, the counterpart of
owl:someValuesFrom constraint is the existential quantifier, i.e. for each instance
of the class defined with the restriction, there exists at least one value for the
property that fulfills the constraint.
• owl:hasValue defines a class for which the specified property has at least one
value semantically equal to the specified value, which can be either an individual
or a data value3. For example:
&lt;owl:Restriction&gt;
&lt;owl:onProperty rdf:resource="#contains" /&gt;
&lt;owl:hasValue rdf:resource="#Circle100" /&gt;
&lt;/owl:Restriction&gt;
describes an anonymous OWL class which contains a specific circle.</p>
        <p>On the other hand, cardinality constraints can be expressed by using one of the
following three constraints:
• owl:maxCardinality describes a class with at most max semantically distinct
values for the specified property (max being the value of the cardinality constraint).
For example
&lt;owl:Restriction&gt;
&lt;owl:onProperty rdf:resource="#has_number_of_edges" /&gt;
&lt;owl:maxCardinality rdf:datatype="&amp;xsd;nonNegativeInteger"&gt;5
&lt;/owl:maxCardinality&gt;
&lt;/owl:Restriction&gt;
describes an anonymous OWL class of individuals that have at most five edges
(for example polygons with 3 or 4 or 5 edges),.
• owl:minCardinality is defined analogously to maxCardinality, where the class has
at least min semantically distinct values.
• owl:cardinality is defined analogously to maxCardinality, where the class has
exactly m semantically distinct values. It is actually a redundant concept, since it
can be defined with the combination of maxCardinality and minCardinality.</p>
        <p>From the above we can see that we can consider each of the concepts in our ontology,
to have certain properties defined for it. These properties further describe the concepts in
the ontology and can be used to categorize them and to calculate their mutual similarity.</p>
      </sec>
      <sec id="sec-2-3">
        <title>1.3. Instances and their properties</title>
        <p>An instance in the ontology is defined with individual axioms called “facts” which
describe its class membership, property values and individual identity. An instance is
related to the class it belongs to directly with the rdfs:type relation and basically inherits
3For datatypes “semantically equal” means that the lexical representation of the literals maps to the same
value. For individuals it means that they either have the same URI reference or are defined as being the same
individual with owl:sameAs.
the properties of the class it belongs to. Hence, in OWL the properties of the instances
are defined by associating to each property its specific value. For example, the following
describes a red circle with the radius equal to 3 and a dotted outline.
&lt;Circle rdf:ID="Circle100"&gt;
&lt;has_radius rdf:datatype="&amp;xsd;positiveInteger"&gt;3&lt;/has_radius&gt;
&lt;has_outline rdf:resource="#Dotted"/&gt;
&lt;has_color rdf:resource="#Red"/&gt;
&lt;/Circle&gt;</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>2. Shapes defined as class restrictions</title>
      <p>Categorization of the world around us is inherent to human perception and reasoning.
Many objects are internalized easier if they are reduced to simpler forms and shapes that
we are familiar with and that we can easily group with other similar objects.</p>
      <p>We give some directions on how to model two-dimensional shapes, since they are
the easiest to comprehend and understand.4 The most common categorization of
twodimensional shapes is according to the kind of edges the shapes contain to curved shapes
and straight line composed shapes (polygons). But another categorization could start
from convex and concave shapes. Or we might want to categorize the shapes based on
the number of edges they have. The possibilities are many.</p>
      <p>So instead of forcing this somehow artificial categorization upon the shape world, we
would do the shapes more justice by defining them as property restrictions on classes. We
can start by defining many di↵ erent properties which would help us precisely describe the
shapes we need. For example, the property has edge kind could be used to define as
property restrictions the classes CurvedShape and Polygon (shapes composed from straight
lines), whereas the property has curvature would be used to distinguish ConvexShape
class from ConcaveShape class (again defining them as restrictions). In this way, there
is no need to a-priori decide which categorization should happen higher up in the
hierarchy, they can peacefully co-exist together (and not be the only ones). Once the first
level is modeled, we can proceed to model their subclasses. At this point we can have
direct subclasses with additional properties or additional restrictions. So we can include
properties like number of edges, number of equal edges, number of parallel edges etc.
This would also help us compare the shapes having all these properties defined explicitly
for them.</p>
      <p>In this light, let us have a look at two shape definitions, namely rhombus and
rectangle. A rhombus can be defined as a simple (non-self-intersecting) quadrilateral with four
equal edges, whereas a rectangle can be defined as quadrilateral with four right angles
(and they are both convex). So if we define the Quadrilateral class as a subclass of
Polygon class which has the property has number of sides restricted to 4, we can define
rhombus and rectangle as follows:
&lt;owl:Class rdf:ID="Rectangle"&gt;
&lt;rdfs:subClassOf rdf:resource="#Quadrilateral"/&gt;
&lt;rdfs:subClassOf rdf:resource="#ConvexShape"/&gt;
4Three-dimensional and n-dimensional objects are treated similarly.
&lt;rdfs:subClassOf&gt;
&lt;owl:Restriction&gt;
&lt;owl:onProperty rdf:resource="#has_angle" /&gt;
&lt;owl:allValuesFrom rdf:resource="#RightAngle" /&gt;
&lt;/owl:Restriction&gt;
&lt;/rdfs:subClassOf&gt;
&lt;rdfs:subClassOf&gt;
&lt;owl:Restriction&gt;
&lt;owl:onProperty rdf:resource="#has_number_of_angles"/&gt;
&lt;owl:cardinality rdf:datatype="&amp;xsd;nonNegativeInteger"&gt;4
&lt;/owl:cardinality&gt;
&lt;/owl:Restriction&gt;
&lt;/rdfs:subClassOf&gt;
&lt;/owl:Class&gt;
&lt;owl:Class rdf:ID="Rhombus"&gt;
&lt;rdfs:subClassOf rdf:resource="#Quadrilateral"/&gt;
&lt;rdfs:subClassOf rdf:resource="#Convex"/&gt;
&lt;rdfs:subClassOf&gt;
&lt;owl:Restriction&gt;
&lt;owl:onProperty rdf:resource="#has_number_of_equal_edges"/&gt;
&lt;owl:cardinality rdf:datatype="&amp;xsd;nonNegativeInteger"&gt;4
&lt;/owl:cardinality&gt;
&lt;/owl:Restriction&gt;
&lt;/rdfs:subClassOf&gt;
&lt;/owl:Class&gt;</p>
      <p>Obviously, these are not the only ways to define these two, or any other shape. The
process is versatile and applicable in many di↵ erent contexts. Above all, it enables very
natural comparison of shapes and establishes their similarity based on properties, as we
will see in the following section.</p>
    </sec>
    <sec id="sec-4">
      <title>3. Property-based similarity of shapes</title>
      <p>
        If we define shapes as property restrictions (on values and cardinality), we can find
similar shapes by comparing their properties. The property-based similarity of two shapes
S 1 and S 2, can be calculated by starting from Tversky’s feature-based model of
similarity [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], where similarity between objects is a function of both their common and
distinctive features:
Here (S ) is the function which describes all the relevant features of S , and ↵ , , 2 R
are parameters which permit us to treat di↵ erently the various components. For ↵ = 1
maximal importance is assigned to the common features of the two shapes and for =
non-directional similarity measure is achieved. We will use ↵ = = = 1.
      </p>
      <p>Hence, to be able to use Tversky’s model we need to calculate the following:
• common features of S 1 and S 2: cf(S 1, S 2) = (S 1) \
• distinctive features of S 1: df(S 1) = (S 1) \ (S 2) and
• distinctive features of S 2: df(S 2) = (S 2) \ (S 1).
(S 2),
Putting these values into the formula (1) and taking ↵ =
=
= 1 we obtain:</p>
      <p>In order to calculate common and distinctive features for S 1 and S 2, for each
property p, we calculate cfp, df1p and df2p, which denote how much the property p contributes
to common features of S 1 and S 2, distinctive features of S 1 and distinctive features of
S 2, respectively. In what follows we would see how di↵ erent ways of defining
properties in OWL influence the calculation of these values. We consider equal the properties
defined with owl:EquivalentProperty.</p>
      <p>We start from three kinds of value restriction declarations: (i) owl:allValuesFrom;
(ii) owl:someValuesFrom; (iii) owl:hasValue. Based on how the restrictions on
properties are defined for S 1 and S 2, we can distinguish the following six cases:
1. The property p is defined with owl:allValuesFrom for both S 1 and S 2. Let the
property p be defined for S 1 with</p>
      <p>howl:allValuesFrom rdf:resource=”#A1”i
and for S 2 with</p>
      <p>howl:allValuesFrom rdf:resource=”#A2”i.</p>
      <p>Let a1 (resp. a2) be the number of sub-classes of A1 (resp. A2). If A1 and A2 are
equal classes or declared equivalent with owl:equivalentClass or A1 is a subclass
1 1 1
of A2, then cfp = . Otherwise df1p = and df2p = .</p>
      <p>(a1 + 1) a1 + 1 a2 + 1
2. The property q is defined with owl:someValuesFrom both for S 1 and S 2. Let the
property q be defined for S 1 with</p>
      <p>howl:someValuesFrom rdf:resource=”#B1”i
and for S 2 with</p>
      <p>howl:someValuesFrom rdf:resource=”#B2”i.</p>
      <p>Let b1 (resp. b2) be the number of sub-classes of B1 (resp. B2) and w be the
number of classes in the whole domain. If B1 and B2 are equal classes or
declared equivalent with owl:equivalentClass or B1 is a subclass of B2, then
1 1 1
cfq = . Otherwise df1q = and df2q = .</p>
      <p>(b1 + 1)w (b1 + 1)w (b2 + 1)w
3. Let property r be defined for S 1 with</p>
      <p>howl:hasValue rdf:resource=”#V1”i
and for S 2 with</p>
      <p>howl:hasValue rdf:resource=”#V2”i
If V1 and V2 are the same values or declared same with owl:sameAs, then
cfq = 1. Otherwise df1q = 1 and df2q = 1.
4. If the property t is defined for S 1 with</p>
      <p>howl:hasValue rdf:resource=”#V3”i
and for S 2 with
howl:allValuesFrom rdf:resource=”#A3”i,
and if V3 is an instance of A3 or one of its subclasses, then cft = 1. Otherwise, if
a3 is the number of sub-classes of A3, then dft1 = 1 and dft2 = 1 .
a3 + 1
5. If the property x is defined for S 1 with</p>
      <p>howl:hasValue rdf:resource=”#V4”i
and for S 2 with</p>
      <p>howl:someValuesFrom rdf:resource=”#B3”i
and if V4 is an instance of B3 or one of its subclasses, then cfx = 1. Otherwise,
if b3 is the number of sub-classes of B3 and if w is the number of classes in the
whole domain, then df1x = 1 and df2x = 1 .</p>
      <p>(b3 + 1)w
6. If the property y is defined for S 1 with</p>
      <p>howl:allValuesFrom rdf:resource=”#A4””i
and for S 2 with</p>
      <p>howl:someValuesFrom rdf:resource=”#B4””i
and if a4 (resp. b4) is the number of sub-classes of A4 (resp. B4) and w is the
number of classes in the whole domain, then cfy = (a4 + 1)(1b4 + 1)w , dfy1 = a41+ 1 and
dfy2 = 1 .</p>
      <p>(b4 + 1)w</p>
      <p>Next we consider three kinds of cardinality restriction declarations: (i)
minCardinality; (ii) maxCardinality; (iii) cardinality. We can distinguish the following cases:
1. If the property f is defined with owl:maxCardinality for both S 1 and S 2, and it
has value m in S 1 and value n in S 2, where m  n, then cf f = n 1 1 , df1f = 0 and
df2f = n m. The case when m n is analogous.
2. If the property g is defined with owl:minCardinality for both S 1 and S 2, the values
for this restriction would not contribute to common and distinctive features, since
each of these restrictions can have infinitely many values. It only contributes to
similarity calculation if it is declared together with owl:maxCardinality
restriction, which is then the following case.
3. If the property h is defined with owl:cardinality for both S 1 and S 2, and it has
value m in S 1 and value n in S 2, then if m = n cf f = 1. Otherwise, if m &lt; n then
df1f = 0 and df2f = n m. The case when m &gt; n is analogous.</p>
      <p>Of course, the subclass relation should be taken into account, hence providing each
class with the property definitions inherited from parent classes.</p>
      <p>Finally, to calculate all common and distinctive features of S 1 and S 2 we repeat the
above process for each property defined for S 1 and S 2, obtaining:
cf(S 1, S 2) = ⌃ inpp=1cfpip + ⌃ inqq=1cfqiq + ⌃ inrr=1cfrir + ⌃ intt=1cftit + ⌃ inxx=1cfxix + ⌃ inyy=1cfyiy
+ ⌃ n f</p>
      <p>i f =1cf fi f + ⌃ ingg=1cfgig + ⌃ inhh=1cfhih
df(S 1) = ⌃ inpp=1df1pip + ⌃ inqq=1df1qiq + ⌃ inrr=1dfr1ir + ⌃ intt=1dft1it + ⌃ inxx=1df1xix</p>
      <p>+ ⌃ inyy=1dfy1iy + ⌃ inff=1df1fi f + ⌃ ingg=1df1gig + ⌃ inhh=1df1hih
df(S 2) = ⌃ inpp=1df2pip + ⌃ inqq=1df2qiq + ⌃ inrr=1dfr2ir + ⌃ intt=1dft2it + ⌃ inxx=1df2xix</p>
      <p>+ ⌃ inyy=1dfy2iy + ⌃ inff=1df2fi f + ⌃ ingg=1df2gig + ⌃ inhh=1df2hih
where np (resp. nq, nr, nt, nx, ny, n f , ng, nh) is the number of properties defined in each
of the possible ways explained above. Finally, we calculate the similarity between two
entities S 1 and S 2 defined with restrictions using the formula (2):
sim(S 1, S 2) =
.</p>
      <p>Another feature we want to take into account is the presence of equivalent classes,
even though they are not defined as restrictions. We assume that two classes declared
equivalent with owl:equivalentClass have similarity based on properties equal to 1.</p>
      <p>As far as individuals are concerned (instances of the classes) we simply compare
the property-value pairs for each instance. If the property p has h0 di↵ erent values in S 1
and h00 di↵ erent values in S 2, and we denote by k the number of times S 1 and S 2 have
k2 h0 k h00 k
the same value for p, then cfp = , df1p = and df2p = . We repeat this for
h0h00 h0 h00
every property p1, . . . , pk used to describe the given instance. Finally, for instances of
classes we obtain:
npk
cf(S 1, S 2) = ⌃ inpp11=1cfpip1 + . . . + ⌃ ipk =1cfpipk
df1(S 1, S 2) = ⌃ inpp11=1df1pip1 + . . . + ⌃ inppkk=1df1pipk
df1(S 1, S 2) = ⌃ inpp11=1df2pip1 + . . . + ⌃ inppkk=1df2pipk .</p>
      <sec id="sec-4-1">
        <title>3.1. Relevance of properties</title>
        <p>When defining a certain shape, not all the properties have the same importance in di↵
erent contexts. For example, in one context two shapes would be regarded similar if they
have similar number of angles and edges, in another one if they are of similar size or
if they are both concave or convex. In the above presented approach, it is possible to
account for relevance of properties by providing the relevance factors Ripp , ip = 1, . . . , np,
for each property p. Relevance factors can be either given as a-priori expert values or
gathered as user preferences. In this way, some properties become more important than
the others and the formula for calculating the mutual similarity between shapes S 1 and
S 2 becomes:
simr(S 1, S 2) =</p>
        <p>cfr(S 1, S 2)
dfr(S 1) + dfr(S 2) + cfr(S 1, S 2)
where cfr(S 1, S 2) = ⌃ inpp=1Rip cfpip + . . . + ⌃ ih=1Rih cfhih</p>
        <p>nh
dfr(S 2).
and similarly for dfr(S 1) and</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>4. Conclusions</title>
      <p>When using ontologies to represent domain knowledge, not always it is convenient to
represent shapes in an exhaustive hierarchy. It might be desirable to single our certain
properties of shapes and then categorize them having these properties in mind. This is
possible if shapes are defined as property restrictions on classes, both on value and
cardinality. Representing shapes as property restrictions makes it possible to introduce a very
natural similarity measure based on properties. This measure changes depending on the
context in which it is being used, making it possible to give more relevance to certain
properties in di↵ erent situations. Apart from modeling shapes as property restrictions
on classes, this approach would bring new insights into modeling forms and patterns as
well, as it avoids strict categorizations, providing a flexible environment for expressing
various features of complex forms.</p>
      <p>
        The presented technique for calculating property-based similarity was first used
in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], for propagation of user interests in ontology based user model. It was evaluated
in the context of PIEMONTE project [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]5 which developed a framework based on
intelligent objects composed from a real and a virtual part coexisting at the same time,
in the context of gastronomy. Although this initial approach did not include cardinality
restrictions it showed satisfying performance w.r.t. to actual reasoning and computation
of similarity and helped improve the recommendation process. A future implementation
of this method would include the cardinality restrictions and show how it handles them,
providing feedback for any necessary adjustments.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>G.</given-names>
            <surname>Antoniou</surname>
          </string-name>
          and
          <string-name>
            <surname>F. van Harmelen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A Semantic</given-names>
            <surname>Web</surname>
          </string-name>
          <article-title>Primer, second edition</article-title>
          . The MIT Press,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>M.</given-names>
            <surname>Bhatt</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Hois</surname>
          </string-name>
          and
          <string-name>
            <given-names>O.</given-names>
            <surname>Kutz</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Dylla</surname>
          </string-name>
          ,
          <article-title>Modelling functional requirements in spatial design</article-title>
          .
          <source>in Proc. 29th international conference on Conceptual modeling, ER '10</source>
          , pp.
          <fpage>464</fpage>
          -
          <lpage>470</lpage>
          , Springer-Verlag,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Borgo</surname>
          </string-name>
          and
          <string-name>
            <given-names>O.</given-names>
            <surname>Kutz</surname>
          </string-name>
          , A
          <article-title>General Framework for Shape Similarity</article-title>
          .
          <source>in Proc. SHAPES 1</source>
          .
          <fpage>0</fpage>
          - The Shape of Things. Workshop at CONTEXT-11, CEUR-WS, Vol.
          <volume>812</volume>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>F.</given-names>
            <surname>Cena</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Likavec</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Osborne</surname>
          </string-name>
          ,
          <article-title>Property-based interest propagation in ontology-based user model</article-title>
          .
          <source>in Proc. 20th Conference on User Modeling, Adaptation, and Personalization UMAP 2012, Lecture Notes in Computer Science 7379</source>
          , pp.
          <fpage>38</fpage>
          -
          <lpage>50</lpage>
          , Springer-Verlag,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Gru</surname>
          </string-name>
          <article-title>¨ninger and S. Bouafoud, Thinking Outside (and Inside) the Box</article-title>
          .
          <source>in Proc. SHAPES 1</source>
          .
          <fpage>0</fpage>
          - The Shape of Things. Workshop at CONTEXT-11, CEUR-WS, Vol.
          <volume>812</volume>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Hois</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Bhatt</surname>
          </string-name>
          and
          <string-name>
            <given-names>O.</given-names>
            <surname>Kutz</surname>
          </string-name>
          ,
          <article-title>Modular Ontologies for Architectural Design</article-title>
          .
          <source>in Proc. 2009 Conference on Formal Ontologies Meet Industry</source>
          , pp.
          <fpage>66</fpage>
          -
          <lpage>77</lpage>
          , IOS Press,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Jiang</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Conrath</surname>
          </string-name>
          ,
          <article-title>Semantic similarity based on corpus statistics and lexical taxonomy</article-title>
          .
          <source>in Proc. International Conference on Research in Computational Linguistics</source>
          , pp.
          <fpage>19</fpage>
          -
          <lpage>33</lpage>
          ,
          <year>1997</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>P.</given-names>
            <surname>Jurewicz</surname>
          </string-name>
          .
          <article-title>Building Shape Ontology, Organising, Visualising and Presenting Building Shape with Digital Tools</article-title>
          , Diplomarbeit, Technischen Universita¨
          <source>t Wien</source>
          ,
          <year>2005</year>
          .
          <article-title>5PIEMONTE project: People Interaction with Enhanced Multimodal Object for a New Territory Experience, financed by Regione Piemonte, in the context of Converging Technologies</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Niknam</surname>
          </string-name>
          and
          <string-name>
            <given-names>C.</given-names>
            <surname>Kemke</surname>
          </string-name>
          ,
          <article-title>Modeling Shapes and Graphics Concepts in an Ontology</article-title>
          .
          <source>in Proc. SHAPES 1</source>
          .
          <fpage>0</fpage>
          - The Shape of Things. Workshop at CONTEXT-11, CEUR-WS, Vol.
          <volume>812</volume>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>L.</given-names>
            <surname>Console</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Antonelli</surname>
          </string-name>
          and
          <string-name>
            <given-names>G.</given-names>
            <surname>Biamino</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Carmagnola</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Cena</surname>
          </string-name>
          and
          <string-name>
            <given-names>E.</given-names>
            <surname>Chiabrando</surname>
          </string-name>
          and
          <string-name>
            <given-names>V.</given-names>
            <surname>Cuciti</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Demichelis</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Fassio</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Franceschi</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Furnari</surname>
          </string-name>
          and
          <string-name>
            <given-names>C.</given-names>
            <surname>Gena</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Geymonat</surname>
          </string-name>
          and
          <string-name>
            <given-names>P.</given-names>
            <surname>Grimaldi</surname>
          </string-name>
          and
          <string-name>
            <given-names>P.</given-names>
            <surname>Grillo</surname>
          </string-name>
          and
          <string-name>
            <given-names>E.</given-names>
            <surname>Guercio</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Likavec</surname>
          </string-name>
          and
          <string-name>
            <given-names>I.</given-names>
            <surname>Lombardi</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Mana</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Marcengo</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Mioli</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Mirabelli</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Perrero</surname>
          </string-name>
          and
          <string-name>
            <given-names>C.</given-names>
            <surname>Picardi</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Protti</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Rapp</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Sandon</surname>
          </string-name>
          and
          <string-name>
            <given-names>R.</given-names>
            <surname>Simeoni</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Theseider</surname>
          </string-name>
          <article-title>Dupre´ and I. Torre and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Toso</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Torta</surname>
          </string-name>
          and
          <string-name>
            <given-names>F.</given-names>
            <surname>Vernero</surname>
          </string-name>
          ,
          <article-title>WantEat: interacting with social netnetworks of intelligent things and people in the world of gastronomy, ACM Transactions on Interactive Intelligent Systems</article-title>
          , Accepted for publication,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>R.</given-names>
            <surname>Rada</surname>
          </string-name>
          and
          <string-name>
            <given-names>H.</given-names>
            <surname>Mili</surname>
          </string-name>
          and
          <string-name>
            <given-names>E.</given-names>
            <surname>Bicknell</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Blettner</surname>
          </string-name>
          ,
          <article-title>Development and application of a metric on semantic nets</article-title>
          ,
          <source>IEEE Transactions on Systems Management and Cybernetics</source>
          ,
          <volume>19</volume>
          (
          <issue>1</issue>
          ):
          <fpage>1730</fpage>
          ,
          <year>1989</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>P.</given-names>
            <surname>Resnik</surname>
          </string-name>
          ,
          <article-title>Semantic similarity in a taxonomy: An information-based measure and its application to problems of ambiguity in natural language</article-title>
          ,
          <source>Journal of Artificial Intelligence Research</source>
          ,
          <volume>11</volume>
          :
          <fpage>95130</fpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>O.</given-names>
            <surname>Symonova</surname>
          </string-name>
          and
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Dao</surname>
          </string-name>
          and
          <string-name>
            <given-names>G.</given-names>
            <surname>Ucelli and R. De Amicis</surname>
          </string-name>
          ,
          <article-title>Ontology Based Shape Annotation and Retrieval</article-title>
          .
          <source>in Proc. ECAI06 International Workshop on Contexts and Ontologies: Theory, Practice and Applications</source>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>A.</given-names>
            <surname>Tversky</surname>
          </string-name>
          , Features of similarity,
          <source>Psychological Review</source>
          ,
          <volume>84</volume>
          (
          <issue>4</issue>
          ):
          <fpage>327</fpage>
          -
          <lpage>352</lpage>
          ,
          <year>1977</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>