Skip to content

Instantly share code, notes, and snippets.

@jkot
Created December 5, 2014 16:25
Show Gist options
  • Save jkot/4a14806032fcdb8fead4 to your computer and use it in GitHub Desktop.
Save jkot/4a14806032fcdb8fead4 to your computer and use it in GitHub Desktop.
OpenRDF Sesame
curl --form-string "context=<http://example.com/context/url>" \
     -F "Content-Type=text/x-nquads" \
     -F "source=file" \
     -F "content=@$f;type=text/x-nquads" \
     http://localhost:8080/openrdf-workbench/repositories/$REPO/add

curl --data "type=native&Repository%20ID=$REPO&Repository%20title=$REPONAME&Triple%20indexes=spoc,posc" http://localhost:8080/openrdf-workbench/repositories/NONE/create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment