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 条
  • [1] An object-oriented representation and reasoning model to rewriting queries using views
    Seriai, A
    SEVENTH INTERNATIONAL DATABASE ENGINEERING AND APPLICATIONS SYMPOSIUM, PROCEEDINGS, 2003, : 407 - 408
  • [2] Rewriting Guarded Negation Queries
    Barany, Vince
    Benedikt, Michael
    ten Cate, Balder
    MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE 2013, 2013, 8087 : 98 - 110
  • [3] Rewriting Queries with Negated Atoms
    Alfonso, Enrique Matos
    Stamou, Giorgos
    RULES AND REASONING, 2017, 10364 : 151 - 167
  • [4] Ontological Queries: Rewriting and Optimization
    Gottlob, Georg
    Orsi, Giorgio
    Pieris, Andreas
    IEEE 27TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2011), 2011, : 2 - 13
  • [5] On the equivalence and rewriting of aggregate queries
    Grumbach, S
    Rafanelli, M
    Tininini, L
    ACTA INFORMATICA, 2004, 40 (08) : 529 - 584
  • [6] Rewriting queries using views
    Flesca, S
    Greco, S
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2001, 13 (06) : 980 - 995
  • [7] Views and Queries: Determinacy and Rewriting
    Nash, Alan
    Segoufin, Luc
    Vianu, Victor
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2010, 35 (03):
  • [8] On the equivalence and rewriting of aggregate queries
    Stéphane Grumbach
    Maurizio Rafanelli
    Leonardo Tininini
    Acta Informatica, 2004, 40 : 529 - 584
  • [9] On mutation testing of graph database queries in the Cypher language
    Ariwaka, Shingo
    Tsuchiya, Tatsuhiro
    PROCEEDINGS OF THE 2023 30TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE, APSEC 2023, 2023, : 579 - 583
  • [10] Rewriting conjunctive queries determined by views
    Afrati, Foto
    Mathematical Foundations of Computer Science 2007, Proceedings, 2007, 4708 : 78 - 89