TY - GEN
T1 - An Intermediate Representation for Rewriting Cypher Queries
AU - Hofer, Daniel
AU - Mohamed, Aya
AU - Nadschläger, Stefan
AU - Auer, Dagmar
PY - 2023/8
Y1 - 2023/8
N2 - 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.
AB - 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.
UR - https://www.scopus.com/pages/publications/85171583917
U2 - 10.1007/978-3-031-39689-2_9
DO - 10.1007/978-3-031-39689-2_9
M3 - Conference proceedings
SN - 9783031396885
VL - 1872
T3 - Communications in Computer and Information Science
SP - 86
EP - 90
BT - Database and Expert Systems Applications - DEXA 2023 Workshops - 34th International Conference, DEXA 2023, Proceedings
A2 - Kotsis, Gabriele
A2 - Khalil, Ismail
A2 - Mashkoor, Atif
A2 - Sametinger, Johannes
A2 - Tjoa, A Min
A2 - Moser, Bernhard
A2 - Khan, Maqbool
PB - Springer
CY - Cham
ER -