Skip to content

Instantly share code, notes, and snippets.

@rnsrk
Created March 27, 2024 10:16
Show Gist options
  • Save rnsrk/0e2c6977adbe164b449a0beea6314244 to your computer and use it in GitHub Desktop.
Save rnsrk/0e2c6977adbe164b449a0beea6314244 to your computer and use it in GitHub Desktop.
Create Repo at rdf4j-Server
# $SERVER_URL=http://http://example.com/rdf4j-server/
# $REPO_ID=example-repo
# curl -X PUT -H "Content-Type: text/turtle" --data-binary @repo-config.ttl $SERVER_URL/repositories/$REPO_ID
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rep: <http://www.openrdf.org/config/repository#>.
@prefix sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix ms: <http://www.openrdf.org/config/sail/memory#>.
[] a rep:Repository ;
rep:repositoryID "wisski" ;
rdfs:label "wisski native store" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "openrdf:NativeStore" ;
ms:persist true ;
ms:syncDelay 120
]
].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment