Select Page

Table Entity Reconciliation Over Knowledge Graphs: Experimental Results

How our new unsupervised reconciliation method compares with supervised, neural, and commercial matchers on two benchmarks.

Main Takeaways

  • Outperforming Heavier Neural Models on Heterogeneous Data: On a 2,000-table heterogeneous Wikidata benchmark (33,105 rows), the lightweight Normalized Gated Reciprocal Rank Fusion (Normalized Gated-RRF) achieved an F1 score of 0.8945. That is +4.72 F1 points over a GPU-based BGE/Gemma-2 cross-encoder (0.8473) and +4.74 points over the commercial model JEV (0.8471). It needs no model training, only a decision threshold calibrated on 4 labeled rows per table.
  • Type-Aware Field Alignment: Treating rows as structured records, with a similarity function for each data type (text, numeric, date, coordinates), gives reconciliation evidence that is strong and fully interpretable. Rows that carry date evidence are reconciled with a 2.48% error rate, compared with 9.07% for rows with text-only evidence.
  • No GPU, No API Fees: By combining GraphDB, Elasticsearch, and schema-aware similarity functions, reconciliation runs on standard CPUs, without training pipelines or per-call API costs.  

Extending an existing RDF knowledge graph with data from a tabular source involves a matching problem that is easy to overlook. Some of the entities in the table are already in the graph, so importing the table as it is creates duplicates. To avoid this, the rows are first matched against the graph, and new entities are created only for rows without a match. This matching step is called reconciliation.

The task is not trivial. When the table and the knowledge graph share identifiers, it is a simple lookup. When they don’t, it quickly becomes difficult. The evidence for a match is then spread over several columns (names, places, numbers, and dates) and the values seldom agree exactly with what the knowledge graph holds. The overlap between the table and the graph is also often partial, so for some rows the correct answer is that there is no match (NIL).

Our starting point

The experiments here are built on the US Banks reconciliation use case, a typical example of the problem. Its table lists 847 US national banks, each with a name, a city, and a state.

Matching evidence comes in three kinds, each with a different level of ambiguity:

  • Shared identifiers are unambiguous. However, they usually cover only part of the data.
  • Identical labels are ambiguous. In the bank table used below, 18 rows are named “First National Bank” and only the city and state tell them apart.
  • Similar labels are ambiguous, too. The table and the knowledge graph often hold different surface forms of the same name, such as Univ. of Oxford and University of Oxford, or Munich and München. Matching them needs a string similarity measure on top of the context.

In a generic setting, a perfect result requires a human to supervise the matching, so the goal is to leave that person with as little work as possible. Graphwise Reconciliation supports this workflow. It serves ranked candidate entities through the Reconciliation Service API. A person reviews them in a tool such as OpenRefine and confirms the matches. In the use case, the reviewer reconciles the cities first, using the state as context, and then the banks, using the reconciled city as context.

We are now improving the matcher behind this process so that the reviewer gets better candidates. The experiments reported here measure how well the matcher decides on its own, without review.

The reconciliation task

Without a reviewer, the matcher has to make the final call for every row. We call this task table entity reconciliation: linking each row of a table to the entity it describes in the knowledge graph or returning NIL when the graph holds no such entity. It is a close relative of entity linking, applied to table rows instead of text.

The output for each row is a single entity or NIL, not a ranked list. Identifier columns are not used as evidence, so the results reflect matching by labels and context only.

Two properties of the task shape the method and the evaluation:

  • Open set. Some rows describe entities that are not in the knowledge graph. The system has to return NIL for them and NIL decisions are scored alongside link decisions. NIL rows make up 28.34% and 31.18% of the two benchmarks used below.
  • Typed values. Columns hold strings, but also numbers and dates, which have to be compared as values. Under edit distance, 999 is farther from 1000 (4 edits) than 2000 is (1 edit) and 1,209 does not equal 1209.

Approach and main results

In the rest of the post, we describe the retrieval pipeline and Normalized Gated Reciprocal Rank Fusion (Normalized Gated-RRF) — a scoring method that needs no model training. We then compare it with supervised classifiers, a cross-encoder reranker, and a commercial model on two benchmarks.

