Skip to content

Instantly share code, notes, and snippets.

@ktk
Created December 22, 2015 10:56
Show Gist options
  • Save ktk/ee1805e86f080d6d03b2 to your computer and use it in GitHub Desktop.
Save ktk/ee1805e86f080d6d03b2 to your computer and use it in GitHub Desktop.
From zero to Fuseki Docker hero
#!/bin/sh
docker run -p 3030:3030 -e ADMIN_PASSWORD=MyFancyPassword -d stain/jena-fuseki
sleep 20
curl -u admin:MyFancyPassword --data "dbType=tdb&dbName=mydbname" http://localhost:3030/$/datasets
curl -X PUT -u admin:MyFancyPassword -d @my-data-as-ntriples.nt -H "Content-Type: application/n-triples" http://admin:MyFancyPassword@localhost:3030/mydbname/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment