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 条
  • [21] A CONSTRAINT LOGIC PROGRAMMING SHELL
    LIM, P
    STUCKEY, PJ
    LECTURE NOTES IN COMPUTER SCIENCE, 1990, 456 : 75 - 88
  • [22] AN INTRODUCTION TO CONSTRAINT LOGIC PROGRAMMING
    KRIWACZEK, F
    LECTURE NOTES IN ARTIFICIAL INTELLIGENCE, 1992, 617 : 82 - 94
  • [23] Sets and constraint logic programming
    Dovier, A
    Piazza, C
    Pontelli, E
    Rossi, G
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2000, 22 (05): : 861 - 931
  • [24] Functional and (Constraint) Logic Programming
    Escobar, Santiago
    Falaschi, Moreno
    INFORMATION AND COMPUTATION, 2014, 235 : 1 - 2
  • [25] HIERARCHICAL CONSTRAINT LOGIC PROGRAMMING
    WILSON, M
    BORNING, A
    JOURNAL OF LOGIC PROGRAMMING, 1993, 16 (3-4): : 277 - 318
  • [26] Logic, optimization, and constraint programming
    Hooker, JN
    INFORMS JOURNAL ON COMPUTING, 2002, 14 (04) : 295 - 321
  • [27] Temporal logic and annotated constraint logic programming
    Fruhwirth, T
    EXECUTABLE MODAL AND TEMPORAL LOGICS, 1995, 897 : 58 - 68
  • [28] On integrating Constraint Logic Programming and Integer Programming
    Appa, G
    Mourtos, I
    Magos, D
    6TH WORLD MULTICONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL V, PROCEEDINGS: COMPUTER SCI I, 2002, : 140 - 145
  • [29] A confluent semantic basis for the analysis of concurrent constraint logic programs
    Codish, M
    Falaschi, M
    Marriott, K
    Winsborough, W
    JOURNAL OF LOGIC PROGRAMMING, 1997, 30 (01): : 53 - 81
  • [30] Polynomial-time learning in logic programming and constraint logic programming
    Sebag, M
    Rouveirol, C
    INDUCTIVE LOGIC PROGRAMMING, 1997, 1314 : 105 - 126