Cannot initialize a graphdb repo with a SHACL Sail

103 Views Asked by At
  1. Set up a current graphdb free (tried with 9.3.3 and 9.4.0)
  2. create a new repository in the workbench that has SHACL validation enabled
  3. export it to ttl
  4. set it up as an init repository that graphdb imports upon startup
  5. observe that graphdb startup fails with the message Only graphdb repositories are supported

This is biting us when trying to set up automated deployments with a prepared db. Any suggestions how to get around it?

1

There are 1 best solutions below

2
On BEST ANSWER

You can create a repo programmatically using a config.ttl template, as described at http://graphdb.ontotext.com/documentation/standard/configuring-a-repository.html#configure-a-repository-programmatically:

curl -X POST --header "Content-Type:multipart/form-data" -F "config=@./config.ttl"
  "http://localhost:7200/rest/repositories"

But I don't know what prop names you should use. So I posted an issue (GDB-5031) to document the Turtle prop names of the 9 new params described in http://graphdb.ontotext.com/documentation/standard/shacl-validation.html#creating-and-configuring-a-shacl-repository and to include them in /configs/templates/config.ttl