GraphDB-SE RDF Rank

Version 1 by barry.bishop
on Mar 15, 2012 14:31.

compared with
Current by reneta.popova
on Aug 26, 2014 18:00.

This line was removed.
This word was removed. This word was added.
This line was added.

Changes (6)

View Page History
h1. Introduction

RDF Rank is an algorithm that algorithm, which identifies the more important or more popular entities in the repository by examining their interconnectedness. The popularity of entities can then be used to order query results in a similar way to the internet search engines, such as how Google orders search results using PageRank [].
The RDF Rank component computes a numerical weighting for all the nodes in the entire RDF graph stored in the repository, including URIs, blank nodes and literals. The weights are floating point numbers with values between 0 and 1 that can be interpreted as a measure of a node's relevance/popularity.
Since the values range from 0 to 1, the weights can be used for sorting a result set (the lexicographical order works fine even if the rank literals are interpreted as plain strings). Here is an example SPARQL query that uses RDF rank for sorting results by their popularity:

As seen in the example query, RDF Rank weights are made available via a special system predicate. Triple patterns with the predicate {{[]}} are handled specially by OWLIM, GraphDB, where the object of the statement pattern is bound to a literal containing the RDF Rank of the subject.
In order to use this mechanism the RDF ranks for the whole repository must be computed in advance. This is done by committing a series of SPARQL updates that use special vocabulary to parameterise the weighting algorithm, followed by an update that triggers the computation itself.


will compute computes RDF Rank values for those resources that resources, which do not have an associated value, i.e. those that have been added to the repository since the last full RDF Rank computation.

The incremental computation uses a different algorithm that algorithm, which is lightweight (in order to be fast), but is not as accurate as the proper ranking algorithm. As a result of this, ranks assigned by the proper and the lightweight algorithms will diverge slightly from each other.


If the export failed fails then the update will throw throws an exception and an error message will be recorded in the log file.

Lastly, when using [RDF Priming|OWLIM-SE Priming|GraphDB-SE Experimental Features#RDF Priming], the RDF Rank values can be used as the initial activation values. To set this up, use the following update: