Skip to content

Commit

Permalink
Merge pull request #26 from Ontotext-AD/GDB-6294-Update-Config-To-Gra…
Browse files Browse the repository at this point in the history
…phDB-Repo

GDB-6294 Update worker config to GraphDB Repository config
  • Loading branch information
nikolaykolev authored Feb 4, 2022
2 parents 7326620 + e881985 commit 6db1f09
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 61 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ templates directly.

By default, the provisioning creates a default repository in GraphDB. This repo is provided by
`graphdb-master-repo-default-configmap` for master instances and `graphdb-worker-repo-default-configmap` for worker instances.
The repositories are created using .ttl repository configuration files, by default those are [worker.default.ttl](files/config/worker.default.ttl) and [master.default.ttl](files/config/master.default.ttl).
The repositories are created using .ttl repository configuration files, by default those are [worker.default.ttl](files/config/graphdb-repo.default.ttl) and [master.default.ttl](files/config/master.default.ttl).

Provisioning of multiple repositories is also supported. If the configmaps contain more than one .ttl file, the provisioning will create the repositories from all .ttl files contained in the configmap.
Note that `master` and `worker` repositories are different and must be supplied correctly in a cluster environment.
Expand Down
54 changes: 54 additions & 0 deletions files/config/graphdb-repo.default.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#
# RDF4J configuration template for a GraphDB EE worker repository
#
@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 graphdb: <http://www.ontotext.com/config/graphdb#>.
@prefix shacl: <http://rdf4j.org/config/sail/shacl#>.

[] a rep:Repository ;
rep:repositoryID "default" ;
rdfs:label "GraphDB worker for default" ;
rep:repositoryImpl [
rep:repositoryType "graphdb:SailRepository" ;
sr:sailImpl [
sail:sailType "rdf4j:ShaclSail";
shacl:validationEnabled "true" ;
shacl:logValidationPlans "false" ;
shacl:logValidationViolations "false" ;
shacl:parallelValidation "true" ;
shacl:globalLogValidationExecution "false" ;
shacl:cacheSelectNodes "true" ;
shacl:undefinedTargetValidatesAllSubjects "false" ;
shacl:ignoreNoShapesLoadedException "false" ;
shacl:performanceLogging "false" ;
shacl:rdfsSubClassReasoning "true" ;
shacl:shaclAdvancedFeatures "true" ;
shacl:dashDataShapes "true" ;
sail:delegate [
sail:sailType "graphdb:Sail";
graphdb:owlim-license "" ;
graphdb:base-URL "http://example.org/owlim#" ;
graphdb:defaultNS "" ;
graphdb:entity-index-size "10000000" ;
graphdb:entity-id-size "32" ;
graphdb:imports "" ;
graphdb:repository-type "file-repository" ;
graphdb:ruleset "rdfsplus-optimized" ;
graphdb:storage-folder "storage" ;
graphdb:enable-context-index "false" ;
graphdb:enablePredicateList "true" ;
graphdb:in-memory-literal-properties "true" ;
graphdb:enable-literal-index "true" ;
graphdb:check-for-inconsistencies "false" ;
graphdb:disable-sameAs "true" ;
graphdb:query-timeout "0" ;
graphdb:query-limit-results "0" ;
graphdb:throw-QueryEvaluationException-on-timeout "false" ;
graphdb:read-only "false" ;
graphdb:nonInterpretablePredicates "http://www.w3.org/2000/01/rdf-schema#label;http://www.w3.org/1999/02/22-rdf-syntax-ns#type;http://www.ontotext.com/owlim/ces#gazetteerConfig;http://www.ontotext.com/owlim/ces#metadataConfig" ;
]
]
].
57 changes: 0 additions & 57 deletions files/config/worker.default.ttl

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ data:
{{ if ne .Values.graphdb.topology "standalone" }}
{{ tpl (.Files.Get "files/config/master.default.ttl" | indent 4) . }}
{{ else }}
{{ tpl (.Files.Get "files/config/worker.default.ttl" | indent 4) . }}
{{ tpl (.Files.Get "files/config/graphdb-repo.default.ttl" | indent 4) . }}
{{ end }}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ metadata:
name: graphdb-worker-repo-default-configmap
data:
config.ttl: |-
{{ tpl (.Files.Get "files/config/worker.default.ttl" | indent 4) . }}
{{ tpl (.Files.Get "files/config/graphdb-repo.default.ttl" | indent 4) . }}
{{ end }}
2 changes: 1 addition & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ images:
tag: "2.1-alpine"
graphdb:
repository: ontotext/graphdb
tag: "9.10.1-ee"
tag: "10.0"
busybox:
repository: busybox
tag: "1.31"
Expand Down

0 comments on commit 6db1f09

Please sign in to comment.