An extension of SPARQL for expressing qualitative preferences

In this paper we present SPREFQL, an extension of the SPARQL language that allows appending a PREFER clause that expresses "soft" preferences over the query results obtained by the main body of the query. The extension does not add expressivity and any SPREFQL query can be transformed to an equivalent standard SPARQL query. However, clearly separating preferences from the "hard" patterns and filters in the WHERE clause gives queries where the intention of the client is more cleanly expressed, an advantage for both human readability and machine optimization. In the paper we formally define the syntax and the semantics of the extension and we also provide empirical evidence that optimizations specific to SPREFQL improve run-time efficiency by comparison to the usually applied optimizations on the equivalent standard SPARQL query.

[1]  José Manuél Gómez-Pérez,et al.  User preferences in the web of data , 2014, Semantic Web.

[2]  Werner Kießling,et al.  Foundations of Preferences in Database Systems , 2002, VLDB.

[3]  Rakesh Agrawal,et al.  A framework for expressing and combining preferences , 2000, SIGMOD '00.

[4]  Georgia Koutrika,et al.  A survey on representation, composition and application of preferences in database systems , 2011, TODS.

[5]  Hans Tompits,et al.  A Classification and Survey of Preference Handling Approaches in Nonmonotonic Reasoning , 2004, Comput. Intell..

[6]  R. Doyle The American terrorist. , 2001, Scientific American.

[7]  Ronald L. Graham,et al.  Optimal scheduling for two-processor systems , 1972, Acta Informatica.

[8]  Sheila A. McIlraith,et al.  SPARQL with Qualitative and Quantitative Preferences , 2013, OrdRing@ISWC.

[9]  Olivier Pivert,et al.  SPARQL extensions with preferences: a survey , 2016, SAC.

[10]  James A. Hendler,et al.  The Semantic Web" in Scientific American , 2001 .

[11]  Eyke Hüllermeier,et al.  Preferences in AI: An overview , 2011, Artif. Intell..

[12]  Werner Kießling,et al.  Preference SQL - Design, Implementation, Experiences , 2002, VLDB.

[13]  Emanuele Della Valle,et al.  Efficient Execution of Top-K SPARQL Queries , 2012, SEMWEB.

[14]  Jan Chomicki,et al.  Preference formulas in relational queries , 2003, TODS.

[15]  Marcelo Arenas,et al.  Semantics and Complexity of SPARQL , 2006, International Semantic Web Conference.

[16]  Zongmin Ma,et al.  f-SPARQL: A Flexible Extension of SPARQL , 2010, DEXA.

[17]  Georgia Koutrika,et al.  Personalization of queries in database systems , 2004, Proceedings. 20th International Conference on Data Engineering.

[18]  Jeff Z. Pan,et al.  Querying the Semantic Web with Preferences , 2006, SEMWEB.

[19]  Donald Kossmann,et al.  The Skyline operator , 2001, Proceedings 17th International Conference on Data Engineering.

[20]  Ian Horrocks,et al.  Order matters! Harnessing a world of orderings for reasoning over massive data , 2013, Semantic Web.

[21]  Thomas Lukasiewicz,et al.  Preference Queries with Ceteris Paribus Semantics for Linked Data , 2015, OTM Conferences.

[22]  Thomas Lukasiewicz,et al.  Preference-Based Query Answering in Datalog+/- Ontologies , 2013, Description Logics.