I have a dbpedia query and i want to rank my results by using the pageRank algorithm. there is some classes developed in dbpedia dataset specifique to this problem in http://vocab.sti2.at/vrank#paramValue. Now, i want to compute the pageRank of each resource of my result: the fraction of incoming links associated with that resource/ the total number of incoming links for all resource associated. This is my query:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix foaf: <http://xmlns.com/foaf/0.1/>
PREFIX vrank:<http://purl.org/voc/vrank#>
prefix dbo: <http://dbpedia.org/ontology/>
SELECT distinct ?Nom ?resource ?url
WHERE{
?resource rdfs:label ?Nom.
?resource foaf:isPrimaryTopicOf ?url.
?Nom <bif:contains> "Apple".
FILTER ( langMatches( lang(?Nom), "EN" )).
MINUS {?resource dbo:wikiPageRedirects|dbo:wikiPageDisambiguates ?dis}
}
Please help me. Thanks in advance.