Graph Databases for Fast Queries in UD Treebanks
In: 23rd International Workshop on Treebanks and Linguistic Theories, SyntaxFest 2025, Ljubljana, Slovenia
https://aclanthology.org/2025.tlt-1.4/
28 August 2025
Abstract
We investigate if labeled property graphs, and graph databases, can be an useful and efficient way of encoding UD treebanks, to facilitate searching for complex syntactic phenomena. We give two alternative encodings of UD treebanks into the off-the-shelf graph database Neo4j, and show how to translate syntactic queries into the graph query language Cypher. Our evaluation shows that graph databases can improve query times by several orders of magnitude, compared to existing approaches.