<!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>Affordances in Representing the Behaviour of Event-Based Systems</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Fahim T. IMAM</string-name>
          <email>fahim.imam@queensu.ca</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thomas R. DEAN</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Electrical and Computer Engineering, Queen's University</institution>
          ,
          <country country="CA">Canada</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>School of Computing, Queen's University</institution>
          ,
          <country country="CA">Canada</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper, we examine affordances within the context of representing the functional behaviour of event-based systems. We provide an overview of the ontology that supports such representation. We provide an example use of the affordances that can facilitate us to describe, model, and reason about the behaviour of event-based systems in an intuitive, effective manner.</p>
      </abstract>
      <kwd-group>
        <kwd />
        <kwd>ontologies</kwd>
        <kwd>affordances</kwd>
        <kwd>functional reasoning</kwd>
        <kwd>artificial intelligence</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        In this paper, we examine affordances within the context of representing the functional
behavior of event-based systems. The representational facility that we are going to
investigate is called the Event-Based Functional Behavior Ontology (EFBO) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Our
previous work, Imam et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], was dedicated to providing the detailed understanding of
the EFBO, along with a set of use case scenarios of the ontology. The key motivation of
that effort was to develop an effective representational facility that could be utilized to
validate the levels of functional consistencies among a set of cross-platform, event-based
application systems. The focus of this short paper, however, is to discuss the affordances
within the EFBO’s representational facility. We will observe how the EFBO along with
its affordances can facilitate us to model and reason about a system’s behaviour using
a set of simple, intuitive expressions. As will be observed, through the use of its
affordances, the EFBO provides a useful mechanism to comprehend, model, and reason about
a system’s functional behaviour in an effective, intuitive manner.
      </p>
      <p>
        Affordances and Functionality. Originated in the field of perceptual psychology,
the term affordance refers to an action possibility formed by the relationship between
an agent and its environment [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. This latter concept of affordance by Gibson [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] was
adapted into the field of AI by Sahin et al. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] as a design methodology for developing
the AI systems. Affordances within the AI world are typically used to derive the potential
actions that can stem from a set of relationships between the properties of an autonomous
agent and the properties of its environment. An affordance, in its original sense, does not
exist as a direct property of an agent or its environment. Within the context of the EFBO,
the notion of functionality forms the analogous types of relationships as the notion of
affordances do for the AI systems. We define the functional behavior of a system as a set
of relations F that can exist between the agents and the events of that system, where F
must correspond to the notion of affordances. For our purpose, we consider the following
notion of affordances by Stoffregen [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] as adapted from Nye et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]:
      </p>
      <p>Wpq = (Xp; Zq) and h = f (p; q); where, h 2= Xp and h 2= Zq.</p>
      <p>In this formula above, Wpq represents a system that includes the part of its
environment Xp and an agent Zq, where p and q respectively represents the properties of Xp and
Zq. The potential affordance h exists between p and q through the relationship f . This
formulation suggests that the affordance h exists within the system Wpq where neither
the environment Xp nor the agent Zq contain the affordance h.</p>
    </sec>
    <sec id="sec-2">
      <title>2. The EFBO Representation</title>
      <p>
        Based on the key notions of action, events, and change in commonsense reasoning [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ],