The main results are:

  • National Banks (one table, 847 rows, fixed schema). The four reported methods score between 0.9587 and 0.9838 F1. Supervised XGBoost is highest and Gated-RRF is lowest.
  • SemTab-Wikidata (2,000 tables, 33,105 rows, 394 knowledge graph properties). With a threshold calibrated on 4 labeled rows per table, Normalized Gated-RRF reaches 0.8945 F1, against 0.8473 for a BGE/Gemma-2 cross-encoder reranker and 0.8471 for the commercial model JEV 1.13.0. With one global threshold applied to unseen tables, Normalized Gated-RRF reaches 0.8654 and the reranker 0.8324.
  • Error analysis on SemTab-Wikidata. JEV misses fewer matches and selects fewer wrong entities than Normalized Gated-RRF, but links 2,930 rows that should be NIL, against 1,028.

Pipeline

The pipeline uses GraphDB for graph storage and SPARQL access, Elasticsearch for lexical and vector indexing, and the Graphwise Transformer service for embeddings. It runs in two phases: indexing and query.

Indexing and query pipeline: GraphDB, the Elasticsearch connector and the Graphwise Transformer at indexing time; two SPARQL retrievals, RRF, enrichment and Normalized Gated-RRF at query time

Indexing (once per knowledge graph)

After the knowledge graph is loaded into GraphDB, indexing takes three steps:

  1. Schema mapping. A declarative mapping assigns each table column to an RDF predicate or a multi-hop property path in the target ontology. In the National Banks setup, CITY maps to schema:containedInPlace / gn:name and STATE to schema:containedInPlace / gn:parentADM1 / gn:name. With these paths, the city and state are compared as attributes of the bank candidate, so no separate pass over places is needed.
  2. Connector creation. The reconciliation algorithm uses the schema mapping to create an Elasticsearch connector in GraphDB.
  3. Document transformation and embeddings. The connector turns each entity into an Elasticsearch document. The document holds its literal text attributes (labels, aliases, and secondary attributes) and a dense entity embedding produced by the Graphwise Transformer gRPC service with a multilingual MiniLM model. Elasticsearch indexes the documents for hybrid lookup.

Query (per table row)

Each row is resolved in four steps:

  1. Dual retrieval. Two SPARQL queries go to GraphDB through the Elasticsearch connector: a BM25 lexical search over the text fields and a kNN vector similarity search over the row embedding.
  2. Reciprocal Rank Fusion. The two ranked lists are merged into one, keeping the top-K candidates (K ≤ 64).
  3. Enrichment. For each candidate, the mapped knowledge graph properties (label, city, state, founding date, and so on) are fetched from GraphDB with SPARQL.
  4. Alignment and acceptance. Each candidate is compared with the row column by column, using type-specific similarity functions. Normalized Gated-RRF selects one candidate and compares its confidence with an acceptance threshold τ. The row is then either linked to the entity URI or marked NIL.

Field matching

In step 4, only the populated cells of the row are compared, each with the matching attribute of the candidate. The similarity function for each cell depends on its data type.

Field matching example: name, city, founding year and coordinates compared between a table row and a candidate entity, with per-field scores and the aggregate G

Illustrative example. The name score depends on the embedding model; the other three follow directly from the formulas below.

Similarity functions by type

  • Text fields combine semantic and lexical views and keep the strongest:
s_text = max(s_dense, s_BM25, s_tri, s_DL)

where sdense is the cosine similarity of multilingual MiniLM embeddings, sBM25 is a BM25 score normalized to [0,1], stri is the character-trigram Jaccard overlap, and sDL is the normalized Damerau-Levenshtein similarity, which tolerates typos and swapped characters. To avoid rewarding accidental overlap, sDL counts only when both strings have at least 5 characters and the similarity is at least 0.70.

  • Numeric fields compare relative magnitude. Formatting such as thousands separators and currency symbols is normalized first and trailing unit labels are stripped. Units are not converted, so 12.4 km and 12400 m are not treated as equal:
s_num = clip(1 − |a − b| / max(|a|, |b|, 1), 0, 1)
  • Date fields measure calendar proximity from the distance in days, so two dates one year apart score 0.5:
s_date = 1 / (1 + Δdays / 365.2425)
  • Coordinate fields compute the distance dkm between latitude/longitude pairs with the Haversine formula and map it to a similarity value so that an error of 100 km scores 0.5:
s_coord = 1 / (1 + d_km / 100)

When a value can be confidently parsed as a number, date, or coordinate, only the typed metric is used, so a strong text match cannot override a contradictory value. Values that cannot be parsed fall back to the text rule. If the knowledge graph holds several values for a property, the best-matching one is used.

