2- The query cheap hotels is written as,
SELECT name, price FROM hotel PREFERRING ’cheap’;
When the
PREFERRING
clause is interpreted, the
query is automatically rewritten as follows,
SELECT name, price, preference From Hotel WHERE price
BETWEEN 45 and 60;
name price preference
Kyriad 55 cheap
Notice that all the authorized construction of the
OntoQL language can be used in building the query.
The last clause is the
PREFERRING
clause. It is used for
rewriting the queries into standard OntoQL queries.
6 CONCLUSIONS
This paper has presented an extension of a database
architecture in order to handle preference modeling
and querying with preferences not at the database log-
ical model but at the semantic level offered by the on-
tology. This extension requires:
- the explicit representation of the ontology in the
database. As a consequence, we have been able to
attach the preferences to the classes and to the prop-
erties of the ontology and not to the columns of the
logical model of the database where instances or data
are stored;
- the possibility to access and to manipulate the ontol-
ogy model through the access and manipulation to the
meta-model and finally,
- the availability of an exploitation language allowing
to manipulating both the instances, their classes and
the meta-model in the case of ontologies.
These requirements are fulfilled by the OntoDB
ontology based database and by the OntoQL exploita-
tion language. The extension of the ontology model
with the preference model permitted to attach various
types of preferences to classes and/or properties of
the ontology. As a consequence, we have been able
to describe semantic queries that handle preferences
expressed at the semantic level, and thus abstracting
from the logical model. We believe that the possi-
bility to access the meta-model level well adapted to
define model extensions that preserve upward com-
patibility with the extended model. This work has
opened several new directions and perspectives. In-
deed, such extensions are possible for other different
domain characterizations like security, user profiles or
model annotations.
REFERENCES
Agrawal, R. and Wimmers, E. L. (2000). A framework for
expressing and combining preferences. In SIGMOD
Conference, pages 297–306.
Alexaki, S., Christophides, V., Karvounarakis, G., and
Tolle, K. (2001). Managing Voluminous RDF De-
scription Bases. In Proceedings of the 2nd Interna-
tional Workshop on the Semantic Web, pages 1–13.
Broekstra, J., Kampman, A., and van Harmelen, F. (2002).
Sesame: A Generic Architecture for Storing and
Querying RDF and RDF Schema. In Proceedings
of the 1st International Semantic Web Conference
(ISWC’02), pages 54–68.
Chong, E. I., Das, S., Eadon, G., and Srinivasan, J. (2005).
An Efficient SQL-based RDF Querying Scheme. In
Proceedings of the 31st international conference on
Very Large Data Bases (VLDB’05), pages 1216–1227.
Dehainsala, H., Pierra, G., and Bellatreche, L. (2007). On-
toDB: An Ontology-Based Database for Data Inten-
sive Applications. In Proceedings of the 12th Interna-
tional Conference on Database Systems for Advanced
Applications (DASFAA’07), pages 497–508.
Jean, S., A¨ıt-Ameur, Y., and Pierra, G. (2006). Query-
ing Ontology Based Database Using OntoQL. In
Proceedings of On the Move to Meaningful Internet
Systems 2006:(ODBASE’06), volume 4275 of Lecture
Notes in Computer Science. Springer.
Kieling, W. (2002). Foundations of preferences in database
systems. In Mars, N. J. I., editor, Knowledge and Data
Engineering, pages 311–322. IOS Press, Amsterdam.
P. Gursk, T.Horvth, J. J. and Vanekov, V. (2008). User pref-
erence web search. experiments with a system con-
necting web and user. In To appear in the Computing
and Informatics Journal, pages 25–32.
Petrini, J. and Risch, T. (2007). Semantic Web Abridged
Relational Databases. In Proceedings of the 18th In-
ternational Conference on Database and Expert Sys-
tems Applications (DEXA’07), pages 455–459.
Pierra, G., Dehainsala, H., A¨ıt-Ameur, Y., and Bellatreche,
L. (2005). Base de Donn´ees `a Base Ontologique :
principes et mise en œuvre. Ing´enierie des Syst`emes
d’Information, 10(2):91–115.
Siberski, W., Pan, J. Z., and Thaden, U. (2006). Querying
the semantic web with preferences. In In Proceed-
ings of the 5th International Semantic Web Conference
(ISWC, pages 612–624.
Toninelli, A., Corradi, A., and Montanari, R. (2008).
Semantic-based discovery to support mobile context-
aware service access. Computer Communications,
31(5):935–949.
Viappiani, P., Faltings, B., and Pu, P. (2006). Preference-
based search using example-critiquing with sugges-
tions. Journal of Artificial Intelligence Research,
27:2006.
AN EXTENSION OF ONTOLOGY BASED DATABASES TO HANDLE PREFERENCES
213