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 条
  • [31] Using Heterogeneous Mappings for Rewriting SPARQL Queries
    Rodrigues Lopes, Fernanda Ligia
    Sacramento, Eveline Russo
    Loscio, Bernadette Farias
    2012 23RD INTERNATIONAL WORKSHOP ON DATABASE AND EXPERT SYSTEMS APPLICATIONS (DEXA), 2012, : 267 - 271
  • [32] Optimally Rewriting Formulas and Database Queries: A Confluence of Term Rewriting, Structural Decomposition, and Complexity
    Chen, Hubie
    Mengel, Stefan
    27TH INTERNATIONAL CONFERENCE ON DATABASE THEORY, ICDT 2024, 2024, 290
  • [33] Rewriting queries using views in the presence of arithmetic comparisons
    Afrati, Foto
    Li, Chen
    Mitra, Prasenjit
    THEORETICAL COMPUTER SCIENCE, 2006, 368 (1-2) : 88 - 123
  • [34] Efficient Ontological Query Answering by Rewriting into Graph Queries
    Dimartino, Mirko Michele
    Cali, Andrea
    Poulovassilis, Alexandra
    Wood, Peter T.
    FLEXIBLE QUERY ANSWERING SYSTEMS, 2019, 11529 : 75 - 84
  • [35] Rewriting of SPARQL/Update Queries for Securing Data Access
    Oulmakhzoune, Said
    Cuppens-Boulahia, Nora
    Cuppens, Frederic
    Morucci, Stephane
    INFORMATION AND COMMUNICATIONS SECURITY, 2010, 6476 : 4 - +
  • [36] Filtering Techniques for Rewriting XPath Queries Using Views
    Zhou, Rui
    Liu, Chengfei
    Li, Jianxin
    Wang, Junhu
    WEB INFORMATION SYSTEMS ENGINEERING - WISE 2008, PROCEEDINGS, 2008, 5175 : 307 - +
  • [37] Object oriented mechanisms to rewriting queries using views
    Seriai, Abdelhak
    Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2003, 2736 : 672 - 682
  • [38] Rewriting queries with arbitrary aggregation functions using views
    Cohen, Sara
    Nutt, Werner
    Sagiv, Yehoshua
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2006, 31 (02): : 672 - 715
  • [39] Rewriting queries using views with value integrity constraints
    Jaudoin, H
    STAIRS 2004, 2004, 109 : 38 - 49
  • [40] Query Rewriting on Aggregate Queries over Uncertain Database
    Xie, Dong
    Long, Hai
    COMPUTING AND INTELLIGENT SYSTEMS, PT IV, 2011, 234 : 25 - 31