QuoteKG: A Multilingual Knowledge Graph of Quotes

Tin Kuculo, Simon Gottschalk, Elena Demidova

Introduction

Quotes are vital for understanding historical figures and political discourse, yet they remain difficult to analyze at scale. Most existing collections are monolingual, unstructured, and lack critical metadata such as dates or specific contexts. Furthermore, the proliferation of misattributed quotes—the "Einstein never said that" phenomenon—complicates historical verification. While knowledge graphs like Wikidata and DBpedia excel at factual data, they contain few structured quotes.

QuoteKG addresses this gap as the first large-scale, multilingual knowledge graph dedicated to quotes. It links nearly one million quotes across 55 languages to over 69,000 public figures, providing a structured resource that preserves context, sentiment, and veracity.

Methodology

The creation of QuoteKG involved a four-stage pipeline designed to transform semi-structured Wikiquote data into a formal knowledge graph.

The four-stage pipeline for QuoteKG creation: Extraction, Identification, Alignment, and RDF Creation.
  1. Extraction of Page Trees: Wikiquote XML dumps were parsed into hierarchical "page trees" to preserve section structures.
  2. Identification and Enrichment: Quotes were identified using language-specific rules. Metadata such as dates and veracity (e.g., "misattributed" labels) were extracted. Sentiment analysis was performed using a multilingual XLM-RoBERTa model.
  3. Cross-lingual Alignment: To group mentions of the same quote across languages (e.g., German "Wir schaffen das" and English "We can do this"), the researchers used language-agnostic transformer embeddings and clustering based on cosine similarity.
  4. RDF Triples Creation: Data was mapped to a custom schema extending schema.org. As shown in the ontology diagram, the system utilizes classes like so:Quotation, qkg:Mention, and qkg:Context to handle translations and situational backgrounds.
The QuoteKG ontology, extending schema.org to model quotations, mentions, context, and sentiment.

Key Innovations

The Context Gap

Unlike traditional "Text-Author" datasets, QuoteKG treats "Context" as a first-class citizen. By capturing when and where a quote was uttered, the graph enables deeper historical analysis. This allows researchers to track how ideas evolve and spread across different situational backgrounds.

Alignment via Embeddings

Traditional translation-based alignment is often brittle. QuoteKG utilizes multilingual transformer embeddings to recognize semantic equivalence across languages, even when translations are non-literal or use different synonyms. This approach achieved a Precision of 1.0 and an F1 score of 0.99 on a manually verified ground truth set.

Results and Scale

QuoteKG currently contains 880,878 quotes and 961,535 mentions from 69,467 persons. While English and Italian are the most represented, the graph covers 55 languages, including lower-resource languages like Welsh. The dataset is fully open under Creative Commons and accessible via a SPARQL endpoint for complex querying.

Conclusion

QuoteKG provides a robust tool for fact-checkers and researchers to trace the origins of ideas and verify the authenticity of famous remarks. While limited by the inherent biases and template complexities of Wikiquote, future work aims for bi-annual updates and the integration of QuoteKG into digital humanities projects to enrich biographical timelines.

Summary updated

BibTeX
@inproceedings{kuculo2022quotekg,
  author = {Tin Kuculo and Simon Gottschalk and Elena Demidova},
  title = {{QuoteKG: A Multilingual Knowledge Graph of Quotes}},
  booktitle = {ESWC},
  year = {2022},
  doi = {10.1007/978-3-031-06981-9\_21},
}
Figure