Aggregate agreement

To measure how well a candidate c matches a row x, the field similarities are squared and averaged across the fields A(x) that are filled in the row:

G(x, c) = 1/|A(x)| × sum over j in A(x) of s_j(x, c) squared

Squaring keeps strong matches strong and penalizes mediocre ones. Empty cells in the row are ignored, because they carry no evidence. If the row has a value but the candidate has none, the field stays in the average and pulls G down; for typed fields, its similarity is 0.

Normalized Gated-RRF

Normalized Gated-RRF re-scores the retrieved candidates using two signals: retrieval rank, which indicates that a candidate is broadly plausible, and aggregate agreement (G), which checks the candidate against all populated attributes of the row. It works in two stages. The first selects the candidate that best fits the row. The second decides whether to accept that candidate or return NIL.

No model is trained. The only value fitted to data is the acceptance threshold τ. The scoring functions are deterministic and every score can be traced back to individual cell-property comparisons.

Two stages: select the best candidate with G × RRF, then accept it or return NIL with C = E × R_N

Stage 1: candidate selection

To select the strongest candidate, the algorithm re-ranks the retrieval pool by gating each candidate’s retrieval score with its aggregate agreement G(x,c):

Score(c) = G(x, c) × RRF(c)
c* = argmax over c of G(x, c) × RRF(c)

where

RRF(c) = sum over m in {BM25, kNN} of 1[c in L_m] / (60 + rank_m(c))

Lm is the ranked list returned by retrieval method m and rankm(c) is the 1-based position of c in that list. A candidate found by only one method gets a contribution from that method alone.

  • Retrieval support (RRF) reflects the candidate’s combined standing in lexical (BM25) and semantic (kNN) search.
  • Aggregate agreement (G) measures how well the candidate’s structured properties match the row’s cells across text, numeric, date, and coordinate fields.

Because the two are multiplied, aggregate agreement acts as a gate. A candidate that ranked high in search only because of an overlapping label is pushed down if its other attributes (such as city, state, or founding date) conflict with the row. The candidate with the highest combined evidence becomes the winner c*.

Stage 2: candidate acceptance

Once the winner c* is selected, the method computes a separate confidence score to decide whether to accept it:

Confidence(c*) = E(x, c*) × R_N(c*)

The two terms are defined as follows.

Normalized retrieval support: RN(c*)

Because candidates come from two search channels (BM25 and kNN), the highest possible RRF score occurs when an entity ranks first in both lists:

RRF_max = 1/(60 + 1) + 1/(60 + 1) = 2/61 ≈ 0.0328

We use RRFmax to rescale the RRF score to [0,1]:

R_N(c*) = RRF(c*) / RRF_max

Conservative evidence: E(x,c*)

For acceptance, the primary entity label (the field mapped to the entity’s name, denoted subj) is scored more strictly than in G. Instead of taking the best of the semantic and lexical views, E requires them to corroborate each other:

s_subj^E = ½ s_dense + ½ max((s_BM25 + s_tri)/2, s_DL)

All other fields keep the similarity sj used in G, and the result is squared and averaged in the same way:

E(x, c*) = 1/|A(x)| × sum over j in A(x) of s_j^E(x, c*) squared, where s_j^E is s_subj^E for the subject field and s_j otherwise

Here the dense similarity is clipped to [0,1], so a negative cosine contributes nothing.

Decision rule

The final decision compares Confidence(c*) with a calibrated threshold τ:

  • If Confidence(c*) ≥ τ, candidate c* is accepted and linked.
  • If Confidence(c*) < τ, the row is marked NIL (an entity not present in the graph).

Calibration

The threshold τ is calibrated on a small, balanced sample of labeled rows (in our per-table experiments, 2 known and 2 NIL rows per table). It is set at the midpoint between the mean confidence of the known rows and that of the NIL rows:

τ = ½ (mean confidence of known rows + mean confidence of NIL rows)

where si and sj are the top-candidate confidence scores of the labeled known and NIL calibration rows. If a calibration sample contains only known rows, τ falls back to 95% of the lowest known score. If it contains only NIL rows, τ falls back to 105% of the highest NIL score.

Experimental setup

