Abstract
Although there have been efforts to integrate Semantic Web technologies and artificial agents related AI research approaches, they remain relatively isolated from each other. Herein, we introduce a new ontology framework designed to support the knowledge representation of artificial agents’ actions within the context of the actions of other autonomous agents and inspired by standard cognitive architectures. The framework consists of four parts: 1) an event ontology for information pertaining to actions and events; 2) an epistemic ontology containing facts about knowledge, beliefs, perceptions and communication; 3) an ontology concerning future intentions, desires, and aversions; and, finally, 4) a deontic ontology for modeling obligations and prohibitions which limit agents’ actions. The architecture of the ontology framework is inspired by deontic cognitive event calculus as well as epistemic and deontic logic. We also describe a case study in which the proposed DCEO ontology supports autonomous vehicle navigation.
Introduction
Modeling the activity of artificial agents in the context of actions by other autonomous agents is one of the more difficult problems in artificial intelligence. Most implemented or projected systems use a single-agent scenario and differ only in the way in which the agent approaches its environment (Asprino et al., 2016). In real conditions artificial agents often interact with other artificial agents or with humans, rendering single-agent scenarios unusable. An artificial agent may be an autonomous vehicle on the road that must interact with other vehicles that are either also autonomous or controlled by a human driver or it may be an industrial transportation robot that must maneuver an environment it shares with other more or less sophisticated robots and/or human workers.
An autonomous vehicle on the road should be able to receive information from other autonomous vehicles (or human drivers), to model their intentions, and to compare such information with its own intended actions framed by obligations based on laws and other traffic regulations. Notably, these features are at once part of the vehicle’s modeling of planned actions that advance it towards the desired final destination.
In this paper, we abstract some of the features of the complex environment in which an agent’s behavior takes place and focus on modeling the information context and the actions of other agents that may influence the agent’s own reasoning and actions. Effective control of the agent’s activity in the context of the actions of other agents requires some understanding of the “inner context” of these actions – each action on the part of any agent is based on information that a) the agent considers to be true (e.g., that a traffic light is green) and b) involves a purpose or motive, i.e., what the agent intends to accomplish with such an action. The purpose of the action may be viewed as the state that the agent “desires” to realize (e.g., reach the destination, move cargo to a designated location). Accordingly, the state may be described by a statement and the agent “desires” the statement to be true. For sure, the actions of an agent cannot be understood (or predicted) without taking such context into account.
One of the possible approaches to address the problem of understanding other agents’ actions is to model their mental states. To model the mental states of agents, one can utilize mentalistic models of human behavior based on Hobbesian or common-sense psychology (Gert, 1996). Mentalistic language is a language which includes terms describing mental phenomena, such as “beliefs”, “aversions” or “desires” (Spiker, 1989). Knowledge representation models are called mentalistic if they are related to such mental notions (Pohl, 1997). Mentalistic models have been used to provide a stable framework for knowledge representation systems which can be combined with other content using machine learning techniques (Pohl and Achim, 1999).
In contrast, the use of mentalistic models has been very limited in the Semantic Web context. A rudimentary mentalistic language, consisting of the “belief” concept, was used to model changing knowledge (Kang and Lau, 2004). While Semantic Web technologies have their drawbacks, they excel when used as highly flexible knowledge representation techniques and tools for extracting meaning from large amounts of unstructured web content, doing so through the use of standards with high interoperability, such as XML, RDF, and OWL. Integration of traditional AI techniques with Semantic Web technologies should therefore open up a wealth of semantically structured information on, e.g., Linked Data sources for the artificial agents.
The rest of the paper is organized as follows: the second section of the paper describes the methodology and requirements for an ontological model for the artificial agent’s actions. Section 3 provides a general overview of the architecture of the proposed framework. The next section describes deontic cognitive event calculus briefly. Section 5 describes the proposed ontology framework DCEO itself along with the description of state of the art of modeling in respective areas. Section 6 provides evaluation of the ontology and compares the presented formalism with previously defined requirements. Section 7 describes a case study – enhancing autonomous vehicle navigation. Then Section 8 discusses possible future extensions of the framework. Finally, the last section provides the conclusions.
The methodology used for DCEO development
To develop a sound ontology one needs to use a formal methodology that provides structured guidelines and well-defined ontology life cycle management. We base the development of the DCEO ontology on the On-To-Knowledge methodology developed by Sure et al. (2009) and Staab et al. (2001). We also take into account some methodological principles introduced by the METHONTOLOGY methodology by Fernández-López et al. (1997) (see also the work by Gómez-Pérez et al. (2003)) and NeOn Methodology by Suárez-Figueroa (2012).
The development of our ontology began with a feasibility study that sought to identify the problem and opportunity areas of a proposed ontology as well as the potential solutions it might provide. It was found that descriptions of the interactions between artificial agents and some aspects of their behavior planning could benefit from the application of Semantic Web technologies. Existing research in this field was limited and thus there was an opportunity to improve existing solutions used in AI communities by situating them as a starting point and integrating them with Semantic Web approaches.
The second phase of the DCEO ontology development was the kickoff phase, the phase in which the development of ontology actually began. In this phase the requirements for the ontology were gathered. The outcomes of this phase were the ontology requirements specification document (ORSD) and a semi-formal description of our ontology. The overview of gathered requirements is informally presented in Section 2.1, and the first semi-formal description of the DCEO ontology was presented in (Vacura and Svátek, 2016).
In the refinement phase we fully formalized our ontology. This phase was cyclical and required several iterations of enhancing and fine-tuning the ontology based on feedback from domain (AI) experts and comparisons with initial requirements. The outcome of this phase was v. 1.0 of the DCEO ontology.
In the evaluation phase we first performed a technology-focused evaluation that judged language conformity (syntax) and that involved consistency (semantics) tests and expert evaluations of interoperability, scalability, and other important characteristics. The user-focused evaluation was performed in cooperation with domain experts and we collected their recommendations and comments. These evaluations were followed by more iterations of the refinement phase. After two iterations, the outcome of this phase was an evaluated ontology – v. 1.2 of the DCEO ontology. Evaluation is discussed in more detail in Section 6.
The application and evolution phases followed, consisting of several new updates to the DCEO ontology, followed by refinement-evaluation cycles that produced v. 2.0 (2018) and v. 2.1 (2019) of DCEO. Several implementation and integration projects using the DCEO ontology were started; one case study is briefly described in Section 7.
Requirements for the ontological modeling of an artificial agent’s actions
An elementary set of requirements can be devised based on current and prospective usage scenarios for the ontology such as those involving an interaction between autonomous vehicles on the road or an interaction between robots in an industrial environment. Experiences with similar systems based on calculus paradigms have also been helpful in formulating the set of design requirements presented below. However, this paper does not specify any requirements with reference to specific applications.
When an artificial agent operates in the context of other agents’ actions, it must communicate with or even influence the behavior of these other artificial or human agents. Thus, an elementary requirement is the ability to model the acquisition and provision of information by means of communication with other agents.
The artificial agent has to communicate and interact with other agents, and it can also receive publicly available information, but this information cannot be taken at face value because it only represents the belief of another agent, and such a belief can be wrong. In the case of some real world scenarios an agent can even intentionally provide misleading information. Pieces of information received from different agents (or perceived) may also be mutually inconsistent (a human driver may signal intention to turn right, however, he/she may start to turn left). Such an account of communication requires epistemic mentalistic models in order to distinguish belief from knowledge, as argued by Arkoudas and Bringsjord (2009).
An artificial agent also needs to reason about the context of its own intended actions, i.e., their background, motivation, and predicted consequences, and those of all other agents presenting the external context which is important for planning of his own actions. In other words, models enabling such reasoning must deal with past, current, and future actions and generally with events, so flexible handling of time is necessary.
Dealing with future events caused by the actions of other agents requires mentalistic models for their internal mental representations of the evaluated future – their desires and aversions – from Hobbesian psychology (Gert, 1996). T. Hobbes considered desires and aversions to be fundamental emotions which provide background for any agent’s actions. Mental representations of these emotions then enable deriving the intentions of an agent. However, it is worth noting that the Hobbesian theory of desires and aversions as being future oriented can be criticized as limited, if one understands desires and aversions as something that can also relate to present or past events.
These future-involving mental states can be called protential, based on the term “protention”, meaning the consciousness of future, which was coined by the philosopher E. Husserl (McInerney, 1988). These internal mental states influence directly the external behavior of agents, i.e., intended actions materialize and became real actions performed in an external environment.
Another component of the mentalistic model is the inner representation of the context of the agent’s actions which consists of the external norms of his behavior, which can be called obligations, permissions and prohibitions. Different agents may accept different obligations and different prohibitions. An obligation is a requirement on the part of the agent to act when some defined condition of his inner context is present. Prohibition is the requirement to suspend an action or abstain from it. Knowledge of these limitations in behavior on the part of other agents can be used to predict their actions. A model involving obligations and prohibitions is referred to as deontic, which is based on a similar use of the term in the context of deontic logic (Gabbay et al., 2013).
Note that even if we use mentalistic models and discuss an agent’s behavior in mentalist terms, this does not imply that such an agent would be required to have genuine mental states; accepting a thoroughly instrumentalist view of mental states of artificial agents is sufficient for our purposes.
We can now summarize the requirements for (or, directly, components of) a minimal model enabling artificial agents’ reasoning in the contexts defined above:
A comprehensive model of artificial agents’ interactions and communications requires:
a model of events and actions,
an epistemic mentalistic model,
a protential mentalistic model, and
a deontic mentalistic model.
There are also other requirements for an ontology to be able to handle all of the necessary aspects for modeling the actions of autonomous agents. It is not enough to model that an agent believes or desires something. Phenomenological philosophy (F. Brentano, E. Husserl) asserts that intentionality is a fundamental feature of any mental act (Smith and McIntyre, 1982). Intentionality means that every mental act has content, i.e., it is “about” something (Smith and Ceusters, 2015; Barton et al., 2018). The ontology has to provide a way to model the contents of mental states.
The contents of epistemic states, i.e., descriptions of what an agent believes or desires, may be complex. They are possible states of affairs in the sense similar to the one described by the philosopher Wittgenstein (1922). However, the discussion of states of affairs and their relation to facts is a complex issue in contemporary philosophy – see e.g. Texor’s work (2016) for an introduction.
Different agents may believe different statements and these beliefs may be inconsistent. An ontology enabling the representation of the epistemic states of these agents should be able to include such mutually inconsistent beliefs and still enable reasoning at some level.
We can now summarize additional requirements for an ontology to be able to handle all these aspects of modeling the actions of autonomous agents:
The ontology should be able to model:
the content of mental states,
complex epistemic states,
epistemic inconsistency.
Artificial agents can be differentiated into several classes, and these classes influence the character of their interactions. The necessity of modeling different types of artificial agents’ interactions will be discussed in detail in the following subsection.
Different types of artificial agent interaction scenarios
Another requirement is related to the multiplicity of possible scenarios that involve artificial agents. While we have already highlighted scenarios involving autonomous vehicles and autonomous industrial transport robots, there are, for sure, as many other scenarios as there are different types of artificial agent interactions. There are different types of artificial agent interactions and it would be beneficial to be able to model all of them. As a first step, we propose several distinctions that can be used to classify different scenarios.
First, artificial agents can be either cooperative or non-cooperative. We note above a situation in which agents are non-cooperative, even to the extent that they provide misleading information. These agents are usually controlled by different parties and may sometimes demonstrate competitive attitudes toward each other. Meanwhile, cooperative agents are usually controlled or deployed by a single party and work toward a single goal. However, even agents who are not working toward a single goal may exhibit cooperative behavior depending on the context. In some contexts, an agent’s individual goal may require it to cooperate with other agents. If the context changes cooperative behavior may be diminished or replaced by non-cooperative behavior. We therefore term a group of agents “cooperative” only when they continuously work toward a single given goal.
Artificial agents can be either heterogeneous or homogenous when related to other agents. Homogenous agents are agents which are similar in terms of what types of information they accept, process, and provide. Homogenous agents may, however, use different internal architecture and seek different goals. They may sometimes also produce different “behavior”. Heterogeneous agents produce different kinds of information or process information in different domains. Heterogeneous characteristics of agents may be used to clearly differentiate agents into a few classes or groups.
Cooperative agent interactions are more commonly used and implemented. An example of a cooperative model is the well-known pandemonium architecture for object recognition (Selfridge, 1959; Lindsay and Norman, 1977). This architecture consists of a group of feature agents, a group of cognitive agents and one lone decision agent. In this architecture, all these agents (demons) work together toward the common goal of the recognition of an object – that’s why we consider these agents and overall architecture cooperative.
Each agent is specialized: feature agents excel in the detection of individual features. Each of them may detect different feature, however, they are the same with regard to types of information they accept, process, and provide – that’s why we describe them as homogenous group of agents. Similarly, cognitive agents use information provided by feature agents and recognize individual patterns or objects, and, finally, a decision agent decides which object was recognized utilizing the information provided by the cognitive agents. In this architecture, group of feature agents is homogenous, group of cognitive agents is also homogenous, and the lone decision agent is heterogeneous in relation to the others.
We can now summarize requirements for the proposed ontology architecture related to modeling different types of artificial agent interaction scenarios. It would be beneficial for the ontology to enable the user to model different types of scenarios for artificial agent interactions:
cooperative and non-cooperative,
heterogeneous, and homogenous.
The most challenging are usually scenarios involving non-cooperative, heterogeneous agents because they require the most complex modeling of the epistemic states described above.
Other general requirements of ontology design
The proposed ontology is aimed partially at the AI community and this audience necessitates some additional requirements for our design. Most notably, the designed ontology should use paradigms known to the AI community – using completely new terminology and conceptual structures alien to community experts makes a proposed ontology difficult to use and less likely to be adopted. To the contrary, if ontology designers align the proposed design of an ontology with a well-known existing technique or approach that is widely understood in the community, then accessibility and usability increas. This approach can be also understood as, in a sense, “reusing” existing knowledge and as such is recommended by a number of methodologies (Suárez-Figueroa, 2012).
The purpose of our work is not to create an abstract academic model which would be perfect in theory but not usable by anyone but its author because of its steep learning curve. It is worthy, of course, to provide a firm theoretical background justifying the design choices made in developing the ontology; however, this theoretical complexity should not stand in the way of the average user of the ontology, who may be an expert in a different area. The complexity of ontology should be adequate for its purpose. The resulting ontology may be complex in some aspects if the domain it describes is also complex. The possible complexity of the ontology can be alleviated by providing examples, case-studies and documentation that let users understand the model. The resulting ontology may be also relatively simple and not consider all intricate complexities of notions it formalizes if it can fulfill some important applied purpose. Also well-defined focus of the ontology and clearly described internal structure based on separation of concerns principle may help to keep the complexity of the ontology manageable.
We can now summarize other general requirements of ontology design:
The ontology should reuse existing knowledge where it is possible and meaningful.
The complexity of ontology should be adequate for its purpose.
The internal structure of the ontology should be based on the separation of concerns principle.
There are other methodological ontology design requirements which should be taken into account by any ontology developer, as summarized by Sure et al. (2009). Others, such as Oberle et al. (2006), describe the characteristics of badly modeled ontologies. We have tried to follow the suggestions provided in these works during the course of the development of our ontology.
Architecture of the deontic cognitive event ontology

