Closed rpgoldman closed 1 month ago
Here's at least part of the problem:
$ cat webvowl.war
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://web1.java-webspace.net:4443webvowl_1.1.7.war">here</a>.</p>
<hr>
<address>Apache Server at downloads.visualdataweb.de Port 80</address>
</body></html>
So this line in doc/Docker/Dockerfile
is too permissive:
curl -O http://downloads.visualdataweb.de/webvowl_${version}.war
It should be modified to error out if it does not get a 200, or possibly to follow the forwarding, but definitely not accept a redirect page as the warfile...
OK, when I downloaded this myself and changed the Dockerfile to COPY
the warfile to /usr/local/tomcat/webapps/
, it almost works, but:
localhost:8080/webvowl
not just localhost:8080
, which just gives me the Tomcat main screen./data
.So any help you could offer would be much appreciated.
So actually, it looks to me as if the set of ontologies in the server is hardcoded in WEB-INF/classes/static/index.html
, rather than appearing in any configuration file. Is that correct?
Ever figure this out?
Ever figure this out?
I don't remember getting that fixed. I think I probably just gave up. Looks like this repo has been abandoned.
If it helps I ended up just ditching the WAR file and creating my own dockerfile that just serves the deploy/
directory directly. I was able to delete the existing builtin ontologies, add a new one, and change the default ontology that gets loaded.
The instructions for using the docker image here tell us to point the docker container's
/data
directory to our own directory of OWL files, and then indicates that WebVOWL will automatically run and OWL to JSON translator.However, when I start up as instructed:
I see the FOAF ontology when I open
localhost:8080
. When I connect to the docker container and list the contents of/data
, I see this:As you can see, no JSON files have been created (I suppose they could have been created and put somewhere else).
I looked around for JSON files and found the following:
Further checking at the root of the container's filesystem shows that these are the only
.json
files in the container.At least part of what's wrong seems to be that the start.sh file contains:
but in the container:
so this jar file is not installed:
Another confusion is that there are two Dockerfiles, one at the root and one located at
doc/Docker/Dockerfile
. I tried building the docker image with this file instead, but when I do that, I just get the Tomcat page: it looks like the application has not properly initialized. Connecting to the container I see thatOWL2VOWL.jar
is present in/usr/local/lib
, but still there are no.json
files in/data
. There's nothing in the Docker logs, either:Any suggestions? Happy to submit a PR to make the documentation more clear, if that's of interest. I suspect there's some configuration file that I should be modifying, but I have no idea what that would be.
Thanks!