Datasets

  • National Banks. A single-schema dataset of 847 historical US bank records, 28.34% of them NIL, evaluated against 47,416 knowledge graph place entities. The evidence is bank name, city, and state.
  • SemTab-Wikidata. A heterogeneous benchmark built from the SemTab 2024 Wikidata tables and a locally processed Wikidata truthy dump (2024-03-20). For each table, we built a table-local knowledge graph and removed the gold entities of NIL rows from it. The benchmark covers 2,000 distinct tables, 33,105 rows, 394 unique knowledge graph properties, and 1.13 million table-local entities. Over 70% of the tables contain structured numbers or dates. The overall NIL rate is 31.18%.

Neither benchmark contains coordinate columns, so these results do not test coordinate matching.

Methods compared

  • Supervised feature classifiers: Logistic Regression, KNN, SVM, MLP, TabPFN, and XGBoost, trained on candidate feature vectors. Because they need a training split, we ran them on National Banks only.
  • Neural reranker: a pairwise cross-encoder that scores the serialized row against each enriched candidate. On SemTab-Wikidata, we used BAAI/bge-reranker-v2.5-gemma2-lightweight with FP16 and FlashAttention-2 on a GPU.
  • JEV 1.13.0: a commercial model that scores all candidates jointly, together with an explicit NONE option.
  • Normalized Gated-RRF: the method described above.

Metrics

Precision and recall describe link decisions. Precision is the share of accepted links that point to the correct entity. Recall is the share of rows with a correct entity in the graph that the method did not wrongly send to NIL.

To weight NIL decisions equally with link decisions, the reported F1 is the average of two F1 scores: one for “link” decisions and one for “NIL” decisions. As a result, F1 is lower than the harmonic mean of the precision and recall shown, which describe linking only.

Calibration rows are excluded from evaluation. Where reported, ± is the standard deviation across repeated random calibration splits.

Results

National Banks (single schema, 847 rows)

On this single-schema dataset, the supervised classifier has the highest F1, followed by the neural reranker, JEV, and Gated-RRF.

MethodTraining?Calibration rowsPrecisionRecallF1
XGBoost (best supervised)YesFull train split0.99610.98520.9838 ± 0.0028
Neural reranker (ONNX) ¹No14 rows0.97980.99210.9742 ± 0.0124
JEV 1.13.0No8 rows0.97010.99670.9690 ± 0.0073
Normalized Gated-RRF ²No16 rows0.98000.97340.9587 ± 0.0251

¹ An earlier ONNX cross-encoder, not the BGE-Gemma reranker used on SemTab-Wikidata.

² Figures from the plain Gated-RRF run; the normalized variant differs by at most 0.001 F1 on this dataset.

Normalized Gated-RRF runs on commodity CPUs. In our National Banks experiments, it was roughly an order of magnitude faster than the neural reranker.

SemTab-Wikidata (2,000 heterogeneous tables, 33,105 rows)

The 2,000 tables cover astronomy, people, institutions, infrastructure, and culture. On this benchmark, Normalized Gated-RRF has the highest F1.

MethodCandidatesCalibration rowsPrecisionRecallF1
Normalized Gated-RRFup to 644 per table0.94230.94680.8945
BGE-Gemma Rerankerup to 1616 per table0.91810.91140.8473 (−4.72 pts)
JEV 1.13.0up to 644 per table0.89550.96460.8471 (−4.74 pts)

The reranker was capped at 16 candidates to keep cross-encoder inference manageable. Retrieval recall on the known rows is 98.50% at 16 candidates and 99.66% at 64, so the reranker starts from a slightly lower ceiling.

We also calibrated one global threshold on held-out tables and applied it to unseen tables (50 calibration tables, 10 random splits). In this harder setting, Normalized Gated-RRF reaches 0.8654 ± 0.0013 F1, against 0.8324 ± 0.0008 for the BGE-Gemma reranker.

SemTab-Wikidata F1 for per-table and global calibration; the y-axis starts at 0.80

Error analysis on SemTab-Wikidata

We broke down the errors of Normalized Gated-RRF and JEV 1.13.0 on the evaluated SemTab-Wikidata rows. They fall into three categories:

  • Should be NIL (false positive): the row had no entity in the knowledge graph, but the method linked it anyway.
  • Missed match (false negative): a correct entity existed, but the method predicted NIL.
  • Wrong entity (false positive): a correct entity existed, but the method linked a different candidate.
