javamediawikidbpediaspotlight-dbpedia

Using dbpedia spotlight with a local mediawiki (not instance of wikipedia)


I'm trying to use dbpedia spotlight to spot special terms (which is not included in dbpedia) by using a local mediawiki dump as an input instead of the default index and spotter.dict. Any ideas will be so appreciated


Solution

  • DBpedia Spotlight requires 5(five) files to build the index as follows:

    Format N Triples:

    E.g:

       <YOUR_LINK> <www.w3.org/1999/02/22-rdf-syntax-ns#type> <DBpedia:Type> .
    

    E.g:

       <YOUR_LINK> <www.w3.org/2000/01/rdf-schema#label> "Label"@en .
    

    E.g:

       <YOUR_LINK> <dbpedia.org/ontology/wikiPageRedirects> <YOUR_LINK> .
    

    XML Dump:

    After preparing these files with your own data, "just" follow the internationalization guide available in DBpedia Spotlight wiki to create the index with your own data.

    All the best,