diff --git a/README.md b/README.md index 1552819a..8f48a765 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/files/config/graphdb-repo.default.ttl b/files/config/graphdb-repo.default.ttl new file mode 100644 index 00000000..7fbf27bd --- /dev/null +++ b/files/config/graphdb-repo.default.ttl @@ -0,0 +1,54 @@ +# +# RDF4J configuration template for a GraphDB EE worker repository +# +@prefix rdfs: . +@prefix rep: . +@prefix sr: . +@prefix sail: . +@prefix graphdb: . +@prefix 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" ; + ] + ] + ]. diff --git a/files/config/worker.default.ttl b/files/config/worker.default.ttl deleted file mode 100644 index 781cf5b8..00000000 --- a/files/config/worker.default.ttl +++ /dev/null @@ -1,57 +0,0 @@ -# -# RDF4J configuration template for a GraphDB EE worker repository -# -@prefix rdfs: . -@prefix rep: . -@prefix sr: . -@prefix sail: . -@prefix owlim: . -@prefix shacl: . - -[] a rep:Repository ; - rep:repositoryID "default" ; - rdfs:label "GraphDB worker for default" ; - rep:repositoryImpl [ - rep:repositoryType "owlim:ReplicationClusterWorker" ; - rep:delegate [ - rep:repositoryType "owlim:MonitorRepository" ; - 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 "owlimClusterWorker:Sail"; - owlim:owlim-license "" ; - owlim:base-URL "http://example.org/owlim#" ; - owlim:defaultNS "" ; - owlim:entity-index-size "10000000" ; - owlim:entity-id-size "32" ; - owlim:imports "" ; - owlim:repository-type "file-repository" ; - owlim:ruleset "rdfsplus-optimized" ; - owlim:storage-folder "storage" ; - owlim:enable-context-index "false" ; - owlim:enablePredicateList "true" ; - owlim:in-memory-literal-properties "true" ; - owlim:enable-literal-index "true" ; - owlim:check-for-inconsistencies "false" ; - owlim:disable-sameAs "true" ; - owlim:query-timeout "0" ; - owlim:query-limit-results "0" ; - owlim:throw-QueryEvaluationException-on-timeout "false" ; - owlim:read-only "false" ; - owlim: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" ; - ] - ] - ] - ]. diff --git a/templates/configuration/graphdb-master-repo-default-configmap.yaml b/templates/configuration/graphdb-master-repo-default-configmap.yaml index e5383cf6..dcee8be2 100644 --- a/templates/configuration/graphdb-master-repo-default-configmap.yaml +++ b/templates/configuration/graphdb-master-repo-default-configmap.yaml @@ -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 }} diff --git a/templates/configuration/graphdb-worker-repo-default-configmap.yaml b/templates/configuration/graphdb-worker-repo-default-configmap.yaml index 8d3dcbb6..382cbeaa 100644 --- a/templates/configuration/graphdb-worker-repo-default-configmap.yaml +++ b/templates/configuration/graphdb-worker-repo-default-configmap.yaml @@ -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 }} diff --git a/values.yaml b/values.yaml index c2296c63..2b9ea9d9 100644 --- a/values.yaml +++ b/values.yaml @@ -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"