Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 1.58 KB

README.md

File metadata and controls

25 lines (23 loc) · 1.58 KB

Indexing-server

How to use this libray?

1- Download the dump of the ontology you want. For example download the dbpedia dumps:
wget http://downloads.dbpedia.org/2015-04/core-i18n/en/labels_en.nt.bz2
wget http://downloads.dbpedia.org/2015-04/core-i18n/en/mappingbased-properties_en.nt.bz2
wget http://downloads.dbpedia.org/2015-04/core-i18n/en/infobox-properties_en.nt.bz2
Decompresse them ; )
Make a unique dump using „cat mappingbased-properties_en.nt infobox-properties_en > dump-en.nt"
2- Install octave
3- Download the git repository: https://github.com/WDAqua/Indexing-server
4- Go into src/main/java/Index.class and modify the two variables

String octavePath="/usr/bin/octave";
String dump = "/ssd/dennis/dump-it.nt“;

to the corresponding directories. For octave you can find it out with „which octave“ on CL.
5- Do „mvn clean package“ to compile. (NOTE: you need java 8 due to dependencies to Jena)
6- Now you can run the server with „java -jar „ on the corresponding jar in the target folder.

The corresponing client can be found under:
https://github.com/WDAqua/Indexing-client

If you want to include in the distance computations the relations you can uncomment the corresponding part in the src/main/java/Index.class file and comment the privious part for computing the distance only for the instances.
If you want to output the computations in a file you can uncomment the last comment in the src/main/java/Index.class file.