- Introduced by
- Hogan et al. and the broader knowledge graph community
- Year
- 2010s–present
- Type
- Network analysis variant
- Family
- Network science
What does it do?
Weighted knowledge graph analysis applies network metrics and path methods to knowledge graphs whose edges carry numerical weights, such as confidence scores, extraction probabilities, co-occurrence frequencies or relation strengths.
The weights let the analysis distinguish a well-supported relation from a doubtful one, which an unweighted graph cannot do. The approach is used for weighted centrality, ranking of multi-hop paths and link prediction over typed triples.
The intuition behind the method
A standard knowledge graph records each triple as a fact without grading it. Many real knowledge bases do not treat their triples equally: some are extracted with low confidence, some are supported by many sources, and some relations matter more to a domain than others. Attaching a weight to each edge makes derived quantities depend on these differences. Degree becomes a sum of weights rather than a count, and a path's score reflects the strength of its links rather than only its length. The rule used to combine weights along a path, such as the product or the minimum, is a modelling choice and should be stated explicitly, because it determines which paths rank highest.
History
Knowledge graphs have attracted substantial attention from industry and academia in recent years, particularly for scenarios that draw on large, dynamic and diverse collections of data (Hogan et al., 2021). That survey covers graph-based data models, query and validation languages, and the deductive and inductive techniques used to represent and extract knowledge. It does not address weighted analysis specifically, so weighted variants should be understood as developments within the knowledge graph and network science communities rather than as a method with a single identified originator. Knowledge graph embedding models such as TransE and RotatE score triples by distance, a quantity that can be read as a weight-like plausibility score, which connects embedding methods to weighted analysis.
When to use it
Choose this approach when the knowledge base stores meaningful, varying confidence or frequency information for its triples, which a binary graph discards. Typical cases are probabilistic knowledge bases, biomedical graphs with interaction confidence, and text-mined graphs where each triple has a confidence score. It fits tasks that rank entity importance, rank multi-hop reasoning paths, or supply a link-prediction or question-answering pipeline. Do not use it when every triple is equally reliable, as in a standard ontology whose asserted facts are all taken as true, or when the weights are arbitrary or unvalidated. Small graphs also yield unstable weighted metrics. No validated minimum size exists, so for small graphs the stability of the rankings should be checked before they are relied on. In such cases unweighted knowledge graph analysis or ontology reasoning may be the more defensible choice.
Limitations and considerations
- Every derived metric inherits the errors of its weights, so noisy extraction scores propagate into centrality and path rankings.
- Weights from different relation types are not on a common scale without per-type normalisation, which makes cross-relation and cross-graph comparison difficult.
- Exact weighted betweenness is computationally heavier than its unweighted counterpart on large graphs, and shortest-path algorithms require weights to be converted into costs first.
- Composite path scores built from products or minima of several weights can be hard for domain experts to interpret, and rankings may change substantially with the choice of combination rule.
- Where weights must be imputed or invented, the resulting rankings have no evidential basis.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Carries extraction or annotation confidence into centrality and path scores, so a well-supported edge contributes more than a doubtful one.
- Produces ranked multi-hop paths under an explicit scoring rule, so each ranking can be traced back to the edge weights that produced it.
- Suits probabilistic and text-mined graphs whose triples differ widely in reliability.
- Weighted triples can be used directly by embedding-based link-prediction models that score candidate triples.
- Sparse weight matrices and approximate algorithms such as power-iteration PageRank keep large graphs tractable.
Applications
- Biomedical knowledge graphs: ranking drug–target–disease paths by interaction confidence for drug repurposing.
- Scientific literature graphs: identifying high-impact entities via weighted citation and co-authorship edges.
- Question answering: selecting the most confident multi-hop reasoning path between a question entity and a candidate answer.
- Recommender systems: propagating user–item preference weights through a product knowledge graph.
- Fraud detection: tracing high-confidence suspicious relation chains in financial entity graphs.
- Ontology refinement: identifying low-confidence triples for human expert review and curation.
How it works
How it works
The graph is assembled as a set of typed triples (subject, predicate, object), forming a directed multigraph. Nodes represent entities such as persons, concepts or publications, and edges represent typed relations such as authorOf, cites or partOf. The triples may come from structured sources such as Wikidata or domain ontologies, or be extracted from text by information extraction pipelines. Two entities can be linked by more than one relation, so parallel edges are possible.
Each edge receives a scalar weight that reflects confidence, frequency, semantic similarity or empirical co-occurrence. Common sources are confidence scores stored by probabilistic knowledge bases, frequency counts from text corpora, and distances from embedding models such as TransE or RotatE. Weights are often normalised to [0, 1] within each relation type so that different relations can be compared. Per-relation normalisation is one common choice rather than a fixed standard, and the choice should be reported. Raw embedding distances are not bounded to that range and need an explicit transformation before they can be used as weights. Two examples are min-max scaling over the distances of a relation and a decreasing function such as exp(-d). Whichever transformation is used should be stated and tested for sensitivity.
Weighted network metrics are then computed. Weighted degree sums the incoming and outgoing edge weights at each node. Weighted betweenness centrality counts the weighted shortest paths that pass through a node. Standard shortest-path algorithms minimise summed values, so confidence-type weights must first be converted into costs. A decreasing function of confidence, such as one minus the weight or its negative logarithm, is one option; without such a conversion the most confident paths would be treated as the least preferred. Weighted PageRank scores each node by the weights and ranks of its incoming links.
Paths between entity pairs are enumerated or sampled, and each path is scored with an explicit combination rule. The two common choices are the product of its edge weights, which tends to decrease as links are added, and the minimum of its edge weights, which scores a path by its weakest link. The chosen rule determines which paths rank highest and should be reported with the results. This yields multi-hop reasoning chains, such as a drug linked to a disease through intermediate molecular targets, ranked by evidence rather than by hop count alone.
Weighted structure feeds downstream tasks. Link-prediction models rank candidate missing triples by learned scores, relation-extraction outputs can be filtered by a confidence threshold, and embedding methods such as TransE and RotatE treat distances between embeddings as a measure of plausibility. The output is a partially completed graph with ranked, uncertain candidate triples. The ranking is only as reliable as the weights it depends on.
Common pitfalls
- Treating extracted confidence scores as calibrated probabilities, although they are often uncalibrated model outputs. Calibration can be checked with a reliability diagram against a labelled subset of triples. Until calibration has been checked, scores should be used as relative rankings rather than as probabilities.
- Combining weights from incompatible relation types without per-type normalisation, which yields composite scores with no clear meaning.
- Ignoring edge direction when computing weighted metrics on a directed knowledge graph.
- Passing confidence weights directly to shortest-path algorithms, which minimise summed values, so the most confident paths are ranked as the least preferred.
- Reporting weighted PageRank or centrality rankings as ground-truth importance without checking them against domain benchmarks.
Frequently asked questions
What kinds of weights are commonly used in knowledge graphs?
The most common are confidence scores from probabilistic extraction pipelines, usually between 0 and 1; scores from embedding models, which reflect geometric proximity and may need transformation before use; co-occurrence frequencies, often normalised by corpus size; and relation strengths or interaction scores published by curated biomedical resources, such as the interaction confidence scores provided by STRING.
How does weighted knowledge graph analysis differ from standard knowledge graph analysis?
Standard analysis treats every stated triple as equally true and uses binary adjacency. Weighted analysis combines edge weights when computing centrality, path scores and community structure, so high-confidence or high-frequency edges contribute more to the results. Shortest-path based measures need weights converted into costs first.
Can I apply weighted KG analysis to a plain RDF ontology?
Technically yes, but most OWL/RDF ontologies assert facts without confidence scores, so all weights would equal 1 and the analysis reduces to its unweighted form. Weighted methods add value only where meaningful variation in edge weights exists.
Which software libraries support weighted knowledge graph analysis?
Libraries such as NetworkX for weighted graph metrics, PyKEEN and AmpliGraph for embedding models that score triples, Neo4j Graph Data Science for graph algorithms at scale, and RDFLib for smaller annotated graphs are examples. Their documented capabilities and the weight semantics they assume (cost or strength) should be checked before results are compared.
How large does a knowledge graph need to be for weighted metrics to be reliable?
No validated threshold exists. Weighted metrics are unstable on very small graphs, so a few hundred triples or more with genuine weight variation is a rough practical lower bound rather than an established cut-off.
Related methods
Sources
Hogan, A., Blomqvist, E., Cochez, M., d'Amato, C., Melo, G., Gutierrez, C., Kirrane, S., Gayo, J. E. L., Navigli, R., Neumaier, S., Ngomo, A. N., Polleres, A., Rashid, S. M., Rula, A., Schmelzeisen, L., Sequeda, J., Staab, S., & Zimmermann, A. (2021). Knowledge Graphs. ACM Computing Surveys, 54(4), 1–37.
Open DOI referenceWang, Q., Zhang, F., Liu, Z., & Sun, M. (2017). Knowledge Graph Embedding by Translating on Hyperplanes. In Proceedings of the AAAI Conference on Artificial Intelligence, 28(1).
Open publication reference