Application architecture based on the DCEO.
To facilitate the representation of an artificial agent’s knowledge in the context of activity of other agents, we developed the architecture depicted on Fig. 1, inspired by the Soar cognitive architecture (Laird et al., 1987) and the classical concept of the Model Human Processor (Newell et al., 1998; Card et al., 1983), which is, in turn, based on the Standard Model of human cognition (Simon and Kaplan, 1998; Klahr and MacWhinney, 1998). The central part of the architecture is the Deontic Cognitive Event Ontology (DCEO), inspired by
The core of our architecture consists of the Tbox of an OWL ontology grayed in Fig. 1. The axioms of this Tbox represent stable knowledge about the ontological structure of the world. The content of the agent’s own mental states, the mental states of other agents, and the context of the agent’s actions are represented by axioms of the Abox of the ontology. Different agents may have mutually inconsistent mental states, and these may be complex and consist of several axioms. We decided to use named graphs (Carroll et al., 2005a) to model these mental states. The Abox is, therefore, split into a main graph that describes agents’ mental states, events, and actions, and other named graphs that represent the content of these entities. These named graphs are identified by a unique URI.
There are several services that update the content of the Abox. Information obtained about the external context of the agent’s actions (its environment) is processed by a component that is traditionally called the Perception processor (Newell et al., 1998; Card et al., 1983). It produces facts that are inserted into the Abox of the ontology classified as perceptions or communications from other agents.
Another service traditionally called the Motoric Processor (Newell et al., 1998; Card et al., 1983) monitors the current time and retrieves the statements representing actions that are to be performed at the given time point, facilitating the actual performance of these actions. Action can also include communication of content to other agents, sending a data message or starting a process in a virtual environment.
Temporal Maintenance is another service that carries out auxiliary operations such as removing old Abox axioms from the data store thus enabling the whole system to function efficiently. Namely, the growth of the number of axioms caused by the continuous addition of new statements to the Abox combined with axiom production by the SWRL (Semantic Web Rule Language) engine could be enormous; clearing of old data representing no-longer-useful knowledge could thus be necessary. The use of this service depends on the implementation; in some cases, such maintenance may not be necessary, or the complete history of operations may be valuable. Maintenance service may not delete old axioms, but instead move them to an archive KR where the complete history is stored, and that may set up an artificial agent as a kind of “long-term memory” that is queried only when specifically required.
There are also some stable axioms of the Abox that, in some scenarios, change rarely, for example, axioms about agent’s obligations and prohibitions. A finite set of an agent’s final goals (desires) that do not change may also exist. However, agent’s representations of obligations, prohibitions, and desires of the other agents are susceptible to change because agents may change, or the agent recognizes that the original assumption about other agents’ desires might have been mistaken.
The overall architecture is inspired by the standard Model Human Processor, and the internal structure of the ontology is based on the Deontic Cognitive Event Calculus (
Deontic Cognitive Event Calculus (

The proof calculus is based on natural deduction (Jaśkowski, 1934) and includes all the introduction and elimination rules of first-order logic as well as rules for modal operators. In this paper we use the syntax of
We will now briefly describe the components of
A
Several signature members describe relations between events and fluents. The general idea of EC is that events cause changes of truth values of fluents. The expression
The expression
The epistemic predicate
There is another set of predicates, which we may call behavioral: the predicate
Finally, the deontic predicate
These predicates also require the introduction of the sort
There are some differences between DCEO ontology introduced in following sections and
Alongside the obligation we define also prohibition and permission. We introduce operator
However, it is obvious that due to differences between approach utilizing a calculus and Semantic web techniques the alignment between these two is a bit vague. Still it is beneficial to use the
The proposed Deontic Cognitive Event Ontology (DCEO) is designed to satisfy the requirements defined in Sections 2.1, 2.2, 2.3 and utilizes some principles derived from the

Deontic cognitive event ontology (DCEO).
The ontology engineering community has been discussing the problem of modeling events for some time and has proposed several different ways of handling events (Hanzal et al., 2016). Most of these approaches have been developed strictly within the context of the Semantic Web and were not related to any research based on different techniques or paradigms. One exception is the effort to provide an ontologic representation of the Discrete Event Calculus (DEC; Mepham and Gardner, 2009; Mepham, 2010), an alternative to Event Calculus (EC) (see Section 4). The Discrete Event Ontology (DEO) consisted of OWL ontology, several SWRL rules, and a resolver. This ontology only partially covered DEC; the resulting ontology was comprised of three classes (Events, Fluents, Timepoints) and a couple of rules.
The design of the event section of our ontology was influenced by DEC, which is closely related to
The core of the event section of DCEO constitutes of classes
The events are understood in this ontology in an abstract way that may differ from the way in which foundational ontologies understand events. For example Descriptive Ontology for Linguistic and Cognitive Engineering (DOLCE) by Masolo et al. (2002, 2003) distinguishes between endurants and perdurants (eventive occurrences) that actually correspond to continuants and occurrents as defined, for example, in the KR Ontology theorized by Sowa (2000). Different kinds of perdurants are in DOLCE distinguished by notions of homeomericity and cumulativity. A detailed discussion of these terms can be found in (Jarrar and Ceusters, 2017). Meanwhile, a perdurant is either stative or eventive (it is an event) according to whether or not it is cumulative. In stative occurrences, DOLCE distinguishes between states and processes according to homeomericity. Events are called achievements if they are atomic, otherwise they are termed accomplishments (Masolo et al., 2003, 24). Time locations are in DOLCE considered individual qualities such as colors, weights, etc. Their corresponding qualia are called temporal regions – the temporal location of an occurrence is its quality and this corresponds to a quale that is a region in the temporal space (Masolo et al., 2003, 18).
There are also foundational ontologies such as Unified Foundational Ontology (UFO), which, because it focuses on structural (as opposed to dynamic) aspects of the world and accepts a descriptive commonsensical view of reality, was originally conceived as an ontology of endurants rather than one of perdurants (Guizzardi, 2005, 211). And yet even this ontology was later extended to handle temporal entities, ultimately yielding the foundational ontology of UFO-B (Guizzardi et al., 2013) which uses the term event for all perduring entities. Notably, events may be composed of other events and may be complex or atomic (having no proper parts). Moreover, events are constituted by transformations from one portion of reality (situation/fact) to another. While the notion of the situation is similar to the philosophical notion of the state of affairs, situations are notably bound to specific time points. Event calculus provides a foundation for our model: we model our events similarly, i.e., as entities bound to specific time points and that refer to changes in the world.
In our ontology, we locate events primarily only in time. Other approaches, like the Core Pattern for Events by Krisnadhi and Hitzler (2016) and the Simple Event Model Ontology,2
The events that are members of the class
To specify time, we utilize W3C OWL Time ontology5
At the base level, we prefer not to work with intervals. The class
The following code is an example of the action
The class
Along with the object property
Other approaches, such as Affordance Ontology Design Pattern (Asprino et al., 2016), prefer to utilize the concept of the “task” as something that is executed by
The class
There are also several additional classes that have auxiliary functions. The class
The class
The axioms of the event section of the ontology are the following:
Note that class
We integrated some concepts of
We also do not use the property
The epistemic section of the ontology is based on
The epistemic section of the ontology consists of several classes that describe the epistemic aspects of an artificial agent, starting with the acquisition of new knowledge. Classes
There may also be public information available to an agent, described by the class
Information received by communication with other agents or by perception from the environment may produce belief or knowledge, discussed, for example, by Millar (2015). In the case of simple artificial agents, perceiving may even be something as elementary as measuring the temperature of the environment. Two classes form the epistemic core of the ontology:
The following code is an example of the agent
The class
We have considered an intuitive modeling approach where
In some application scenarios, there may be no difference between perception and belief or even knowledge; i.e. everything that is perceived is believed by the agent or is considered to be a known fact. However, as described above, although everything that is perceived by the agent may be believed, it does not imply that everything that is believed may have its origin in perception. Some statements believed by the agent may originate in communication with other agents (Dretske, 1981).
The class
We consider it to be a matter of the application to handle incoming communication similarly, as we do not prescribe the processing of data in the case of perception. Whether perceived (or communicated) data are believed automatically by an agent6
Dretske (1969) disagrees with this, because perceived data may be product of e.g., optical illusion.
Note that our approach enables the expression of some more advanced constructs available in epistemic logic. It is possible to express metaknowledge:
It is also possible to express what Rescher (2005) calls secret:
The axioms of the epistemic section of the ontology are as follows:
The protential section of the ontology focuses on modeling the future. The protential model is based on a
These concepts are modeled by classes
There is also the class
The class
While classes
The axioms of the protential section of the ontology are as following:
The deontic section of the ontology
The deontic section of the ontology aims to model the deontic normative knowledge of an agent and therefore deals with an agent’s knowledge of his obligations and prohibitions. A few other studies have tried to model similar conceptual contexts. For example, the Document Acts Ontology (d-acts) is an OWL ontology by Almeida et al. (2012) and Brochhausen et al. (2013) that represents social acts that create new entities relevant to social life. D-acts ontology uses the term declaration to signify a social act that creates rights and obligations. Declarations that use documents that are signed or stamped are called document acts. The ontology is based on Documents Acts Theory by Smith (2012) and inspired by the philosophical work of Reinach (2013) that captures long-lasting responsibilities within an institution. D-acts ontology is linked to Basic Formal Ontology (BFO) by Arp et al. (2015) and reuses some concepts from Information Artefact Ontology (IAO). For our purposes, what is important to note here is that the d-acts ontology represents those acts that document acts theory delineates as Social Generically Dependent Continuants (SGDCs). Accordingly, deontic entities are modeled as socio-legal SGDCs (see also Almeida and Brochhausen (2017); Almeida et al. (2018)).
Ontology developed by Donohue (2017) focuses on formally representing deontic entities and their relationships in the biomedical context such as a health-care professional’s obligations to her patients, a patient’s claim to information requisite for consent, etc. However, it is argued that such an ontology would also be useful in other domains of interest (e.g., legal knowledge bases or military doctrines and intelligence). Donohue’s work is based on the above-mentioned work by Almeida et al. (2012) and his ontology is also based on BFO foundational ontology. Deontic concepts like obligation are categorized as a species of the class Directive Information Entity of BFO-based IAO.
Another related BFO-aligned ontology – Informed Consent Ontology (ICO) by Lin et al. (2014) – also originates in the biomedical context and also reuses some concepts from IAO and describes document acts. However, this ontology is very specific and focuses only on concepts related to informed consent. Rudimentary Requirement Ontology8
The deontic model in DCEO is based on
Deontic logic also defines the relation between obligation, permission and prohibition. Prohibition is equivalent to an obligation to abstain from an action and may be formally defined using obligation:
The obligation is modeled by the class
Formally these classes –
The deontic concepts (e.g., obligations) can be modelled in different ways. One way of modeling obligations is to suppose that we know all relevant obligations. Then we can represent agents’ actions and monitor whether they are in compliance with their obligations. We make no assumptions whether agents know or do not know their obligations. The other way of modeling obligations is to model them with reference to an individual agent, who is mentally aware of them as specific behavioral limits, applicable to his actions –
Axioms of the deontic section of the ontology follow:
Formally-defined ontology evaluation that uses proper methodology is an important topic – ontology designers need a way to guide the evaluation phase of the process of ontology development and to evaluate the resulting ontology. Different ontology evaluation techniques are summarized by Brank et al. (2005). We base our evaluation of the ontology on the On-To-Knowledge methodology developed by Sure et al. (2009) and Staab et al. (2001) that we discussed in Section 2.
It is important to note that the DCEO ontology is not meant to describe some large thematic area using hundreds of concepts. Therefore, it is not possible to evaluate the ontology at a lexical or vocabulary level by measuring its similarity to a collection of similar ontologies or to some gold standard ontology (Maedche and Staab, 2002) Moreover, in our case, it was also impossible to use a body of natural-language text or those techniques proposed by Velardi et al. (2005) (on a lexical level) or by Brewser et al. (2004) (on a taxonomic level) to measure the degree of some kind of fit between an ontology and a corpus of documents.
Evaluation at the taxonomic level using a formal technique anchored in philosophically-important notions (e.g., essentiality, rigidity, or unity) such as OntoClean (Guarino and Welty, 2009) is also impossible because it primarily evaluates hierarchical structures of concept subsumptions, a feature that our ontology lacks. The lack of taxonomical structure can be considered a limitation of the ontology because a hierarchical taxonomy is frequently considered to be the backbone of an ontology.
In accordance with On-To-Knowledge methodology we started with a technology-focused evaluation that checked syntax and semantics. More specifically, we validated the ontology’s language conformity (syntax) to ensure that the ontology was fully compliant with the OWL standard (the standard OWL syntax validator9
The next stage of our evaluation consisted of checking whether or not the ontology satisfied the ontology requirement specifications and whether or not the ontology supported the solving of problems analyzed in the kickoff phase of the project (we discuss this in detail in the following Sections 6.1–6.3). In this stage we also tested the ontology in the environment of the case-study (discussed in detail in the Section 7). We then used the results of this testing as well as feedback from involved domain experts to refine our ontology. The outcome of this phase (after two iterations) was an evaluated ontology – v. 1.2 of the DCEO ontology.
The ontology was further refined when it was used (i.e., during the application and evolution phase) and these refinements were followed with similarly-structured evaluations. These refinement-evaluation cycles produced updated versions of the ontology – v. 2.0 (2018) and v. 2.1 (described in this paper). As part of evaluation a case study described in Section 7 was performed.
We discuss now whether the requirements stated in Section 2.1 are satisfied with our proposed modeling of the artificial agent action.
The core of the ontology provides a representation of events, agents’ actions and time instants. The design, based on named graphs, permits complex descriptions of the content of these events and agents’ actions using a chosen domain ontology. By providing these features the ontology satisfies Requirement 1a, defined in Section 2.1.
The proposed ontology enables modeling of communication between agents, such as sending or receiving data messages. It is also possible to model common knowledge available to all agents and considered to be generally trustworthy. Another way of acquiring information that can be represented using concepts available in the ontology is the perception of the environment by the agent, e.g., using his own sensory equipment.
The ontology also enables distinguishing between information that can be trusted and that has a lower level of epistemic value. Employing an epistemic mentalistic model together with some ideas based on epistemic logic produced a flexible representation of concepts of knowledge and belief understood as mental states of the agent. An alternative model for specific scenarios where knowledge does not entail belief is available. By providing an epistemic mentalistic model the ontology satisfies Requirement 1b, defined in Section 2.1. The ontology also makes it possible to represent the content of mental states of agents and thus satisfies Requirement 2a, defined in the same section. Because the content of mental states is represented in the form of named graphs, the content described may be very complex, so it satisfies also Requirement 2b. The proposed ontology also enables modeling of different agents believing different statements, satisfying Requirement 2c.
DCEO ontology makes it possible to represent knowledge related to future actions: the knowledge about desired states of affairs that are preferred by the artificial agent, but also of aversions related to states of affairs that are to be avoided. Agent’s intentions represent actions that the agent plans to perform in the future. Desires and aversions are understood as mental states and complex representation of their content is possible. Intention on the contrary simply refers to an action that is planned for the future. By providing a protential model the ontology satisfies Requirement 1c, defined in Section 2.1.
Limitations of agents’ interactions are captured by the deontic part of the ontology consisting of classes representing obligations, permissions and prohibitions. It is, therefore, also possible to model that the agent intends (or desires) to do something, however it is prohibited. Resolving these contradictions has to be done by the application. Obligations, permissions and prohibitions refer to types of actions to be performed in the future. By providing a deontic mentalistic model the ontology satisfies Requirement 1d, defined in Section 2.1.
Comparison with requirements for the modeling different types of agent interaction scenarios
An abundance of possible scenarios exist that include artificial agents, such as those involving autonomous vehicles (see Section 7), autonomous industrial transport robots and many others. These different scenarios involving different types of artificial agent interactions, can be formally classified using distinctions introduced in Section 2.2, alongside corresponding requirements. We discuss now whether our proposed modeling of the artificial agent action satisfies these ontology requirements.
The first distinction that was introduced divided agents’ interactions into cooperative and non-cooperative. Cooperative agents work continuously toward a single given goal and are usually controlled or deployed by a single party. However, agents who are not controlled by a single party may also exhibit cooperative behavior, depending on the context. In other scenarios agents classified as non-cooperative have different and sometimes inconsistent goals. Some agents may be non-cooperative even to the extent that they provide intentionally misleading information or intentionally prevent other agents from attaining their goals. The epistemic mentalistic model used in the proposed ontology makes it possible to represent both cooperative and non-cooperative agents’ interactions and satisfies Requirement 3, defined in Section 2.2.
The second distinction that was introduced, divided agents into heterogeneous or homogenous. Homogenous agents are agents which are similar in terms of which types of information they accept, process and provide. They may still use different internal architectures, be controlled by different parties and seek different goals. Heterogeneous agents process different kinds of information and while they may not be able to communicate directly, they may, e.g., perceive each other’s behavior. The proposed model makes it possible to model scenarios involving both homogenous and heterogeneous agents and satisfies Requirement 4, defined in Section 2.2.
Comparison with general requirements of ontology design
We discuss now whether the general requirements of ontology design, stated in Section 2.3 correlate with our proposed ontology.
The designed ontology uses paradigms known to the AI community. The architecture of the ontology framework is inspired by the Soar cognitive architecture (Laird et al., 1987) and the classical concept of the Model Human Processor (Newell et al., 1998; Card et al., 1983), which, in turn, is based on the Standard Model of Human Cognition (Simon and Kaplan, 1998; Klahr and MacWhinney, 1998). The ontology itself was inspired by Deontic Cognitive Event Calculus –
While designing the model, we tried to abstain from using unnecessary complex constructs by leveraging common-sense intuition and scholarly discussions about epistemic and deontic logic. Using
The focus of the ontology is well-defined and the internal structure of the ontology is clearly described. The separation of concerns principle helps keep the complexity of the ontology manageable and the structure of the ontology understandable. The event, epistemic, protential and deontic sections of the ontology are clearly separated and their relations defined. The proposed ontology, therefore, satisfies Requirement 7, defined in Section 2.3.
A case study – enhancing autonomous vehicle navigation
It has been argued that autonomous vehicles must have an internal representation of entities, events and situations in the world, as well as a mechanism for computing values and priorities that enable them to determine their next action (Albus et al., 2002, 196). There have already been some efforts to use Semantic Web technologies to enhance the performance of autonomous vehicles. Schlenoff et al. (2003) explored the possibility of using ontologies to improve route planning in autonomous vehicles in the context of the 4D/RCS system architecture developed at NIST. Follow-up research by Provine et al. (2004) used an ontology to support reasoning in relation to obstacles as well as to improve route planning.
It is generally recognized that, “in its full generality, the problem of automated vehicle navigation is extremely challenging” (Schlenoff et al., 2003). This makes it necessary to split the problem into different sub-problems and related components that may be researched independently. Architecture that deals with the problem of automated vehicle navigation using Semantic Web technologies must at least include the following components (Russell and Norvig, 2016, 1004):
Sensor interface: captures the environment surrounding the autonomous vehicle.
Perception: a low-level media analysis provides a base analysis, transformation, and description of the captured audio-visual data; object recognition provides information about objects surrounding the autonomous vehicle and produces a 3D world model of the current state of affairs.
Traffic environment ontology: semantically describes the states of affairs (world models) in the 3D world model and the necessary services that produce and maintain this ontology based on the 3D world model.
Agent Ontology (DCEO): describes agents, their actions, and events as well as communication between agents, agents’ mental states, and the deontic status of the states of affairs.
Future possible states of affairs generator: generates possible future states of affairs from the current state of affairs using its knowledge of physics and of the characteristics of involved entities (e.g., people, vehicles, roads, etc.)
Value judgment component: evaluates different states of affairs and assigns them deontic evaluations.
Decision component: judges available information to determine the next course of action.
Vehicle interface: transfers control commands back to the vehicle.
User interface: handles communication with the human user or operator.
Low level media analysis (1, 2) is out of the scope of this research and, moreover, several research communities are already dealing with these problem areas (Rosique et al., 2019; Leonard et al., 2008). Similarly, we do not discuss the vehicle interface (8) or the user interface (9) layers (Russell and Norvig, 2016, 1004).
Meanwhile, at the level of semantic description (3, 4) it is possible to distinguish between ontology that describes the states of affairs in a traffic environment (3) and ontology that describes agents, agents’ mental states, communication, events, and actions as well as the deontic status of these events (4).
It is necessary to use a specialized ontology to describe the state of affairs in a traffic environment. For our purposes, it is important to note here that because autonomous vehicles usually move continuously, the situation on the road that the ontology must evaluate continuously changes. To semantically describe the state of affairs we must fix descriptions of the separate snapshots captured during the vehicle’s continuous stream. These snapshots must meet at an adequate level of granularity. Similarly, descriptions of future possible states of affairs (5) should be produced at the same level of granularity. Traffic ontologies already exist that describe traffic environments at such required levels of detail and granularity such as that developed by Bagschik et al. (2018) or that preliminary version of ontology developed by Zhao et al. (2015). These ontologies, however, only focus on describing the scene.
It is therefore useful to complement traffic ontologies with the DCEO ontology this paper presents. Agents (both artificial and human) participating in traffic have various intentions (e.g., an agent intends to turn right) and beliefs (e.g., one agent believes another agent will not turn right) and communicate with each other (e.g., one agent signals to another that they intend to turn right). The autonomous vehicles that are likely to be produced in accordance with common standards in the future will probably communicate with each other about their intentions using specialized protocols. However, this communication may be mistaken (especially in the case of human agent) or intentionally misleading (as in the case of the scenario described by Bello et al. (2015), in which an evil cyber-hacker infects an autonomous robot with a virus). Notably, separating the model into two ontologies allows for the separation of concerns: while traffic environment ontologies are purely descriptive, DCEO can model the normative characteristics of states of affairs.
The whole architecture must include some more sophisticated functions in addition to low-level services: it should also generate and describe possible future states of affairs (5). Such a capability requires a description of the current state of affairs as well as knowledge about physics and about the characteristics of entities involved in the decision (e.g., people, vehicles, roads, etc.). The component of value judgment (6) evaluates the given description of the state of affairs with regard to laws, traffic rules, ethical principles, etc. by categorizing these items into the deontic classes of “prohibited,” “permitted,” or “obligatory.” Finally, there must be a decision component (7) that reasons using available information and decides the next course of action. Components 3 to 7 constitute what is usually called the “planning and control layer.”
The following section zooms in on the details involved in integrating DCEO into the architecture of autonomous vehicles.

An example of autonomous vehicle route planning.
Figure 4 depicts an agent/autonomous vehicle
In this scene
Action 1
The first possible action 
Action 2
The second possible action 
Action 3
The third possible action
The payoff value of stopping is, in this example, lower than that of turning right, because if the vehicle turns right it will reach the destination with some estimated (short) delay, while if it stops, the delay cannot be estimated precisely, so this is considered a worse option. In a real-world situation, the payoff values may be different.

Considerations related to planning an action.
What vehicle
Similarly, we can model that vehicle
Modeling communication between agents
Pedestrian
The content of the named graph
More complex mentalistic models may be modeled using similar constructs. For example, we could model that the autonomous vehicle
This approach to modeling has some similarities to reification. Using named graphs has some advantages over simple reification, as described by Carroll et al. (2005b). There are, on the other hand, more complex approaches to reification, based on work by Davidson (1967), the advantages of which are demonstrated, e.g., by Robaldo and Sun (2017).
Other applications of presented formalism
DCEO is applicable in a number of different scenarios that involve interactions between artificial and human agents. Existing literature details a number of scenarios that might use
We have already noted that DCEO can be used to model both artificial and human agents. We are currently investigating the possibility of using the presented formalism in a case study based on another project in real conditions to explore its useful features. The testing environment is provided by follow-up research based on a project that focused on the extraction of a structured knowledge from large amounts of multimedia content recorded over networks of cameras and microphones deployed in real sites such as the surveillance networks of the subways in Rome and Turin (Carincotte et al., 2008; Smrž et al., 2006). This case study is based on a task related to subway station monitoring: four cameras are installed in the station – two in the corridor and one on each platform. The system also involves a microphone array that records the primary level of ambient noise in different areas. The purpose of the project was to ease end-user missions (subway monitoring by safety/security operators). We believe that DCEO could be used to describe the actions and intentions of human agents in such a subway environment and to produce descriptions of their mental models. Such a use may help to identify non-standard behaviors by agents such as vandalism, theft, etc.
Possible future extensions
The presented ontology models obligations, permissions and prohibitions only as related to individual agents. Every obligation is an obligation of concrete individual artificial agent and it is not relevant to any other agent. Replication of obligations and prohibitions between agents is currently possible using a simple SWRL rule. However, we intend to investigate possible extension of the ontology involving general obligations and general prohibitions valid for all agents:
Another possible research direction involves the relation between obligations, permissions, prohibitions and time. As Ajani et al. (2017) observes, many kinds of norms constantly evolve (e.g., legal norms) – the previous versions of the norms continue to be valid in the specific, previous time period, even if these old norms are currently no longer valid. Therefore an agent that guides his current actions generally with regard to his past actions and their results, should not take these old actions into account (or take them into account only with appropriate corrections), because old norms that limited past actions are no longer valid. For instance, in the past, the fastest way for an autonomous vehicle to go from point A to point B was to pass through street S. However, since a new prohibition (a strict speed limit in street S) has been introduced, it may now be quicker to use a different route.
The current version of the ontology also lacks a time-dependent representation of cooperativeness (it is not possible to represent agents being cooperative at time t1 and non-cooperative at time t2). This is a limit of the ontology and the future versions may provide a way to represent changes in cooperativeness of agents.
Other future research opportunities are linked to laws and other legally binding norms that involve a common range of prohibitions and obligations. Although modeling complex legal norms is a challenging task (Griffo et al., 2018), there are already legal knowledge management systems that use Semantic Web technologies, such as Eunomos (Boella et al., 2016). These systems, however, are only informative and the knowledge they provide has been prepared by human experts, who indexed the legal documents. Also, users of these systems are human lawyers, who consume this information in enriched hypertext form. We may imagine the evolution of systems like Eunomos that would contain formal representations of legal regulations in machine readable form. An artificial lawyer agent using the DCEO ontology could then check if the state of affairs (e.g., of his company) is compliant with these regulations. The user interface in this case can be realized in the form of a chatbot, enabling the artificial agent to interact with the human lawyer (Kluwer, 2011; MacTear et al., 2016). The human lawyer can address issues in his/her native language, the chatbot automatically formalizes these responses in DCEO items and may go back to the lawyer if the information is insufficient, until he obtains a consistent and complete DCEO representation, that can be checked against the formal representation of legal constraints. This scenario, however, requires further development and integration of natural language processing tools, such as those integrated in the Eunomos system (Boella et al., 2012, 2013).
There are also plans for releasing modules consisting of different sets of SWRL rules for different kinds of scenarios. These modules will, at first, be built manually and will be available to users of DCEO as starting points for developing an ontology-based infrastructure that suits their needs. Taking one of these modules, we plan to transform a set of SWRL rules from DEO that performs sophisticated event-related reasoning (Mepham, 2010). Another set of rules for applications involving legal agents may be based on LegalRuleML, a specific standard for representing content of legal text, that is built on RuleML and is fully compatible with SWRL (Athan et al., 2013, 2015).
Another planned extension concerns contents of mental states of agents. Currently, we model them independently and our ontology does not capture relations between them. That is sufficient for many typical applications because the content of mental states is usually handled by the internal logic of the application itself. However, in some cases, it may be useful to be able to represent some basic relations between these mental states: they may be mutually exclusive, one may be a subset of another, etc.
A related research opportunity concerns the question of how to achieve a high-level communication among agents and systems, that includes semantically meaningful content. Ferrario and Prévot (2007) identify several steps to fulfill this objective. It would require a closer look at agent communication languages, which understand speech acts as operators with preconditions and effects, discussed by Boella et al. (2007), who proposed an ontology of communication primitives, based on public mental attitudes, attributed to role instances. This ontology allows for the construction of artificial agents participating in a range of dialogues, without having to redefine existing communication protocols. An especially challenging scenario involves the communication of agents in heterogeneous multi-agent systems as described by Van Diggelen et al. (2007).
There is also an optional extension involving deontic and epistemic categories. Accordingly, it may be useful for some applications to introduce a level of fuzziness or specificity into these categories – different obligations may be obligatory in different ways or to different degrees. In legal contexts, there may be different legal interpretations – it is common that norms in legislation may be interpreted in different ways, some of them with inconsistencies. Interpretations from some authoritative sources (such as high courts) may clarify any contradictions, however, that may take time (Bartolini et al., 2016). To handle interpretative uncertainty a pattern-based approach can be used (Vacura et al., 2008).
The related question is also how to encompass defeasibility in the DCEO ontology. A framework supporting defeasible reasoning should be able to represent defeasible (non-strict) facts, i.e., facts that allow exceptions. This, however, introduces the problem of non-monotonicity, which is not encompassed in OWL-DL (Casini et al., 2015). To deal with defeasibility in legislation, reified Input/Output logic has been introduced by Robaldo and Sun (2017). For instance, a legal ontology for modeling GDPR concepts and norms, ascertained by Palmirani et al. (2018), was used to build a knowledge base described by Bartolini et al. (2016), that uses reified I/O logic and LegalRuleML.
We also plan to include a specific relation to capture the reasons behind intentions and actions. We usually say that an agent “performed” an action or that an agent “intends to perform” an action
At last, it is also necessary to note that it is not only important to design ontology well, but also its performance has an impact on its adoption. In the real-world applications that need to perform in real time, the speed of reasoning is of prime importance. The current expressiveness of the ontology is
Conclusions
Solving the problem of an autonomous action of artificial agents is indispensable to progress in many areas of artificial intelligence. The research dealing with this issue, in the context of the Semantic Web is very limited and our project presents an effort to bridge the gap between Semantic Web technologies and AI research. While many existing systems focus on a single-agent scenario and differ only in the way in which the agent approaches its environment, our approach makes it possible to model how artificial agents interact with other artificial agents, or with humans. An artificial agent may be an autonomous vehicle on the road, interacting with other vehicles, an industrial transportation robot that must maneuver a complex environment, or a legal chatbot. All these artificial agents may interact with other artificial or human agents, some of which may have the same goals. Others, however, may have different goals or may even try to obstruct or harm other agents.
We have presented Deontic Cognitive Event Ontology (DCEO) inspired by the
The DCEO ontology described in this paper consists of four parts: event ontology, epistemic ontology, protential ontology and deontic ontology. Event ontology allows modeling of actions of artificial agents, occurring at specific times or intervals. Epistemic ontology describes the mental states of these agents: belief, knowledge and perception and their content. It also enables the modeling of communication between agents and that of common knowledge available to all agents. The proposed protential ontology models the agents’ attitudes to the future – their desires, aversions and intentions. This, in turn, influences their autonomous actions. The deontic ontology aims at modeling obligations and prohibitions – the limits of artificial agents’ actions.
We have also described a case study in which the proposed DCEO ontology supports autonomous vehicle navigation. We have argued that the DCEO ontology enables autonomous vehicles to have an internal representation of entities, events and situations in the world, as well as representation of knowledge and beliefs of different agents and limitations, based on various obligations and prohibitions, therefore, it is the DCEO ontology, that makes it possible to determine their next action.
Finally, we proposed some possible enhancements and extensions of the ontology. We also noted the number of future research opportunities. We believe that the DCEO ontology provides a modeling framework that can be successfully used in many different areas involving artificial agents, from industrial robots to artificial legal advisers.
Footnotes
Acknowledgement
This work has been supported by CSF 18-23964S.
