Skip to content
This repository has been archived by the owner on Oct 20, 2018. It is now read-only.

Run from a JAR

Jagadeesha edited this page Sep 21, 2017 · 17 revisions

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

Quickstart

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

Test your installation

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.

Upgrade your models

You can download the newest models from: http://downloads.dbpedia-spotlight.org

Clone this wiki locally