Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Jar file not found #31

Open
rodriguesfas opened this issue Aug 2, 2018 · 6 comments
Open

.Jar file not found #31

rodriguesfas opened this issue Aug 2, 2018 · 6 comments
Labels

Comments

@rodriguesfas
Copy link

Hello, I would like to use the local server, however the links are broken

wget http://downloads.dbpedia-spotlight.org/spotlight/dbpedia-spotlight-1.0.0.jar
wget http://downloads.dbpedia-spotlight.org/2016-16/en/model/en.tar.gz

I await upgrade, to download :)

@myii
Copy link

myii commented Aug 12, 2018

@rodriguesfas I had the same problem so I looked into the issue a bit further.


Models

These are available under:

So en.tar.gz can be found at:


JAR file

Haven't been able to find this anywhere. The SourceForge directory doesn't contain this file:

However, checked historically and it was available at the link, at least until the beginning of this year:


Potential workaround using Docker

I myself haven't had the time to look into this yet. But this could be a better solution than using the JAR + model.

https://github.com/dbpedia-spotlight/dbpedia-spotlight/wiki/Run-from-a-JAR

...
Or maybe you want try DBpedia Spotlight docker
...

  • Checked that link above and also the Docker Hub
  • The image is 2GB

@myii
Copy link

myii commented Aug 12, 2018

@rodriguesfas OK, Docker isn't going to work since it depends on downloading the JAR as well.

https://github.com/dbpedia-spotlight/spotlight-docker/blob/master/v1.0/english/Dockerfile

FROM openjdk:8-jre-alpine

MAINTAINER  DBpedia Spotlight Team <[email protected]>

ENV RELEASE_SERVER    downloads.dbpedia-spotlight.org
ENV RELEASE_FILENAME  dbpedia-spotlight-1.0.0.jar 
ENV LANGUAGE_MODEL    en_2+2.tar.gz

RUN apk add --no-cache curl && \
    mkdir -p /opt/spotlight && \
    cd /opt/spotlight && \
    curl -O "http://$RELEASE_SERVER/spotlight/$RELEASE_FILENAME" && \
    curl -O "http://$RELEASE_SERVER/2016-04/en/model/$LANGUAGE_MODEL" && \
    tar xvf $LANGUAGE_MODEL  && \
    rm  $LANGUAGE_MODEL && \
    apk del curl


ADD spotlight.sh /bin/spotlight.sh
RUN chmod +x /bin/spotlight.sh

EXPOSE 80

So until dbpedia-spotlight-1.0.0.jar is made available, doesn't appear to be any way of getting Spotlight working locally.

@myii
Copy link

myii commented Aug 12, 2018

@rodriguesfas There is a solution provided by @ShomyLiu at #16 (comment):

Hi, I have uploaded the spotlight 1.0 jar in : https://drive.google.com/file/d/1vFwVCzoY9R9rBPpfmgD9LlXpW6KdEc7-/view?usp=sharing
...
In fact, you can maven the spotlight 1.0 jar from the source code https://github.com/dbpedia-spotlight/dbpedia-spotlight-model:
Be sure that installing java and maven

mvn clean
mvn install

this will cost some time in the first time for downloading some jars.
After finishing this part, the jar will be in rest/target/rest-1.0-jar-with-dependencies.jar

So there are two options available:

  1. Download from the link provided by @ShomyLiu -- this is quicker but at your own risk
  2. Build it yourself

Either way, you may want to rename the file to dbpedia-spotlight-1.0.0.jar, to follow existing instructions with more ease.

I have tested this method and all working well.

@ShomyLiu Thanks for your help.

@ShomyLiu
Copy link

@myii It's my pleasure

@sandroacoelho
Copy link
Collaborator

Hi all,

Thank you for all the answers. As you have reported, our download server(downloads.dbpedia-spotlight.org) is not available anymore, but all files are kindly hosted by https://sourceforge.net/projects/dbpedia-spotlight/files/.

Maybe you or someone want to help me fix the documentation. I have stated to fix our Dockerfiles.

Please ping me if you are in,

All the best,

@myii
Copy link

myii commented Oct 13, 2018

@sandroacoelho That's good news. Unfortunately, numerous commitments at the moment -- apologies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants