configuration - dbpedia/dbpedia-vad-i18n GitHub Wiki

The DBpedia VAD contains a lot of hardcoded variables, we should modify them to be configurable but in the mean time this is a short guide on how you can modify those variables to suit your needs.

  1. Follow the compile guide from http://dbpv.wordpress.com/2013/07/23/building-the-dbpedia-virtuoso-plugin/ (after you compiled it once, you can change the files and then run make again, it will take a lot less time since it will only compile the changed files) NOTE! Use the develop/6 branch, since the stable/6 branch does not work well: git clone -b develop/6 https://github.com/openlink/virtuoso-opensource.git virtuoso6

  2. In case you are not running Virtuoso on port 80 or on a different domain from the one your DBpedia endpoint is sitting on, the DBpedia VAD will display that ip, domain name and port in the within Data Space entry. For example let's say you have virtuoso running on a local machine withing your network with the ip: 192.168.1.2, and you are proxying it via apache, you will get the following message on each resource page "within Data Space: 192.168.1.2:8890" . In order to avoid this you need to make following changes: `

  • go into the folder binsrc/dbpedia/vsp/ and edit the description.sql file. Find the procedure "dbp_ldd_get_proxy" and replace contents with "return x;".
  • edit description.vsp. Find all entries of " http_request_header (http_request_header (), 'Host')" and replace them with the hostname you wish to appear, for example "de.dbpedia.org" or "fr.dbpedia.org". You can also replace the hardcoded "project_name := 'dbpedia.org';" with the project name with your project name. (Make sure that the hostname you are replacing it with is proxies trough apache, so that hostname/sparql works.)
  • the logo can be changed by editing the line: "/statics/dbpedia_logo.png" or replacing the dbpedia_logo.png file with your own logo`
  1. Edit the new Javascript Interface
    • go to dbpedia/vsp/dbpv/js and edit app.js . In the first line of the file you will see a lot of hardcoded endpoint entires, change them to match your endpoint.
  2. Run make, and import the newly generated dbpedia_dav.vad into your virtuoso endpoint.