NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A General-purpose Visual Query Language for Knowledge Graphs with Bidirectional Transformations

Qiang Fu, Xin Wang, Yuan-Fang Li

Abstract

Querying large-scale Knowledge Graphs (KGs) typically requires expertise in complex textual languages like SPARQL or Cypher. This paper presents GPVQL (General-Purpose Visual Query Language), a novel visual interface designed to lower the barrier for non-experts. GPVQL's primary innovation is a bidirectional transformation mechanism that enables users to construct queries incrementally by interacting with graphical results. In a comparative user study using DBpedia, GPVQL demonstrated superior performance in both task completion time and accuracy compared to traditional textual languages and existing visual query tools.

Introduction

Knowledge Graphs (KGs) such as DBpedia and Wikidata serve as the backbone for modern information retrieval and AI applications. However, the "cold start" problem—where users are unfamiliar with the underlying schema or relationship names—makes querying these graphs difficult. While visual query languages (VQLs) have been proposed to mitigate this, most maintain a strict separation between the query construction phase and the result inspection phase. This unidirectional flow forces users to restart the query process if the results do not meet their expectations, hindering exploratory data analysis.

Methodology

GPVQL introduces a unified framework where the query and the result are deeply integrated. The language uses an intuitive graph-based syntax: solid circles represent constants, dotted circles represent variables, and directed edges represent predicates.

The GPVQL workflow featuring bidirectional transformation between visual language and graphical results.

The core of the system is bidirectional transformation. Unlike traditional systems where a query produces a static result, GPVQL allows the graphical results to be transformed back into query patterns. Users can select nodes within a result set and "expand" them to discover new relationships, which are then automatically incorporated into the visual query. Furthermore, GPVQL is designed for cross-platform compatibility, translating visual patterns into standard textual languages including SPARQL, Cypher, and Gremlin.

Evaluation and Key Results

The effectiveness of GPVQL was evaluated through a user study involving 20 participants. The study compared GPVQL against three alternatives: the textual language SPARQL and two visual tools, QueryVOWL and RDF Explorer. Participants performed five tasks of increasing complexity on the DBpedia knowledge graph.

Comparison of mean completion times across five tasks for GPVQL and competing query methods.

The results indicate that GPVQL consistently outperforms its competitors. As shown in the performance metrics, GPVQL achieved the shortest mean completion times across all task levels. Notably, while the difficulty of writing SPARQL queries grew exponentially with complexity, GPVQL's performance remained relatively stable. Quantitatively, GPVQL reduced query completion time by approximately 15% and increased accuracy by roughly 10% compared to RDF Explorer, the next best-performing visual tool. Even in the most complex scenarios, GPVQL maintained an accuracy rate above 60%, whereas other tools experienced significant performance degradation.

Conclusion

GPVQL successfully bridges the gap between complex graph data and non-expert users by treating querying as an iterative, exploratory process. By closing the feedback loop between query and result through bidirectional transformation, the system reduces the cognitive load associated with graph exploration. Future research will focus on improving the scalability of the visualization for massive result sets and enhancing automated schema suggestions to further assist users in unfamiliar data environments.

Summary updated

BibTeX
@inproceedings{fu2020general,
  author = {Qiang Fu and Xin Wang and Yuan-Fang Li},
  title = {{A General-purpose Visual Query Language for Knowledge Graphs with Bidirectional Transformations}},
  booktitle = {ISWC (Demos/Industry)},
  year = {2020},
}
Figure