Learning Database Queries with Prolog

被引:0
|
作者
Orehova, Ekaterina [1 ]
Govyazin, Sergey [1 ]
Stroganov, Yurii [1 ]
机构
[1] Bauman Moscow State Tech Univ, 5,2nd Baumanskaya St, Moscow, Russia
关键词
teaching; databases; Prolog; entity-relationship model; SQL; object-relational mapping;
D O I
10.12753/2066-026X-19-107
中图分类号
G40 [教育学];
学科分类号
040101 ; 120403 ;
摘要
A database is a collection of some knowledge. Knowledge can be presented as some semantic network. Entity-relationship model is one of representations of the semantic network. When using the entity-relationship model, it is possible to distinguish entities and relations between these entities. The entity-relationship model can be then converted into a database schema. The user interacts with the database by writing requests and receiving answers containing the requested information. There are several ways to write queries to databases with different convenience of creating and speed of execution. The article reviews three different approaches to writing queries: SQL query, Prolog query and Object-Relational Mapping (ORM) query. Each of the approaches has its own advantages and disadvantages. You need to know the basics of relational algebra to write queries with the SQL language, while ORM libraries and the Prolog don't require any additional knowledge. Writing queries with the Prolog language is similar to writing text in natural language, which makes these queries understandable for people who have never worked with databases. There was made the comparison of the plainness of the approaches when explaining them to listeners who are studying databases. The listeners participated in the compilation were divided into groups according to their specialties. The following groups took part in the study: first-year students of an economic and managerial specialty, engineering students and students with a specialty software engineering. The purpose of this comparison is to determine the method of compiling database queries, which is most suitable for teaching students of various specialties.
引用
收藏
页码:265 / 272
页数:8
相关论文
共 50 条
  • [1] PROLOG, CONJUNCTIVE QUERIES AND RULES
    MASSART, DL
    DESMET, M
    [J]. TRAC-TRENDS IN ANALYTICAL CHEMISTRY, 1985, 4 (05) : 111 - 112
  • [2] Translating description logic queries to Prolog
    Nagy, Z
    Lukácsy, G
    Szeredi, P
    [J]. PRACTICAL ASPECTS OF DECLARATIVE LANGUAGES, 2006, 3819 : 168 - 182
  • [3] Learning Database Queries via Intelligent Semiotic Machines
    Martins, Denis Mayr Lima
    Vossen, Gottfried
    de Lima Neto, Fernando Buarque
    [J]. 2017 IEEE LATIN AMERICAN CONFERENCE ON COMPUTATIONAL INTELLIGENCE (LA-CCI), 2017,
  • [4] OPTIMIZING AND EXECUTING DAPLEX QUERIES USING PROLOG
    PATON, NW
    GRAY, PMD
    [J]. COMPUTER JOURNAL, 1990, 33 (06): : 547 - 555
  • [5] THE EXTERNAL DATABASE IN SICSTUS PROLOG
    NILSSON, H
    [J]. LECTURE NOTES IN ARTIFICIAL INTELLIGENCE, 1992, 624 : 493 - 495
  • [6] PROLOG - RELATIONAL DATABASE INTERFACES
    LUCAS, RJ
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 1991, 33 (10) : 734 - 740
  • [7] Learning to parse database queries using Inductive Logic Programming
    Zelle, JM
    Mooney, RJ
    [J]. PROCEEDINGS OF THE THIRTEENTH NATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND THE EIGHTH INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE, VOLS 1 AND 2, 1996, : 1050 - 1055
  • [8] AIDB: a Sparsely Materialized Database for Queries using Machine Learning
    Jin, Tengjun
    Mittal, Akash
    Mo, Chenghao
    Fang, Jiahao
    Zhang, Chengsong
    Dai, Timothy
    Kang, Daniel
    [J]. PROCEEDINGS OF THE 8TH WORKSHOP ON DATA MANAGEMENT FOR END-TO-END MACHINE LEARNING, DEEM 2024, 2024,
  • [9] Prolog - relational database interfaces
    [J]. Lucas, R.J., 1600, (33):
  • [10] Undeniable database queries
    Buldas, A
    Roos, M
    Willemson, J
    [J]. DATABASES AND INFORMATION SYSTEMS II, 2002, : 43 - 54