After this step, agent QA will execute the answer
event, which has two definitions - one in case the
answer is correct and another in case it is incorrect.
To perform the validation of the response, it uses the
internal event created called checkanswer, which
will return true or false.
+!answer(Answer, Uri, Predicate) :
.checkanswer(Answer, Uri, Predicate) <-
.print(“Congratulations”); !verifyUri(
Uri, Predicate, Answer);
!generateQuestions.
+!answer(Answer, Uri, Predicate) :
.checkanswer(Answer, Uri, Predicate) <-
.print(“Wrong answer!”);
!generateQuestions.
If the response is incorrect, only a message is
displayed and the process for generating a new
question is initiated. If correct, a congratulatory
message is displayed and the verifyUri event is
executed.
+!verifyUri(Uri, Predicate) :
.checkuri(Uri, Predicate, X) <-
!addUri(X) .
This event is responsible for verifying that the
result obtained from the combination of the URI and
the predicate corresponds to a URI that points to
another DBPedia entity. To do this, it uses the
internal event added to Jason called checkuri, which
performs this verification, and if it identifies that it
corresponds to a URI, it then unifies this value to
variable X. In the sequence, the event named addUri
is executed, which adds the URI obtained at the end
of the list of URIs that the agent has as belief for
later formulation of questions.
Thus, during the execution of a cycle of
formulating questions based on a given URI, new
URIs were obtained and added as agent beliefs,
which maintained a relation referring to the content
addressed by the initial URI.
5 CONCLUSIONS
This research addressed the use of the concept of
Semantic Web together with the implementation of
the Jason interpreter. The principles of a
consolidated BDI agent model were maintained,
enabling agents implemented from this tool to have
the ability to access data available in remote
ontologies for the production and updating of
beliefs.
In order to do so, the creation and modification
of internal events of the Jason interpreter were
proposed. The implementation of a class to be used
to intermediate the SPARQL queries to remote
bases, more specifically DBPedia, were also
proposed. Thus, from a URI that the agent has as a
belief, it is possible to expand its knowledge based
on the relations obtained from this URI and from
predicates, always maintaining content coherence.
In order to validate the proposed model, a case
study was presented for the creation of an
educational quiz about geography, in which the
agents exclusively use information available in
remote ontologies to determine the questions related
to the context. With this, it was possible to observe
that from an initial belief, the agent manages to
produce and expand the bank of questions based on
entities that relate to the initial belief, maintaining
the coherence of the content.
The main contribution of this study was to
provide modifications in a well-known BDI agent
model, in this case the Jason interpreter, allowing
agents to integrate with ontologies available on the
Web. It is important to point out that some of the
internal events presented in this work refer to the
context of a virtual learning environment, for the
production of an educational quiz. Following the
same context, and using the main class of the
proposal, called SearchDbpedia, it is possible to
define new internal events in order to meet other
contexts.
About the related works described above, it is
possible to observe that the sequence of research
presented by Moreira et al. (2011), Klapiscak and
Bordini (2009), Mascardi et al. (2011) and Freitas et
al. (2015) propose changes in consolidated BDI
architectures in order to allow access to ontologies,
however, do not define the possibility of access to
remote ontologies and, in some cases, they use
ontology matching algorithms to allow the
communication between agents. By proposing a
model in which the agents have the capability to
update their beliefs based on remote ontologies, we
claim that is possible that the group of agents has a
common-sense knowledge base. In this case, the
case study uses DBPedia, which eliminates the need
for ontology matching algorithms.
The research work proposed by Campos (2014),
presents an agent model that supports beliefs
revision according to the knowledge obtained from
remote ontologies. This model uses an ad hoc
implementation to perform the validation of the
Integration Between Agents and Remote Ontologies for the Use of Content on the Semantic Web
131