-
Notifications
You must be signed in to change notification settings - Fork 8
/
example_config.yaml
173 lines (158 loc) · 5.16 KB
/
example_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
#This config allows you to run a local debug version of timbuctoo
#it also explains the options that you need to configure a production-worthy version
securityConfiguration:
"@class": nl.knaw.huygens.timbuctoo.security.dummy.DummySecurityFactoryConfiguration
accessFactory:
"@class": nl.knaw.huygens.timbuctoo.security.dataaccess.localfile.LocalfileAccessFactory
authorizationsPath: ${timbuctoo_dataPath}/datasets
permissionConfig: ${timbuctoo_dataPath}/permissionConfig.json
usersFilePath: ${timbuctoo_authPath}/users.json
baseUri: ${base_uri} #specifying 0 as port will replace it with the port that timbuctoo ends up listening on
userRedirectUrl: ./static/graphiql
archetypesSchema: |
type Archetypes {
persons: PersonArchetypeList @fromCollection(uri: "http://timbuctoo.huygens.knaw.nl/datasets/clusius/Persons", listAll: true)
}
type PersonArchetypeList {
prevCursor: ID
nextCursor: ID
items: [PersonArchetype!]!
}
type PersonArchetype {
names: Value @rdf(predicate: "http://timbuctoo.huygens.knaw.nl/properties/names", direction: "OUT", isValue: true, isObject: false, isList: false)
}
defaultSummaryProps:
defaultTitles:
- path:
- http://timbuctoo.huygens.knaw.nl/static/v5/predicate/names
type: SimplePath
- path:
- http://schema.org/name
type: SimplePath
- path:
- http://schema.org/title
type: SimplePath
- path:
- http://www.w3.org/2000/01/rdf-schema#label
type: SimplePath
- path:
- http://www.w3.org/2004/02/skos/core#prefLabel
type: SimplePath
defaultDescriptions:
- path:
- http://schema.org/description
type: SimplePath
defaultImages:
- path:
- http://xmlns.com/foaf/0.1/img
type: SimplePath
- path:
- http://xmlns.com/foaf/0.1/depiction
type: SimplePath
- path:
- http://schema.org/image
type: SimplePath
metadata:
props:
title:
type: SimpleMetadataProp
predicate: http://purl.org/dc/terms/title
description:
type: SimpleMetadataProp
predicate: http://purl.org/dc/terms/description
valueType: https://daringfireball.net/projects/markdown/syntax
imageUrl:
type: SimpleMetadataProp
predicate: http://xmlns.com/foaf/0.1/depiction
license:
type: UriMetadataProp
predicate: http://purl.org/dc/terms/license
owner:
type: EntityMetadataProp
predicate: http://purl.org/dc/terms/rightsHolder
useBaseUri: true
entityUri: rightsHolder
properties:
name:
type: SimpleMetadataProp
predicate: http://schema.org/name
email:
type: SimpleMetadataProp
predicate: http://schema.org/email
contact:
type: EntityMetadataProp
predicate: http://schema.org/ContactPoint
useBaseUri: true
entityUri: ContactPoint
properties:
name:
type: SimpleMetadataProp
predicate: http://schema.org/name
email:
type: SimpleMetadataProp
predicate: http://schema.org/email
provenanceInfo:
type: EntityMetadataProp
predicate: http://purl.org/dc/terms/provenance
useBaseUri: true
entityUri: Provenance
properties:
title:
type: SimpleMetadataProp
predicate: http://purl.org/dc/terms/title
body:
type: SimpleMetadataProp
predicate: http://purl.org/dc/terms/description
valueType: https://daringfireball.net/projects/markdown/syntax
databases:
databaseLocation: ${timbuctoo_dataPath}/datasets
dataSet:
dataStorage:
"@class": nl.knaw.huygens.timbuctoo.datastorage.implementations.filesystem.FileSystemDataStorage
rootDir: ${timbuctoo_dataPath}/datasets
rdfIo:
"@class": nl.knaw.huygens.timbuctoo.rdfio.implementations.rdf4j.Rdf4jIoFactory
rdfFormat: application/n-quads
# The base uri will be the base uri for all the generated RDF by Timbuctoo.
rdfUriHelper:
rdfBaseUri: http://example.org/
webhooks:
dataSetUpdatedUrls:
httpClient:
connectionRequestTimeout: 200ms
redirectionService:
"@class": nl.knaw.huygens.timbuctoo.redirectionservice.DummyRedirectionServiceFactory
# If using HandleServiceFactory you need:
# privateKeyFile:
# cypher:
# namingAuthority:
# prefix:
# If using BitlyServiceFactory you need:
# accessToken:
server:
applicationConnectors:
- type: http #Note! if you change this you might or might not also want to change the baseUri
port: ${timbuctoo_port} #Note! if you change this you might or might not also want to change the baseUri
adminConnectors:
- type: http
port: ${timbuctoo_adminPort}
requestLog:
appenders: [] #All requests are already logged using logging.LoggingFilter so the seperate requestlog is not needed
logging:
appenders:
- type: console
logFormat: "- %-5p %m [%c{60}]%n"
#enable this to send the logs to an external log server
# - type: gelf
# host: 192.168.99.100
# port: 32768
# useMarker: true #
# includeFullMDC: true #We put the request information in the MDC
level: INFO
#enable this to send the metrics to graphite
#metrics:
# reporters:
# - type: graphite
# host: 192.168.99.100
# port: 32778
# prefix: timbuctoo