Applying Constraint Logic Programming to SQL Semantic Analysis

被引:3
|
作者
Saenz-Perez, Fernando [1 ]
机构
[1] Univ Complutense Madrid, E-28040 Madrid, Spain
关键词
Constraint Logic Programming; SQL; Semantic Checking; Datalog Educational System; QUERIES;
D O I
10.1017/S1471068419000206
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper proposes the use of Constraint Logic Programming (CLP) to model SQL queries in a data-independent abstract layer by focusing on some semantic properties for signalling possible errors in such queries. First, we define a translation from SQL to Datalog, and from Datalog to CLP, so that solving this CLP program will give information about inconsistency, tautology, and possible simplifications. We use different constraint domains which are mapped to SQL types, and propose them to cooperate for improving accuracy. Our approach leverages a deductive system that includes SQL and Datalog, and we present an implementation in this system which is currently being tested in classroom, showing its advantages and differences with respect to other approaches, as well as some performance data.
引用
收藏
页码:808 / 825
页数:18
相关论文
共 50 条
  • [1] Applying Constraint Logic Programming to SQL Test Case Generation
    Caballero, Rafael
    Garcia-Ruiz, Yolanda
    Saenz-Perez, Fernando
    FUNCTIONAL AND LOGIC PROGRAMMING, PROCEEDINGS, 2010, 6009 : 191 - 206
  • [2] Constraint Logic Programming for Hedges: A Semantic Reconstruction
    Dundua, Besik
    Florido, Mario
    Kutsia, Temur
    Marin, Mircea
    FUNCTIONAL AND LOGIC PROGRAMMING, FLOPS 2014, 2014, 8475 : 285 - 301
  • [3] Applying fuzzy logic to evaluate the student in the virtual environment of SQL programming
    Silva, Hieda A. N.
    Lino, Adriano D. P.
    Ponte, Marcio J. M.
    Silveira, Antonio M.
    NOVAS PERSPECTIVAS EM SISTEMAS E TECNOLOGIAS DE INFORMACAO, VOL I: ACTAS DE 2A CONFERENCIA IBERICA DE SISTEMAS E TECNOLOGIAS DE INFORMACAO, 2007, 2007, : 185 - 196
  • [4] Logic programming and constraint logic programming
    Cohen, J
    ACM COMPUTING SURVEYS, 1996, 28 (01) : 257 - 259
  • [5] Intuitionistic Logic Programming for SQL
    Saenz-Perez, Fernando
    LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, LOPSTR 2016, 2017, 10184 : 293 - 308
  • [6] Applying constraint logic programming to predicate abstraction of RTL Verilog descriptions
    Li, T
    Guo, Y
    Li, SK
    Zhu, D
    MICAI 2005: ADVANCES IN ARTIFICIAL INTELLIGENCE, 2005, 3789 : 175 - 184
  • [7] An Ontology Analysis Implementation in Constraint Logic Programming
    de Oliveira Rodrigues, Cleyton Mario
    Goncalves de Freitas, Frederico Luiz
    de Azevedo, Ryan Ribeiro
    2015 IEEE/WIC/ACM INTERNATIONAL CONFERENCE ON WEB INTELLIGENCE AND INTELLIGENT AGENT TECHNOLOGY (WI-IAT), VOL 1, 2015, : 317 - 320
  • [8] CONSTRAINT LOGIC PROGRAMMING
    POUNTAIN, D
    BYTE, 1995, 20 (02): : 159 - 160
  • [9] CONSTRAINT LOGIC PROGRAMMING
    LASSEZ, C
    BYTE, 1987, 12 (09): : 171 - &
  • [10] Constraint logic programming
    Gavanelli M.
    Rossi F.
    Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2010, 6125 : 64 - 86