graphdb: Update api usage for 10.x
This commit updates the usage of the GraphDB API for version 10.0 or later.
This commit is contained in:
parent
07755aacf5
commit
18c4957e30
5 changed files with 9 additions and 9 deletions
|
|
@ -78,7 +78,7 @@ These are:
|
||||||
- A [phpmyadmin](https://www.phpmyadmin.net/) is started on `127.0.0.1:8080`.
|
- A [phpmyadmin](https://www.phpmyadmin.net/) is started on `127.0.0.1:8080`.
|
||||||
- See [distillery/resources/compose/sql](distillery/resources/compose/sql) for implementation details.
|
- See [distillery/resources/compose/sql](distillery/resources/compose/sql) for implementation details.
|
||||||
|
|
||||||
- [GraphDB](http://graphdb.ontotext.com/) - a SPARQL backend for WissKI
|
- [GraphDB](http://graphdb.ontotext.com/) - a SPARQL backend for WissKI (Version 10.0 or later)
|
||||||
|
|
||||||
- It is configured to run inside a docker container.
|
- It is configured to run inside a docker container.
|
||||||
- The Workbench API is started on `127.0.0.1:7200`.
|
- The Workbench API is started on `127.0.0.1:7200`.
|
||||||
|
|
|
||||||
|
|
@ -44,12 +44,11 @@ GRAPHDB_PASSWORD="$(randompw)"
|
||||||
|
|
||||||
# Create the user and grant them access to the creatd database.
|
# Create the user and grant them access to the creatd database.
|
||||||
log_info " => Creating GraphDB user '$GRAPHDB_USER'"
|
log_info " => Creating GraphDB user '$GRAPHDB_USER'"
|
||||||
load_template "repository/graphdb-user.json" "GRAPHDB_USER" "${GRAPHDB_USER}" "GRAPHDB_REPO" "${GRAPHDB_REPO}" | \
|
load_template "repository/graphdb-user.json" "GRAPHDB_USER" "${GRAPHDB_USER}" "GRAPHDB_REPO" "${GRAPHDB_REPO}" "GRAPHDB_PASSWORD" "${GRAPHDB_PASSWORD}" | \
|
||||||
curl -X POST $GRAPHDB_AUTH_FLAGS \
|
curl -X POST $GRAPHDB_AUTH_FLAGS \
|
||||||
"http://127.0.0.1:7200/rest/security/user/${GRAPHDB_USER}" \
|
"http://127.0.0.1:7200/rest/security/users/${GRAPHDB_USER}" \
|
||||||
--header 'Content-Type: application/json' \
|
--header 'Content-Type: application/json' \
|
||||||
--header 'Accept: text/plain' \
|
--header 'Accept: text/plain' \
|
||||||
--header "X-GraphDB-Password: $GRAPHDB_PASSWORD" \
|
|
||||||
-d @-
|
-d @-
|
||||||
|
|
||||||
log_info " => Creating local directory structure at '$INSTANCE_BASE_DIR'"
|
log_info " => Creating local directory structure at '$INSTANCE_BASE_DIR'"
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ log_info " => Deleting GraphDB repository '$GRAPHDB_REPO'"
|
||||||
curl $GRAPHDB_AUTH_FLAGS -X DELETE http://127.0.0.1:7200/rest/repositories/$GRAPHDB_REPO
|
curl $GRAPHDB_AUTH_FLAGS -X DELETE http://127.0.0.1:7200/rest/repositories/$GRAPHDB_REPO
|
||||||
|
|
||||||
log_info " => Deleting GraphDB user '$GRAPHDB_USER'"
|
log_info " => Deleting GraphDB user '$GRAPHDB_USER'"
|
||||||
curl $GRAPHDB_AUTH_FLAGS -X DELETE http://127.0.0.1:7200/rest/security/user/$GRAPHDB_USER
|
curl $GRAPHDB_AUTH_FLAGS -X DELETE http://127.0.0.1:7200/rest/security/users/$GRAPHDB_USER
|
||||||
|
|
||||||
|
|
||||||
# Delete the directory
|
# Delete the directory
|
||||||
|
|
|
||||||
|
|
@ -12,13 +12,13 @@
|
||||||
rep:repositoryID "${GRAPHDB_REPO}" ;
|
rep:repositoryID "${GRAPHDB_REPO}" ;
|
||||||
rdfs:label "${INSTANCE_DOMAIN}" ;
|
rdfs:label "${INSTANCE_DOMAIN}" ;
|
||||||
rep:repositoryImpl [
|
rep:repositoryImpl [
|
||||||
rep:repositoryType "graphdb:FreeSailRepository" ;
|
rep:repositoryType "graphdb:SailRepository" ;
|
||||||
sr:sailImpl [
|
sr:sailImpl [
|
||||||
sail:sailType "graphdb:FreeSail" ;
|
sail:sailType "graphdb:Sail" ;
|
||||||
|
|
||||||
owlim:owlim-license "" ;
|
owlim:owlim-license "" ;
|
||||||
|
|
||||||
owlim:base-URL "http://${INSTANCE_DOMAIN}/#" ;
|
owlim:base-URL "http://${INSTANCE_DOMAIN}/" ;
|
||||||
owlim:defaultNS "" ;
|
owlim:defaultNS "" ;
|
||||||
owlim:entity-index-size "10000000" ;
|
owlim:entity-index-size "10000000" ;
|
||||||
owlim:entity-id-size "32" ;
|
owlim:entity-id-size "32" ;
|
||||||
|
|
|
||||||
|
|
@ -4,5 +4,6 @@
|
||||||
"ROLE_USER",
|
"ROLE_USER",
|
||||||
"READ_REPO_${GRAPHDB_REPO}",
|
"READ_REPO_${GRAPHDB_REPO}",
|
||||||
"WRITE_REPO_${GRAPHDB_REPO}"
|
"WRITE_REPO_${GRAPHDB_REPO}"
|
||||||
]
|
],
|
||||||
|
"password": "${GRAPHDB_PASSWORD}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue