Run from a JAR - dbpedia-spotlight/dbpedia-spotlight GitHub Wiki
This page describes how to run DBpedia Spotlight in your own server by using a pre-packaged JAR. We assume that you are running these commands on a bash command line (Linux) and have wget, curl and java installed.
Requirements
- Java 1.7 (latest works with 1.8)
- RAM of appropriate size for the spotter lexicon you need
The commands below will help you to obtain a pre-packaged lightweight deployment to get you started.
Model:
wget http://downloads.dbpedia-spotlight.org/spotlight/dbpedia-spotlight-1.0.0.jar
wget http://downloads.dbpedia-spotlight.org/2016-04/en/model/en.tar.gz
tar xzf en.tar.gz
java -jar dbpedia-spotlight-1.0.0.jar path/to/model/folder/en_2+2 http://localhost:2222/rest
Or maybe you want try DBpedia Spotlight docker
In order to test your new installation, run:
curl http://localhost:2222/rest/annotate \ -H "Accept: text/xml" \ --data-urlencode "text=Brazilian state-run giant oil company Petrobras signed a three-year technology and research cooperation agreement with oil service provider Halliburton." \ --data "confidence=0" \ --data "support=0"
Now you can study more about how to call your newly installed Web Service, which parameters are accepted, etc. here.
You can download the newest models from: http://downloads.dbpedia-spotlight.org