event calculus [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], and functional reasoning [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], the EFBO was developed to represent
the functional behavior of a system in a rigorous, logical manner. The EFBO can be
represented in terms of the following sets of classes and properties [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>Set of classes, C = fE; G; Ig, where, E is the set of Event instances, E=fe1; e2; ::; eng;
G is the set of Agent instances, G=fg1; g2; ::; gng; and, I represents the set of Inter f ace
instances, I=fi1; i2; ::; ing.</p>
      <p>Set of properties, P=fR(e; g); R(e; i); R(e1; e2)g, where, R(e; g) represents the set of
relations between an instance of an event, Event(e) and an instance of an agent, Agent(g), e.g.,
isPerformedBy; R(e; i) represents the set of relations between an Event(e) and an
Interface(i), e.g.,hasInterface; and, R(e1; e2) represents the set of relations between two Event
instances, e1 and e2; e.g., hasNextEvent.</p>
      <p>
        The EFBO facilitates us to describe the instances of the classes in C in terms of their
associated relations in P. The key classes and the classification of the main properties at
the instances level are presented in Figure 1. The core classes of the EFBO are the Event,
Agent, and the Interface classes. Other EFBO entities are logically based on these classes.
The concept of Event within the EFBO essentially correspond to the notion of SPAN
as endorsed by the Basic Formal Ontology (BFO) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. An event is understood as an
occurrent at a particular point in time. The concept of time is understood as the continued
progression of events that occur in succession from the past through the present to the
future2. These latter notions of time and event together forms the Event-Time continuum
as depicted in Figure 2 (right).
      </p>
      <p>The temporal dimension of the events within the EFBO can be reasoned through
the Event-Event relations as listed in Figure 1. The concept of Agent is understood as an
actor that performs some action within a system environment. An Interface is understood
as a system entity that serves as an interaction point between an event and an agent. We
are only concerned about the temporal aspects of the interfaces through their relations
with Events. Figure 2 (left) is a depiction of the Event-Interface-Agent interaction model
as supported by the EFBO.</p>
      <p>2We adapted the notion of time from the Oxford Dictionaries.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Affordances within the EFBO</title>
      <p>
        Based on the formulation of affordances in Section 1, a common approach of
implementing affordances is by defining the relationship f in terms of the properties of the agent q
and the environment p [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The affordances within the EFBO are defined in terms of the
relations between the properties of the Agent and the properties of the remaining system
entities, i.e., the Event and the Interface. The following affordances are defined using the
powerful notion of the OWL-property chain.
      </p>
      <p>A. The isPerformedBy Relation. The concept of Action within the EFBO is
specified as an event that is performed by an agent. However, an action cannot be performed
directly without invoking the interface of its corresponding event. We define the
relational property isPerformedBy as the super property of the following chain of properties:
hasInterface o interactsWith, where, the hasInterface is an eventProperty to connect an
event with an interface; and,the interactsWith is an agentProperty that connects an agent
with an interface. The property chain specifies that the affordance isPerformedBy could
exist if an Event(e) has an Interface(i) and that interface i interacts with an Agent(g). The
event e, in this case, would be inferred as an action that is performed by the agent g. The
isInvokedBy relation refers to the super property of the defined relation isPerformedBy.
The former is a relation between an event and agent, and the latter is between an action
and an agent. The instances that hold these two properties can only be inferred and must
not be asserted directly. These relations, therefore, can only be afforded by the chain of
relations between the hasInterface and the interactsWith properties.</p>
      <p>B. The isTriggeredBy Relation. The concept of Activity within the EFBO is
understood to be an Action (i.e., an event performed by an agent) that is followed by a
successive event. In order to activate an event, the event must be triggered by an agent
through the system’s interface. We define the isTriggeredBy relation as the super
property of the following chain of properties: hasPreviousEvent o isPerformedBy, where,
the hasPreviousEvent is an eventProperty that connects an event with its previous event;
and, isPerformedBy is a defined property that connects an action with an agent as
explained before. The property chain specifies that the affordance isTriggeredby can exist
if an Event(e2) has a previous Event(e1), and the event e1 is performed by an Agent(g).
The event e2, in this case, would be inferred as an event that is triggered by the agent g.
The instances that hold the isTriggeredBY properties can only be inferred and must not
be asserted directly. In other words, the isTriggeredBy can only be afforded by the chain
of relation between the hasPreviousEvent and the isPerformedBy properties.</p>
      <p>As we can observe, the affordances within the EFBO facilitates us to have a
straightforward mechanism to specify different relationships between the properties of an agent
and its system environment. We can also observe that the EFBO allows nesting of
affordances, as well as defining affordances in terms of the other affordances. This can be
a powerful mechanism in order to have different levels of abstractions of the potential
actions by an agent within the event-based systems.</p>
      <p>
        Example Use of the EFBO’s Affordances. As an example, we observe the
EFBObased modelling of a typical login functionality for a smart phone application [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. While
the domain of the example is simple enough to follow, a careful observation of the
example should intuitively indicate most of the necessary aspects of modelling a more
complex system. The EFBO-based modelling process involves describing the behavior of a
system on a simple storyboard, as reflected in Figure 3. As should be observed in the
figure, the storyboard allowed us to state whatever is explicitly known about each of the core
functional entities, i.e., the associated relations between the events, relations between the
events and their interfaces, and the relations between the agents and the interfaces of the
desired system.
      </p>
      <p>Based on a set of functional reasoning categories, e.g., events by triggering agents,
distribution of activities by agents, events within a specific activity, and so forth, a set of
instance-specific classes (the class names prefixed with underscores in Figure 4) were
defined under the ‘Entity Classifier Class’ of the EFBO. For example, the class ‘ User Agent
Activity’ was defined as equivalent to any Action that isPerformedBy some userAgent.
Similarly, the class ‘ Event Triggered By Client Agent’ was defined as equivalent to any
Event that isTriggeredBy some clientAgent. Figure 4 presents the inferred classification
results after the automated reasoning on the classifier classes.
It should be observed from the modelling example that the EFBO’s affordance
relations allowed the reasoner to infer the set of potential actions between the system’s
agents and its environment. For example, the reasoner perfectly inferred the actions that
could be performed by different agents as part of their activities within the modelled
system; the reasoner could also infer the events that could be triggered by each of the
agents as well (see the first two columns in Figure 4). It should be noted that while we
did not have the EFBO affordances directly asserted between any of the storyboard
entities, the affordance relations were inferred through the automated reasoning as afforded
by the relations between the properties of the events and the properties of the agents
within the modelled environment. This latter strategy is critical in both observing and
modelling the functional behavior of any practical application system. In the practical
sense of affordances, the agents in such system must not be able to invoke the functional
events of the system without the proper interactions with the system’s designated
interfaces. This design choice also promotes more automation, and, ultimately, reduces the
amount of human-induced errors during the modelling process. As observed in this
section, the relations of affordances can be a powerful feature for the ontologies that deals
with representing the functional behaviour of event-based systems.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Concluding Remarks</title>
      <p>Using the EBFO representation along with its affordances, one can effectively model the
functional entities of a system in such a way so that their existence within the system
can be thoroughly reasoned. It should be noted that currently, the temporal aspects of
the EFBO events only supports a subset of Allen’s temporal axioms that are necessary
for our functional reasoning tasks. However, the EFBO is flexible enough to incorporate
the remaining axioms, if necessary in the future. Due to its affordances, the EFBO-based
functional modelling process is quite intuitive and practical, which allows us to describe
and reason about the behavior of a system through a series of simple statements. We have
carefully engineered the EFBO ontology with a minimal set of required classes and
properties in order to achieve the maximum usability of the ontology without compromising
the required logical rigour to achieve an effective functional reasoning mechanism.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgement References</title>
      <p>This work is supported by the Natural Sciences and Engineering Research Council of
Canada (NSERC).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F. T.</given-names>
            <surname>Imam</surname>
          </string-name>
          .
          <article-title>The Event-Based Functional Behavior Ontology (EFBO)</article-title>
          .
          <source>Queen'</source>
          s University, Canada. http://cs.queensu.ca/~imam/efbo.html. [Last accessed:
          <fpage>15</fpage>
          -June-2016].
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>F. T.</given-names>
            <surname>Imam</surname>
          </string-name>
          and
          <string-name>
            <given-names>T. R.</given-names>
            <surname>Dean</surname>
          </string-name>
          .
          <article-title>Modelling functional behavior of event-based systems: A practical knowledge-based approach</article-title>
          .
          <source>In Proc. of the 20th Int'l Conf. on Knowledge Based and Intelligent Information and Engineering Systems</source>
          , York, UK. Procedia Computer Science, Elsevier,
          <year>2016</year>
          . In Press.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>J. J.</given-names>
            <surname>Gibson</surname>
          </string-name>
          .
          <article-title>The ecological approach to the visual perception of pictures</article-title>
          .
          <source>Leonardo</source>
          ,
          <volume>11</volume>
          (
          <issue>3</issue>
          ):
          <fpage>227</fpage>
          -
          <lpage>235</lpage>
          ,
          <year>1978</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>E. S¸ ahin</surname>
          </string-name>
          , M. Cakmak,
          <string-name>
            <given-names>M. R.</given-names>
            <surname>Dog</surname>
          </string-name>
          ˘ar, E. Ug˘ur, and
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>U¨c¸oluk. To afford or not to afford: A new formalization of affordances toward affordance-based robot control</article-title>
          .
          <source>Adaptive Behavior</source>
          ,
          <volume>15</volume>
          (
          <issue>4</issue>
          ):
          <fpage>447</fpage>
          -
          <lpage>472</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>T. A.</given-names>
            <surname>Stoffregen</surname>
          </string-name>
          .
          <article-title>Affordances as properties of the animal-environment system</article-title>
          .
          <source>Ecological Psychology</source>
          ,
          <volume>15</volume>
          (
          <issue>2</issue>
          ):
          <fpage>115</fpage>
          -
          <lpage>134</lpage>
          ,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>B. D.</given-names>
            <surname>Nye</surname>
          </string-name>
          and
          <string-name>
            <surname>B. G. Silverman.</surname>
          </string-name>
          <article-title>Affordances in AI</article-title>
          .
          <source>In Encyclopedia of the Sciences of Learning</source>
          , pages
          <fpage>183</fpage>
          -
          <lpage>187</lpage>
          . Springer,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>E.</given-names>
            <surname>Davis</surname>
          </string-name>
          and
          <string-name>
            <given-names>G.</given-names>
            <surname>Marcus</surname>
          </string-name>
          .
          <article-title>Commonsense reasoning and commonsense knowledge in artificial intelligence</article-title>
          .
          <source>Communications of the ACM</source>
          ,
          <volume>58</volume>
          (
          <issue>9</issue>
          ):
          <fpage>92</fpage>
          -
          <lpage>103</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Shanahan</surname>
          </string-name>
          .
          <article-title>The event calculus explained</article-title>
          .
          <source>In Artif. intell. today</source>
          , pages
          <fpage>409</fpage>
          -
          <lpage>430</lpage>
          . Springer,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>B. H.</given-names>
            <surname>Far</surname>
          </string-name>
          and
          <string-name>
            <given-names>A. H.</given-names>
            <surname>Elamy</surname>
          </string-name>
          .
          <article-title>Functional reasoning theories: Problems and perspectives</article-title>
          .
          <source>AIE EDAM</source>
          ,
          <volume>19</volume>
          (
          <issue>02</issue>
          ):
          <fpage>75</fpage>
          -
          <lpage>88</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>P.</given-names>
            <surname>Grenon</surname>
          </string-name>
          and
          <string-name>
            <surname>B. Smith.</surname>
          </string-name>
          <article-title>SNAP and SPAN: Towards dynamic spatial ontology</article-title>
          .
          <source>Spatial cognition and computation</source>
          ,
          <volume>4</volume>
          (
          <issue>1</issue>
          ):
          <fpage>69</fpage>
          -
          <lpage>104</lpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>