Introduction
Knowledge Graphs (KGs) such as Wikidata and Freebase have become foundational to modern AI, powering applications from web search to sophisticated personal assistants. However, querying these massive repositories of billions of facts presents significant challenges. Traditional database approaches often struggle with the scalability of join-heavy operations, the incompleteness of real-world data (the open-world assumption), and a significant usability gap where non-expert users cannot easily write complex formal queries like SPARQL.
This paper provides a comprehensive survey of the evolving KG querying landscape, bridging the gap between traditional database techniques and modern deep learning approaches. It highlights a paradigm shift from rigid, structured queries toward flexible, neural-based "semantic" querying capable of handling natural language and missing information.
The Design Space of KG Querying
The research categorizes the domain into a multi-dimensional design space, encompassing data models, query classification, and diverse processing techniques. This taxonomy helps unify interdisciplinary research from the database, machine learning, and natural language processing (NLP) communities.
Methodological Paradigms
The paper identifies two primary paradigms in KG querying:
- Classic/Structured Querying: These methods utilize formal languages like SPARQL (for RDF triples) or Cypher/GSQL (for Property Graphs). While powerful for exact subgraph pattern matching, they are brittle when faced with schema variations or missing edges.
- Neural/Embedding-based Querying: This modern approach maps entities and relations into low-dimensional vector spaces. Translational models (e.g., TransE) treat relations as vector translations, while multi-hop neural querying models like Query2box or BetaE represent logical queries as geometric shapes. This allows systems to find answers even when the physical path in the graph is incomplete.
- Hybrid Interfaces: To bridge the usability gap, "semantic parsing" translates natural language questions (NLQs) into structured queries, combining the precision of databases with the flexibility of NLP.
Benchmarking and Datasets
Evaluating these systems requires diverse benchmarks. The survey highlights several critical datasets:
- Simple Questions: WebQuestions, SimpleQuestions.
- Complex/Multi-hop: LC-QuAD, ComplexQuestions, HotpotQA.
- Conversational: ConvQuestions.
- RDF/SPARQL Benchmarks: SP2Bench, LUBM, and the QALD (Question Answering over Linked Data) challenges.
The Commercial Landscape and Industry Realities
A key insight of the survey is the notable gap between academic research and industrial implementation. While researchers focus on neural embeddings, commercial graph databases still primarily prioritize structured languages and exact matching.
As shown in the table above, leaders like Neo4j, ArangoDB, and Amazon Neptune have begun integrating graph embedding libraries (e.g., GraphSAGE or DGL). Amazon Neptune is particularly noted for its multi-model support (RDF and Property Graphs) and built-in machine learning capabilities. However, support for multimodal KG-QA remains largely absent in the commercial sector.
Future Directions and Limitations
Despite rapid progress, several "unsolved" areas remain for future research:
- Vector Data Management: Databases need native support for high-dimensional indexing and vector joins to handle neural querying at scale.
- Explainability: Neural models often lack the "traceability" of classic databases; combining neural flexibility with explainable results is a major challenge.
- Scalability of Embeddings: Training embeddings on graphs with billions of nodes remains computationally expensive and difficult to update dynamically.
- Multimodal Integration: Most commercial systems still treat images or long text as isolated "blobs" rather than integrated semantic components of the graph structure.
Summary updated