2.1 Fuzzy Queries to Regular Databases
Getting fuzzy answers for fuzzy queries from non-
fuzzy information stored in non-fuzzy databases has
been studied in some works, as SQLF, presented by P.
Bosc and O. Pivert in (Bosc and Pivert, 1995), FQL,
presented by Takahashi (Takahashi, 1991), FIIS, pre-
sented by M. Zemankova (Zemankova, 1989), FIRST,
presented by D. Lucarella and R. Morara (Lucarella
and Morara, 1991), the tool proposed by Chen and
Jong (Chen and Jong, 1997) and others. Very
good revisions of this ones and some other propos-
als are the works of Leonid Tineo (Tineo, 2005) and
Herrera-Viedma and L
´
opez-Herrera (Herrera-Viedma
and L
´
opez-Herrera, 2010).
Most of the works mentioned before focus in im-
proving the efficiency of the existing procedures, in
including new syntactic constructions, in allowing to
introduce in the queries the conversion between the
non-fuzzy values needed to execute the query and the
fuzzy values in the query, or in improving the trans-
lation of the fuzzy query into the SQL syntax (so any
regular database can answer it). Our proposal focus
less on the technical aspects (so we cannot compare
the evaluation speed or the resources consumption of
ours against any of them) because it tries to present
the user an interface intelligent enough to allow the
user to pose only the queries that we can answer from
the knowledge introduced in the configuration file and
the information in the database. It is, the framework
is able to determine the whole set of queries that it can
answer from the knowledge introduced in the config-
uration file and presents the user a web interface to
pose easily any of this queries.
Our work is maybe more similar to works re-
lated to information retrieval, like the one of Ropero,
G
´
omez, Carrasco and Le
´
on (Ropero et al., 2012)
or the one of Zadrozny and Nowacka (Zadrony and
Nowacka, 2009), although we consider it rather dif-
ferent. Most of the works in this line focus in creating
an index for answering queries by using different term
weighting procedures (even logic-based ones). Their
goal is obtaining an index with enough information to
answer any query, some of them analyzing it previ-
ously by using natural language processing and some
others by providing a slightly complicated query syn-
tax. Ours, as told before, focus in providing an easy
to use interface allowing the user to represent with it
any query that can be answered from the knowledge
introduced in the configuration file.
When starting the development of our proposal
we wanted to do it under the logic programming
paradigm, because we know that it is more declara-
tive
1
than the other ones. The frameworks for fuzzy
logic allowing the developer to code programs un-
der the logic programming paradigm (called fuzzy
logic systems) we know about are Flopper (Morcillo
and Moreno, 2008), Fuzzy Prolog (Guadarrama et al.,
2004), Rfuzzy (Mu
˜
noz-Hern
´
andez et al., 2011) and
FuzzyDL (Bobillo and Straccia, 2008).
2.2 Priorities in Fuzzy Logic
The inherent subjective character of fuzzy concepts
needs to be taken into account when performing fuzzy
searches. Some users might want to redefine or per-
sonalize some concepts, but some others might not
want to. So, we might give more priority to the con-
cepts redefined by users, but only when they are the
ones posing the query.
In (Mu
˜
noz-Hern
´
andez et al., 2011) the authors
extend the multi-adjoint satisfaction and immediate
consequences operator in (Medina et al., 2004; Med-
ina Moreno and Ojeda-Aciego, 2002) to take care
of conditions and introduce a three levels priority
system. These three levels were designed to dis-
tinguish results computed by rules that do not rely
on other rules (highest priority), rules that rely on
others (medium priority) and rules used when no
other rule was able to obtain a valid result (low-
est priority). The proposal was adequate but, as
the same authors pointed out in (Pablos-Ceruelo
and Mu
˜
noz-Hern
´
andez, 2011), insufficient for mod-
elling user preferences. This is why in (Pablos-
Ceruelo and Mu
˜
noz-Hern
´
andez, 2011) they changed
the three symbols by a real number between 0
and 1, in the direction proposed by the authors of
(Theodorakopoulos and Baras, 2004). We take the
idea of using priorities to represent user preferences
from (Pablos-Ceruelo and Mu
˜
noz-Hern
´
andez, 2011;
Theodorakopoulos and Baras, 2004).
3 IMPLEMENTATION DETAILS
The framework we present runs on a computer with a
Linux Operating System and is divided in two appli-
cations: the first one written in Java and running on
a Tomcat server and the other one written in Prolog
(Lloyd, 1987; O’Keefe, 1990; Sterling and Shapiro,
1987) and executed by demand of the first one. The
1
We say that it is more declarative because we know that
it is not fully declarative yet. It removes the necessity to
specify the flow control in most cases, but the programmer
still needs to know if the interpreter or compiler implements
depth or breadth-first search strategy and left-to-right or any
other literal selection rule.
FCTA2014-InternationalConferenceonFuzzyComputationTheoryandApplications
112