How to add a mapping namespace
How to create a mapping namespace for a new language
As an example, we use a fictitious language with code "xx" and Wikipedia rank 44.
Note: more code changes will be needed for the first language code that contains a dash "-".
1. get language code
get wiki language code and rank from http://s23.org/wikistats/wikipedias_html.php namespace number: multiply the rank by 2 and add 200 talk namespace number: add 1 to the namespace number Example: language code "xx", rank 44, namespace number 288, talk namespace number 289 if 288 is in use, we choose numbers, let’s say 298 and 299 CAUTION: If the calculated namespace number already exists for another language (because the ranking has changed) do NOT change the existing namespace number. Please find a neighboring or close enough number that works. 2. update the extraction framework and server
a) edit core/org.dbpedia.extraction.wikiparser.Namespace
add something like this at the appropriate positions in the code … “xx->288 … b) commit and push the changes to default branch
c) log onto 160.45.137.69
with user name "dbpedia-server" stop the server ps axfu | grep java look for class ...server.Server kill <process id> in the terminal cd /home/dbpedia-server/dbpedia/extraction_framework hg pull hg update mvn clean install --projects core,server cd server
../run server &>server-<YYYY>-<MM>-