An Intermediate Representation for Rewriting Cypher Queries

被引:0
|
作者
Hofer, Daniel [1 ,2 ]
Mohamed, Aya [1 ,2 ]
Nadschlaeger, Stefan [1 ]
Auer, Dagmar [1 ,2 ]
机构
[1] Johannes Kepler Univ JKU Linz, Inst Applicat Oriented Knowledge Proc FAW, Linz, Austria
[2] Johannes Kepler Univ JKU Linz, Linz Inst Technol LIT, LIT Secure & Correct Syst Lab, Linz, Austria
关键词
Abstract Syntax Tree (AST); Query Rewriting; Cypher;
D O I
10.1007/978-3-031-39689-2_9
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Some of the current graph database systems provide built-in authorization and access control features. However, many authorization requirements demand for more sophisticated access control such as fine-grained, attribute-based access control (ABAC). Therefore, we decided for a query rewriting approach to enforce these authorizations. We propose an intermediate representation for the semantics of the query. Based on the Cypher grammar, we build an abstract syntax tree (AST) of the query to be extended (i.e., rewritten). We consider a universal class hierarchy for our AST nodes based on the composite pattern, while the semantics of the nodes is introduced via data components. This provides flexibility with respect to the supported kinds of permissions and complexity of the Cypher queries. Our concept and prototypical implementation rely on ANTLR (ANother Tool for Language Recognition), which generates a parser based on the Cypher grammar to create and traverse concrete syntax trees.
引用
收藏
页码:86 / 90
页数:5
相关论文
共 50 条
  • [21] Partial DRS, an Intermediate Representation, to Generate SPARQL Queries from NL Questions
    Varagnolo, Davide
    Melo, Dora
    Rodrigues, Irene Pimenta
    LINKING THEORY AND PRACTICE OF DIGITAL LIBRARIES, PT II, TPDL 2024, 2024, 15178 : 95 - 105
  • [22] Completing queries:: Rewriting of incomplete Web queries under schema constraints
    Berger, Sacha
    Bry, Francois
    Furche, Tim
    Haeusler, Andreas J.
    WEB REASONING AND RULE SYSTEMS, PROCEEDINGS, 2007, 4524 : 319 - +
  • [23] Determinacy and query rewriting for conjunctive queries and views
    Afrati, Foto N.
    THEORETICAL COMPUTER SCIENCE, 2011, 412 (11) : 1005 - 1021
  • [24] Rewriting regular XPath queries on XML views
    Fan, Wenfei
    Geerts, Floris
    Jia, Xibei
    Kementsietsidis, Anastasios
    2007 IEEE 23RD INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2007, : 641 - +
  • [25] Conjunctive Queries with Constraints: Homomorphism, Containment and Rewriting
    Kiani, Ali
    Shiri, Nematollaah
    FOUNDATIONS OF INFORMATION AND KNOWLEDGE SYSTEMS, PROCEEDINGS, 2010, 5956 : 40 - 57
  • [26] Rewriting Fuzzy Queries Using Imprecise Views
    Jaudoin, Helene
    Pivert, Olivier
    ADVANCES IN DATABASES AND INFORMATION SYSTEMS, 2011, 6909 : 257 - 270
  • [27] Query Rewriting for Voice Shopping Null Queries
    Gamzu, Iftah
    Haikin, Marina
    Halabi, Nissim
    PROCEEDINGS OF THE 43RD INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL (SIGIR '20), 2020, : 1369 - 1378
  • [28] Rewriting Natural Language Queries Using Patterns
    Soualmia, Lina F.
    Lelong, Romain
    Dahamna, Badisse
    Darmoni, Stefan J.
    MULTIMODAL RETRIEVAL IN THE MEDICAL DOMAIN, MRMD 2015, 2015, 9059 : 40 - 53
  • [29] REWRITING WITH ACYCLIC QUERIES: MIND YOUR HEAD
    Geck, Gaetano
    Keppeler, Jens
    Schwentick, Thomas
    Spinrath, Christopher
    LOGICAL METHODS IN COMPUTER SCIENCE, 2023, 19 (04) : 17:1 - 17:35
  • [30] Rewriting of regular expressions and regular path queries
    Calvanese, D
    De Giacomo, G
    Lenzerini, M
    Vardi, MY
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2002, 64 (03) : 443 - 465