An Intermediate Representation for Rewriting Cypher Queries

Research output: Chapter in Book/Report/Conference proceedingConference proceedingspeer-review

Abstract

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.
Original languageEnglish
Title of host publicationDatabase and Expert Systems Applications - DEXA 2023 Workshops - 34th International Conference, DEXA 2023, Proceedings
EditorsGabriele Kotsis, Ismail Khalil, Atif Mashkoor, Johannes Sametinger, A Min Tjoa, Bernhard Moser, Maqbool Khan
Place of PublicationCham
PublisherSpringer
Pages86-90
Number of pages5
Volume1872
ISBN (Print)9783031396885
DOIs
Publication statusPublished - Aug 2023

Publication series

NameCommunications in Computer and Information Science
Volume1872 CCIS
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Fields of science

  • 102 Computer Sciences

JKU Focus areas

  • Digital Transformation
  • Sustainable Development: Responsible Technologies and Management

Cite this