So in wikidata dump you will find mappings between sitelinks and QIDs.
A sitelink it is a wikipedia link . for example:
http://en.wikipedia.org/wiki/Obama.
That particular example redirects to another sitelink:
http://en.wikipedia.org/wiki/Barack_Obama (this is the canonical for this
topics/entity)
The mapping from wikipedia sitelinks to QIDs you get on wikidata does not
assure canonical sitelink.
So you can have a mapping telling you that Q123 is linked to "Obama".
However Spotlight would in principle never return "Obama" but its canonical
identifier "Barack_Obama"
On Sun, Feb 21, 2016 at 12:42 PM, Patrick Skjennum <[email protected]> wrote:
> Thanks for the swift reply!
>
> What do you mean by resolving redirects? Atm I'm using whatever's after
> the slash as dbpedia ID. Is this incorrect? I.e.
> http://dbpedia.org/resource/Bridgeport,_Connecticut -->
> Bridgeport,_Connecticut
>
> --
> mvh
> Patrick Skjennum
>
> On 21.02.2016 13.10, David Przybilla wrote:
>
> Hi Patrick,
>
> Best approach is to use Wikidata's dumps.
>
> - Wikidata to dbpediaIDs: You can use rdf exports( like [1]). This include
> a mapping from wikipedia titles in different languages to QIDs. Be aware
> that you might want to resolve redirects since dbpedia spotlight in
> principle only returns canonical dbpediaIDs.
>
> - Freebase: Probably wikidata sitelinks dump (or other dump file)
> contains the mapping QID - MID. But also check dbpedia downloads page,
> they already provide a dbpeida - mid mapping
>
>
> [1]
> http://tools.wmflabs.org/wikidata-exports/rdf/index.php?content=dump_download.php&dump=20160201
>
> [2] http://dbpedia.org/dbpedia-data-set-2015-04
>
> On Sun, Feb 21, 2016 at 11:49 AM, Patrick Skjennum < <[email protected]>
> [email protected]> wrote:
>
>> Hello.
>>
>> I'm using DBpedia spotlight to annotate text (using the REST framework
>> and a local instance of dbpedia spotlight), but the framework only gives
>> me dbpedia ID's. What I really want is Wikidata ID's. I've been
>> experimenting with Sparql queries and I'm able to fetch Wikidata ID's
>> one at the time, however this is too slow when I need millions.
>>
>> I potentially also want to achieve the same for Freebase ID's.
>>
>> What is the best way to proceed?
>>
>> --
>> mvh
>> Patrick Skjennum
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> Dbp-spotlight-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users
>>
>
>
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Dbp-spotlight-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbp-spotlight-users