Error typeNormalized Gated-RRFJEV 1.13.0
Should be NIL1,0282,930
Missed match1,073612
Wrong entity405295
Total2,5063,837
Error counts on SemTab-Wikidata by category for Normalized Gated-RRF and JEV 1.13.0
  • JEV finds the correct entity more often. It has 43% fewer missed matches (612 against 1,073) and 27% fewer wrong-entity selections (295 against 405).
  • JEV also accepts more candidates on NIL rows. It linked 2,930 rows that should have been NIL, compared with 1,028 for Normalized Gated-RRF, an increase of 185%.

JEV’s additional false links on NIL rows (1,902) outnumber the errors it avoids on rows with a correct entity (571). This is consistent with its lower precision (0.8955 against 0.9423) and higher recall (0.9646 against 0.9468) in the results table.

For Normalized Gated-RRF, the error rate also depends on the evidence available in the row. Rows whose populated cells are all text have an error rate of 9.07% (1,201 of 13,243 rows). Rows with a populated date cell have an error rate of 2.48% (48 of 1,938 rows).

Conclusions and future work

Taken together, the two benchmarks show where a training-free method holds up and where it falls behind:

  • Single table with a fixed schema. On National Banks, the supervised classifier, the neural reranker, and JEV all score higher than Gated-RRF. The four methods are within 0.025 F1 of each other and Gated-RRF has the largest standard deviation across calibration splits (± 0.0251).
  • Heterogeneous tables. On the 2,000 SemTab-Wikidata tables, Normalized Gated-RRF has the highest F1 with per-table calibration (0.8945, against 0.8473 for the reranker and 0.8471 for JEV). With a single global threshold, it stays ahead of the reranker (0.8654 against 0.8324).
  • NIL rows. On SemTab-Wikidata tables, the difference between Normalized Gated-RRF and JEV comes from NIL rows. JEV links rows with a correct entity more reliably, but it accepts almost three times as many rows that should be NIL.
  • Date evidence. Normalized Gated-RRF has a lower error rate on rows with date evidence (2.48%) than on text-only rows (9.07%).
  • Practical advantages. Normalized Gated-RRF needs no training, is deterministic for a fixed index, can be traced down to individual field contributions, runs on CPU, and requires no external API.

The results have limits. Neither benchmark tests coordinate matching. The National Banks comparison uses an earlier ONNX reranker and the plain Gated-RRF variant, so its figures are not directly comparable with the SemTab-Wikidata ones. On SemTab-Wikidata, the reranker had 16 candidates and 16 calibration rows per table, against 64 and 4 for Normalized Gated-RRF. Each SemTab-Wikidata table was reconciled against its own table-local knowledge graph, which is a smaller candidate space than a full Wikidata index.

Based on these encouraging results, we are building the next version of Graphwise Reconciliation for GraphDB. Version 2.0 will implement the algorithms and findings from these experiments. It will provide reconciliation over any knowledge graph and expose it through the Reconciliation Service API (versions 0.2 and 1.0-draft) and as a Model Context Protocol server.

Stay tuned for a future release of GraphDB, which will feature support for Graphwise Reconciliation 2.0.

In the meantime, you can check out our Graphwise Sandbox.

FAQ

Any Questions? Look Here

Data reconciliation in a knowledge graph compares information from different sources and aligns it with trusted concepts, identifiers, and relationships. It checks consistency and can reveal conflicts. Entity resolution is narrower. It determines whether records or mentions refer to the same real-world entity, such as a company or person. Entity resolution may support reconciliation, but reconciliation also covers broader Data alignment and consistency.

OpenRefine sends cell text, optional types, and extra properties to a reconciliation service. The service returns ranked entity candidates, which you review and approve. Yes, you can connect your own knowledge graph by exposing a web service that follows the Reconciliation API. OpenRefine then stores the selected entity identifiers alongside the original values.

Detect NIL cases when no candidate meets the confidence threshold. Do not force an incorrect link. Assign a temporary NIL identifier and retain the mention and context. Cluster repeated NIL mentions when appropriate. Log them for review. Add confirmed entities to the knowledge base later. This preserves precision while supporting continuous knowledge-base improvement.

SemTab is a challenge for matching tabular data with knowledge graphs. It enables fair comparison and reproducible evaluation of annotation systems. Its benchmarks measure accuracy on tasks such as assigning column types, linking cells or rows to entities, identifying table properties, and detecting table topics. Common metrics include precision, recall, and F1 score.