DBpedia redirect uri substitution

From W3C Wiki

DBpedia redirect URI substitution

Many URIs in DBpedia only lead to redirects pointing to other resources. In most cases, we do not want to use those URIs. How can we automatically find the URIs that we want?

Example:


SELECT ?preferred_uri
WHERE {
<http://dbpedia.org/resource/GABA_B_receptor> <http://dbpedia.org/property/redirect> ?preferred_uri . }


DBpedia offers a file that contains all redirect statements on its download page (over 400 MB):

http://downloads.dbpedia.org/3.2/en/redirect_en.nt.bz2

Note that according to http://www.heppnetz.de/harvesting-wikipedia/ semantic differences for around 22% between redirect source and redirect target cannot be excluded.