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 条
  • [31] Cooperative constraint functional logic programming
    Marin, M
    Ida, T
    Suzuki, T
    INTERNATIONAL SYMPOSIUM ON PRINCIPLES OF SOFTWARE EVOLUTION, PROCEEDINGS, 2000, : 214 - 220
  • [32] Constraint Logic Programming and scheduling problems
    Varnier, C
    Baptiste, P
    INFORMATION INTELLIGENCE AND SYSTEMS, VOLS 1-4, 1996, : 2942 - 2946
  • [33] CONSTRAINT LOGIC PROGRAMMING-LANGUAGES
    COHEN, J
    COMMUNICATIONS OF THE ACM, 1990, 33 (07) : 52 - 68
  • [34] CONSTRAINT LOGIC PROGRAMMING AND OPTION TRADING
    LASSEZ, C
    MCALOON, K
    YAP, R
    IEEE EXPERT-INTELLIGENT SYSTEMS & THEIR APPLICATIONS, 1987, 2 (03): : 42 - 50
  • [35] Integrating answer set programming and constraint logic programming
    Veena S. Mellarkod
    Michael Gelfond
    Yuanlin Zhang
    Annals of Mathematics and Artificial Intelligence, 2008, 53 : 251 - 287
  • [36] Quantifier elimination for constraint logic programming
    Sturm, T
    COMPUTER ALGEBRA IN SCIENFIFIC COMPUTING, PROCEEDINGS, 2005, 3718 : 416 - 430
  • [37] Temporal annotated constraint logic programming
    Fruhwirth, T
    JOURNAL OF SYMBOLIC COMPUTATION, 1996, 22 (5-6) : 555 - 583
  • [38] A step from Constraint Logic Programming to mathematical programming
    Rodosek, R
    SOR '97 - THE 4TH INTERNATIONAL SYMPOSIUM ON OPERATIONAL RESEARCH, PROCEEDINGS, 1997, : 201 - 206
  • [39] Experiments in reactive constraint logic programming
    Fages, F
    Fowler, J
    Sola, T
    JOURNAL OF LOGIC PROGRAMMING, 1998, 37 (1-3): : 185 - 212
  • [40] A REWRITE APPROACH FOR CONSTRAINT LOGIC PROGRAMMING
    RICHARD, G
    SAUBION, F
    LATIN '95: THEORETICAL INFORMATICS, 1995, 911 : 469 - 482