-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yaml
231 lines (201 loc) · 5.58 KB
/
config.yaml
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
# yaml-language-server: $schema=https://unpkg.com/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: trifid-core/plugins/health.js
paths: /health
static-assets:
module: trifid-core/plugins/static.js
paths: /static-assets
config:
directory: file:static
redirect-security-well-known:
module: trifid-core/plugins/redirect.js
paths: /.well-known/security.txt
config:
target: https://www.ncsc.admin.ch/.well-known/security.txt
i18n:
module: trifid-plugin-i18n
config:
directory: file:locales
updateFiles: false
locales:
- en
- fr
- de
- it
welcome:
module: trifid-core/plugins/view.js
paths: /
config:
path: views/welcome.hbs
ecosystem:
module: trifid-core/plugins/view.js
paths: /ecosystem/
config:
path: views/ecosystem.hbs
data-usage:
module: trifid-core/plugins/view.js
paths: /data-usage/
config:
path: views/data-usage.hbs
governance:
module: trifid-core/plugins/view.js
paths: /governance/
config:
path: views/governance.hbs
know-how:
module: trifid-core/plugins/view.js
paths: /know-how/
config:
path: views/know-how.hbs
community:
module: trifid-core/plugins/view.js
paths: /community/
config:
path: views/community.hbs
visualize:
module: 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: "@zazuko/trifid-plugin-ckan"
paths:
- /ckan
- /ckan/
yasgui:
module: trifid-plugin-yasgui
config:
urlShortener: https://s.zazuko.com/api/v1/shorten
template: file:views/yasgui.hbs
graph-explorer:
module: 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: trifid-plugin-spex
search:
module: file:plugins/search/index.js
sparql-proxy:
module: "@zazuko/trifid-plugin-sparql-proxy"
paths: /x-query
config:
allowRewriteToggle: true
rewrite: false
rewriteQuery: true
rewriteResults: true
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
menu:
module: file:plugins/menu/index.js
config:
namespace: header
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: "@zazuko/trifid-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/
entity-renderer:
module: "@zazuko/trifid-entity-renderer"
config:
path: views/entity.hbs
labelLoader:
chunkSize: 30
concurrency: 2
timeout: 4000
followRedirects: true
enableSchemaUrlRedirect: true
rewrite: true
# Custom queries to get information about a resource or container
resourceExistsQuery: "ASK { GRAPH ?g { <{{iri}}> ?p ?o }}"
resourceGraphQuery: "#pragma describe.strategy cbd\nDESCRIBE <{{iri}}>"
containerExistsQuery: "ASK { GRAPH ?g { <{{iri}}> ?p ?o }}"
containerGraphQuery: "#pragma describe.strategy cbd\nDESCRIBE <{{iri}}>"