-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.yaml
More file actions
311 lines (274 loc) · 8.38 KB
/
config.yaml
File metadata and controls
311 lines (274 loc) · 8.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
# yaml-language-server: $schema=https://unpkg.com/lindas-trifid-core@latest/lib/config/schema.json
template:
files:
main: file:template/main.hbs
header: file:template/header.hbs
footer: file:template/footer.hbs
partials:
infos: file:template/infos.hbs
title: LINDAS - Linked Data Service
server:
logFormat: json
options:
logger: true
globals:
datasetBaseUrl: env:DATASET_BASE_URL
endpoints:
default:
url: /query
plugins:
health-old:
module: "@lindas/trifid-core/plugins/health.js"
paths: /health
static-assets:
module: "@lindas/trifid-core/plugins/static.js"
paths: /static-assets
config:
directory: file:static
redirect-security-well-known:
module: "@lindas/trifid-core/plugins/redirect.js"
paths: /.well-known/security.txt
config:
target: https://www.ncsc.admin.ch/.well-known/security.txt
i18n:
module: "@lindas/trifid-plugin-i18n"
config:
directory: file:locales
updateFiles: false
locales:
- en
- fr
- de
- it
welcome:
module: "@lindas/trifid-core/plugins/view.js"
paths: /
config:
path: views/welcome.hbs
ecosystem:
module: "@lindas/trifid-core/plugins/view.js"
paths: /ecosystem/
config:
path: views/ecosystem.hbs
data-usage:
module: "@lindas/trifid-core/plugins/view.js"
paths: /data-usage/
config:
path: views/data-usage.hbs
governance:
module: "@lindas/trifid-core/plugins/view.js"
paths: /governance/
config:
path: views/governance.hbs
know-how:
module: "@lindas/trifid-core/plugins/view.js"
paths: /know-how/
config:
path: views/know-how.hbs
community:
module: "@lindas/trifid-core/plugins/view.js"
paths: /community/
config:
path: views/community.hbs
visualize:
module: "@lindas/trifid-core/plugins/view.js"
paths: /visualize/
config:
path: views/visualize.hbs
redirect-to-trailing-slash:
module: file:plugins/redirect/index.js
paths:
- /ecosystem
- /data-usage
- /governance
- /know-how
- /community
- /visualize
ckan:
module: "@lindas/trifid-plugin-ckan"
paths:
- /ckan
- /ckan/
yasgui:
module: "@lindas/trifid-plugin-yasgui"
config:
# TODO: URL shortener temporarily disabled, to be replaced with a new service
# urlShortener: https://s.zazuko.com/api/v1/shorten
template: file:views/yasgui.hbs
graph-explorer:
module: "@lindas/trifid-plugin-graph-explorer"
config:
dataLabelProperty: <http://schema.org/name> | rdfs:label
schemaLabelProperty: <http://schema.org/name> | rdfs:label
template: file:views/graph-explorer.hbs
spex:
module: "@lindas/trifid-plugin-spex"
search:
module: file:plugins/search/index.js
csp-violations:
module: file:plugins/csp-violations/index.js
sparql-proxy:
module: "@lindas/trifid-plugin-sparql-proxy"
paths: /x-query
config:
allowRewriteToggle: true
rewrite: false
rewriteQuery: true
rewriteResults: true
endpoints:
default:
url: env:SPARQL_ENDPOINT_URL
username: env:SPARQL_USERNAME
password: env:SPARQL_PASSWORD
prod:
url: env:PUBLIC_PROD_SPARQL_ENDPOINT_URL
int:
url: env:PUBLIC_INT_SPARQL_ENDPOINT_URL
test:
url: env:PUBLIC_TEST_SPARQL_ENDPOINT_URL
endpointUrl: env:SPARQL_ENDPOINT_URL
username: env:SPARQL_USERNAME
password: env:SPARQL_PASSWORD
formats:
ttl: "text/turtle"
nt: "application/n-triples"
xml: "application/rdf+xml"
jsonld: "application/ld+json"
csv: "text/csv"
queryLogLevel: info
# SPARQL endpoint that returns specific xkey header
xquery:
module: file:plugins/xquery/index.js
banner:
module: file:plugins/banner/index.js
config:
filePath: file:overlay/banner.json
menu:
module: file:plugins/menu/index.js
config:
namespace: header
filePath: file:menu.json
entries:
- path: /datasets/
label: Data Catalog
- path: /sparql/
label: Query Data
- path: /ecosystem/
label: Ecosystem
- path: /data-usage/
label: Data Usage
- path: /governance/
label: Governance
- path: /know-how/
label: Know How
- path: /community/
label: Community
content:
module: "@lindas/trifid-plugin-markdown-content"
config:
defaults:
autoLink: true # create links from headings
idPrefix: "content-" # prefix for generated ids for headings
classes: # custom CSS classes for generated HTML elements
h1: h1
h2: h2
h3: h3
h4: h4
h5: h5
table: table
template: file:views/content.hbs
entries:
lindas:
directory: file:content/template-parts
# entries used in templates using `{{{ session.markdown-content-plugin.lindas.XXXXXXXX }}}`
lindas-root:
directory: file:content/root-pages
mountPath: /
lindas-ecosystem:
directory: file:content/ecosystem
mountPath: /ecosystem/
lindas-data-usage:
directory: file:content/data-usage
mountPath: /data-usage/
lindas-governance:
directory: file:content/governance
mountPath: /governance/
lindas-know-how:
directory: file:content/know-how
mountPath: /know-how/
lindas-community:
directory: file:content/community
mountPath: /community/
# lindas-visualize:
# directory: file:content/visualize
# mountPath: /visualize/
content-reload:
module: file:plugins/content-reload/index.js
config:
entries:
lindas:
directory: file:content/template-parts
lindas-root:
directory: file:content/root-pages
lindas-ecosystem:
directory: file:content/ecosystem
lindas-data-usage:
directory: file:content/data-usage
lindas-governance:
directory: file:content/governance
lindas-know-how:
directory: file:content/know-how
lindas-community:
directory: file:content/community
defaults:
idPrefix: "content-"
autoLink: true
classes:
h1: h1
h2: h2
h3: h3
h4: h4
h5: h5
table: table
entity-renderer:
module: "@lindas/trifid-entity-renderer"
config:
path: views/entity.hbs
labelLoader:
chunkSize: 30
concurrency: 2
timeout: 4000
followRedirects: true
enableSchemaUrlRedirect: true
allowEndpointSwitch: true
rewrite: true
# Triplestore backend switching - set TRIPLESTORE_BACKEND env var to 'stardog' or 'graphdb'
triplestoreBackend: env:TRIPLESTORE_BACKEND
# Custom queries (these override the preset if specified)
# For Stardog, use CBD pragma. For GraphDB, use plain DESCRIBE.
resourceExistsQuery: "ASK { GRAPH ?g { <{{iri}}> ?p ?o }}"
# Use GraphDB's CBD virtual graph to avoid SCBD expanding blank nodes (RDF lists)
# See: https://graphdb.ontotext.com/documentation/10.8/virtual-graphs.html#describe-outgoing
resourceGraphQuery: "DESCRIBE <{{iri}}> FROM <http://www.ontotext.com/describe/outgoing>"
containerExistsQuery: "ASK { GRAPH ?g { <{{iri}}> ?p ?o }}"
containerGraphQuery: "DESCRIBE <{{iri}}> FROM <http://www.ontotext.com/describe/outgoing>"
# Enrich quads with named graph info (GraphDB DESCRIBE doesn't return graph context)
enrichWithNamedGraph: true
# Filter out blank node subjects to match Stardog's CBD behavior
filterBlankNodeSubjects: true
datasetBaseUrl:
- https://ld.admin.ch/
- https://schema.ld.admin.ch/
- https://culture.ld.admin.ch/
- https://energy.ld.admin.ch/
- https://education.ld.admin.ch/
- https://agriculture.ld.admin.ch/
- https://environment.ld.admin.ch/
- https://finance.ld.admin.ch/
- https://register.ld.admin.ch/
- https://politics.ld.admin.ch/
- https://health.ld.admin.ch/
- https://communication.ld.admin.ch/
- https://transport.ld.admin.ch/
- https://population.ld.admin.ch/
- https://ld.zh.ch/