Hi Gafur,
On 12/03/2012 09:35 PM, [email protected] wrote:
Hi,
is it possible (in a appropriate way, i'm not familiar with wikipedia
extraction (framework)) or what is the easiest way for getting the amount of
each link which is linking from one to another DBPedia instance. In the
Wikipedia Pagelinks dump you have only the information, that one DBPedia
instance is linking to another DBPedia instance, but the cardinality is missing
for me, i like to know how many times one DBPedia instance is linking to
another DBPedia instance.
The English pagelinks dump [1] is not loaded into the official DBpedia
endpoint [2], as it's quite large.
So, I would suggest that you establish your endpoint, i.e. download the
DBpedia dumps and load them into a Virtuoso [3] instance installed on
one of your own machines, and perform your queries against it instead.
Do you know a easy way for this?
And then you can use the following SPARQL query to get the required
information:
select ?s, count(?o) as ?numOfLinks where {?s
dbpedia-owl:wikiPageWikiLink ?o. }
group by ?s
limit 10
But please take care that the former query will talk a lot of time, so
it's way better if you use it in conjunction with a specific resource.
So, if you are looking for the number of links of resource "Paris" for
example, you should use the following query instead:
select count(?o) as ?numOfLinks where {dbpedia:Paris
dbpedia-owl:wikiPageWikiLink ?o. }
best regards and thank you for replies!
Gafur
Hope that helps.
[1] http://downloads.dbpedia.org/3.8/en/page_links_en.nt.bz2
[2] http://dbpedia.org/sparql
[3] http://virtuoso.openlinksw.com/
--
Kind Regards
Mohamed Morsey
Department of Computer Science
University of Leipzig
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion