Querying knowledge Graphs By Example entity tuples

Nandish Jayaram, Arijit Khan, Chengkai Li, Xifeng Yan, Ramez Elmasri

TL;DR

This paper introduces GQBE, a novel system for querying massive knowledge graphs using example entity tuples instead of complex graph queries. GQBE automatically infers a user's intent by constructing a "maximal query graph" and efficiently retrieves relevant results, significantly improving usability and outperforming existing methods in accuracy and speed.

What Problem Does This Paper Address?

Knowledge graphs, like Freebase and DBpedia, are growing exponentially, containing billions of interconnected entities and relationships. While incredibly rich, their sheer complexity and the gap between their structure and non-expert users' database knowledge make them difficult to query. Traditional structured query languages (SQL, SPARQL) require specialized skills, and even keyword-based searches can struggle to precisely capture user intent. This paper addresses the challenge of making knowledge graph querying more accessible and intuitive for users who may not be experts in graph query languages or data models.

Methods

GQBE tackles this problem with a multi-stage approach:

  • Query Graph Discovery: Given an example entity tuple (e.g., "Jerry Yang, Yahoo!"), GQBE first constructs a "neighborhood graph" that captures the local context around these entities. From this, it derives a "maximal query graph" (MQG) that represents the core query intent, weighted by edge importance.
  • Query Lattice: The system then models the space of possible query graphs as a "query lattice," where each node represents a subgraph of the MQG. This lattice allows for efficient exploration and ranking of potential answers.
  • Best-First Exploration: Instead of exhaustively evaluating all possible query graphs, GQBE employs a best-first search strategy. It prioritizes exploring lattice nodes with the highest potential for relevant answers, using an upper-bound score to prune unpromising branches. This significantly reduces the search space.
  • Scoring and Ranking: Answer graphs are scored based on both their structural similarity to the query graph and the "content score," which considers how well entities and relationships match. This allows for precise ranking of top-k answer tuples.
  • Multi-tuple Queries: GQBE extends its approach to handle multiple query tuples, merging their respective MQGs to capture more nuanced user intent.

Datasets

The paper evaluates GQBE on two large, real-world knowledge graphs:

  • Freebase: A large, collaboratively created graph database.
  • DBpedia: A knowledge base extracted from Wikipedia.

The authors also created two groups of queries based on these datasets, using existing tables and properties to generate ground truth for evaluation.

Key Insights and Ideas

  • Querying by Example Tuples: The core innovation is enabling users to query complex knowledge graphs by simply providing examples of entities and their relationships, bypassing the need for explicit, complex graph queries. This dramatically lowers the barrier to entry.
  • Maximal Query Graph (MQG): The concept of an MQG as a compressed, weighted representation of user intent derived from example tuples is crucial. It effectively captures the essence of the query without being overly complex.
  • Query Lattice for Exploration: Using a query lattice to systematically explore the space of possible query graphs, combined with a best-first search, is an efficient strategy for finding top-k answers without exhaustive computation.
  • Edge Weighting and Scoring: The sophisticated edge weighting (considering inverse edge label frequency, participation degree, and edge depth) and scoring functions are key to accurately ranking relevant answers.
  • Usability Over Complexity: The entire system is designed with user-friendliness in mind, prioritizing intuitive input (example tuples) and understandable output (ranked answer tuples).

Key Results

  • Accuracy: GQBE significantly outperforms the state-of-the-art system NESS. On Freebase queries, GQBE achieved roughly twice the accuracy across Precision-at-K (P@k), Mean Average Precision (MAP), and Normalized Discounted Cumulative Gain (nDCG) metrics. User studies also showed a strong positive correlation between GQBE's rankings and human preferences.
  • Efficiency: GQBE is substantially faster than NESS, often more than 3 times faster, and finishes within 10 seconds for most queries. It also evaluates significantly fewer lattice nodes compared to baseline methods.
  • Multi-tuple Queries: Combining multiple query tuples generally improves accuracy, demonstrating the system's ability to capture more complex user intents.

Limitations and Future Work

  • MQG Size: While the MQG is designed to be smaller than the neighborhood graph, it can still be large for complex queries. The paper uses a parameter r to control the MQG size, but finding the optimal r might require tuning.
  • NP-Hardness: Discovering the maximal query graph is NP-hard, so the paper uses a greedy heuristic to find a plausible sub-optimal graph.
  • Future Work: The authors suggest exploring more sophisticated methods for merging MQGs in multi-tuple queries and investigating more advanced query relaxation techniques. They also note that while their system is efficient, further optimizations for extremely large graphs could be beneficial.

Summary updated

BibTeX
@article{jayaram2013querying,
  author = {Nandish Jayaram and Arijit Khan and Chengkai Li and Xifeng Yan and Ramez Elmasri},
  title = {{Querying knowledge Graphs By Example entity tuples}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2013},
  url = {https://openreview.net/forum?id=iCHEXcUjrXm},
}
Figure