Refactor templating and drupal 9 support
This commit is contained in:
parent
eabf4a2ec4
commit
f22e658183
16 changed files with 275 additions and 144 deletions
4
factory/resources/templates/easyrdf.patch
Normal file
4
factory/resources/templates/easyrdf.patch
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
281c281
|
||||
< if (preg_match("|^HTTP/([\d\.x]+) (\d+) ([^\r\n]+)|", $status, $m)) {
|
||||
---
|
||||
> if(preg_match("|^HTTP/([\d\.x]+) (\d+) ([^\r\n]*)|", $status, $m)) {
|
||||
57
factory/resources/templates/graphdb-repo.ttl
Normal file
57
factory/resources/templates/graphdb-repo.ttl
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
# This file is used to initialize a new GraphDB repository.
|
||||
# In this file the variables ${GRAPHDB_REPO} and ${INSTANCE_DOMAIN} will be replaced.
|
||||
# All other variables will be left untouched.
|
||||
|
||||
@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 owlim: <http://www.ontotext.com/trree/owlim#>.
|
||||
|
||||
[] a rep:Repository ;
|
||||
rep:repositoryID "${GRAPHDB_REPO}" ;
|
||||
rdfs:label "${INSTANCE_DOMAIN}" ;
|
||||
rep:repositoryImpl [
|
||||
rep:repositoryType "graphdb:FreeSailRepository" ;
|
||||
sr:sailImpl [
|
||||
sail:sailType "graphdb:FreeSail" ;
|
||||
|
||||
owlim:owlim-license "" ;
|
||||
|
||||
owlim:base-URL "http://${INSTANCE_DOMAIN}/#" ;
|
||||
owlim:defaultNS "" ;
|
||||
owlim:entity-index-size "10000000" ;
|
||||
owlim:entity-id-size "32" ;
|
||||
owlim:imports "" ;
|
||||
owlim:repository-type "file-repository" ;
|
||||
owlim:ruleset "empty" ;
|
||||
owlim:storage-folder "storage" ;
|
||||
|
||||
owlim:enable-context-index "false" ;
|
||||
owlim:cache-memory "80m" ;
|
||||
owlim:tuple-index-memory "80m" ;
|
||||
|
||||
owlim:enablePredicateList "false" ;
|
||||
owlim:predicate-memory "0%" ;
|
||||
|
||||
owlim:fts-memory "0%" ;
|
||||
owlim:ftsIndexPolicy "never" ;
|
||||
owlim:ftsLiteralsOnly "true" ;
|
||||
|
||||
owlim:in-memory-literal-properties "false" ;
|
||||
owlim:enable-literal-index "true" ;
|
||||
owlim:index-compression-ratio "-1" ;
|
||||
|
||||
owlim:check-for-inconsistencies "false" ;
|
||||
owlim:disable-sameAs "false" ;
|
||||
owlim:enable-optimization "true" ;
|
||||
owlim:transaction-mode "safe" ;
|
||||
owlim:transaction-isolation "true" ;
|
||||
owlim:query-timeout "0" ;
|
||||
owlim:query-limit-results "0" ;
|
||||
owlim:throw-QueryEvaluationException-on-timeout "false" ;
|
||||
owlim:useShutdownHooks "true" ;
|
||||
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" ;
|
||||
]
|
||||
].
|
||||
17
factory/resources/templates/graphdb.service
Normal file
17
factory/resources/templates/graphdb.service
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# This file contains a systemd service for GraphDB.
|
||||
# It was tailed to a WissKI service and may or may not work in general.
|
||||
|
||||
[Unit]
|
||||
Description=GraphDB
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# use the special graphdb user and group, so that other users can not just access this system.
|
||||
User=graphdb
|
||||
Group=graphdb
|
||||
|
||||
# The options here make it listen only on 127.0.0.1; this prevents external users from attempting access.
|
||||
ExecStart=/opt/graphdb/bin/graphdb –Xmx6g -Dgraphdb.connector.address=127.0.0.1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
16
factory/resources/templates/wisski-site.conf
Normal file
16
factory/resources/templates/wisski-site.conf
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# This file was generated automatically.
|
||||
# It contains configuration for the WissKI site:
|
||||
# ${INSTANCE_DOMAIN}
|
||||
# Do not edit unless you know exactly what you are doing.
|
||||
|
||||
<VirtualHost *:${PUBLIC_PORT}>
|
||||
DocumentRoot ${WEB_DIR}
|
||||
ServerName ${INSTANCE_DOMAIN}
|
||||
AssignUserId ${SYSTEM_USER} ${SYSTEM_USER}
|
||||
|
||||
<Directory ${WEB_DIR}>
|
||||
include "${WISSKI_COMMON_PATH}/wisski-common-dir.conf"
|
||||
</Directory>
|
||||
|
||||
include "${WISSKI_COMMON_PATH}/wisski-common.conf"
|
||||
</VirtualHost>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
# This file is included inside the 'directory' configuration of all WissKI sites.
|
||||
|
||||
# add types for .owl and .rdf
|
||||
AddType application/rdf+xml .owl
|
||||
AddType application/rdf+xml .rdf
|
||||
|
||||
# Rewrites the ontology directory
|
||||
ReWriteRule ^(ontology/[^/]+/).+ $1 [R=303,L]
|
||||
ReWriteRule ^(ontology/[^/]+)/$ sites/default/files/$1.owl [L]
|
||||
|
||||
# Allow overrides of symlinks
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# This file is included inside the 'virtualhost' of a WissKI site.
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
Loading…
Add table
Add a link
Reference in a new issue