Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.72 KB

usage.md

File metadata and controls

49 lines (41 loc) · 1.72 KB

Using

After the containers are up, the following services will be available:

Example: Saving a file

curl -X 'POST'   'http://localhost:3002/file/save?repo=kurzum&path=example.jsonld'   -H 'accept: application/json'   -H 'Content-Type: application/ld+json'   -d '{
  "@context": "http://schema.org/",
  "@type": "Person",
  "name": "Jane Doe",
  "jobTitle": "Professor",
  "telephone": "(425) 123-4567",
  "url": "http://www.janedoe.com"
}'

Example: Query over saved file

curl --data-urlencode query="SELECT * {GRAPH </kurzum/example.jsonld> {?s ?p ?o }}" http://localhost:3003/sparql

Backup

To do a backup just run backup script in the container

./backup.sh <data directory> <URI of databus> <username> <api-token for the user> <DAV uri> <DAV user> <DAV password>

#for example:
./backup.sh ~/databus/data_root/ http://localhost:3000 databusadmin 8d0eb95f-e3ab-4916-bd5a-fb6599a841f6 http://localhost:3003/DAV dav dav
  • <username> is the name of the user who will publish generated jsonld file
  • running the backup.sh file will generate bckp_${VERSION}.tar.gz file and backup.jsonld metainformation file about the backup to publish in databus in the $GIT_ROOT directory

External virtuoso and gitlab

  • go to the directory of the project
  • set the right configuration parameters in src/main/webapp/WEB-INF/web.xml
  • run docker build -t g-store-<version> .
  • run docker run -p <out_port>:8080 [-d] g-store-<version>