Sign inSign up

markw/ldp_server

By markw

•Updated almost 4 years ago

OpenLink Virtuoso Open Source 7 configured to serve Linked Data Platform

Image
1

10K+

markw/ldp_server repository overview

This is Virtuoso Open Source 7 (https://hub.docker.com/r/openlink/virtuoso-opensource-7⁠), with the various tweaks required to activate it's LDP functionality.

Default start command:

 $ docker run \
     --name my_virtdb \
     --publish 1111:1111 \
     --publish  8890:8890 \
     markw/ldp_server

docker-compose.yml

 version: '3'
 services:
   ldp:
     image: markw/ldp_server:latest
     container_name: ldp_server
     ports:
       - 1111:1111
       - 8890:8890

Admin login/pass: dba/mysecret; dav/mysecret

LDP user/pass: ldp/ldp (required for POST/PUT; not required for GET)

LDP Folder: /DAV/home/LDP/

The default URIs created are in the 'localhost' domain. If you need them in your own domain, start a terminal in this container and edit the virtuoso.ini file to change the URIQA DefaultHost parameter, then restart.

To test your server do the following:

Create a file "resource.ttl" that contains a small piece of turtle:

  @prefix ldp: <http://www.w3.org/ns/ldp#> . 
  <> a ldp:Resource.

Then create a new LDP resource in the LDP root folder of your server:

 curl -v -H "Accept: text/turtle" -H "Content-type: text/turtle" -u ldp:ldp --data-binary @resource.ttl -H "Slug: test" http://localhost:8890/DAV/home/LDP/

(note that the trailing slash is required! If you miss it, you will get a 301 redirect)

Use the WebDav browser (virtuoso conductor interface at http://localhost:8890⁠) and browse to DAV/home/LDP. If all is well, you should see "test.ttl" in that location.

Tag summary

Content type

Image

Digest

Size

72.4 MB

Last updated

over 7 years ago

docker pull markw/ldp_server