forked from CVCEeu-dh/histograph
-
Notifications
You must be signed in to change notification settings - Fork 2
/
settings.example.js
252 lines (223 loc) · 5.06 KB
/
settings.example.js
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
/**
Config file
===
*/
module.exports = {
port: 8000,
env: 'development', // production | development
title: 'Example', // name of
authOrReadOnlyMode: false,
anonymousUser: {
props: {
firstname: 'anonymous',
lastname: 'user'
},
// username: 'anonymous',
picture: 'anonymous.jpg'
},
secret: {
cookie: 'cookie secret', // cookie salt
salt: 'salt secret for password', // password salt
activation: 'activation salt for activation link', // password salt
},
paths: {
dist: './client/dist',
media: './contents/media',
txt: './contents/txt',
accesslog: './logs/access.log',
cache: {
disambiguation: './contents/cache/disambiguation',
dbpedia: './contents/cache/dbpedia',
queries: './contents/cache/queries',
services: './contents/cache/services',
}
},
neo4j : { // > 2.2
host : {
server: 'http://localhost:7474',
user: 'neo4j',
pass: 'neo4j'
}
},
// A list of features that are enabled for this instance.
// If a feature is not defined here, it is considered disabled.
optionalFeatures: {
topicModellingTimeline: {
enabled: false,
aspect: 'foreigners-ratio',
aspectFilteringEnabled: true
}
},
/*
google analytics account to track view pages
*/
analytics: {
// account: 'UA-XXXXXXXXX-1',
domainName: 'none'
},
// list of resource fields to analyse.
// note that the language will be appended.
disambiguation: {
fields: [
'title',
'caption',
'url'
],
services: {
'yagoaida': ['en']
},
geoservices: {
'geonames': ['en', 'fr', 'de', 'nl'],
'geocoding': ['en', 'fr', 'de', 'nl']
},
typeRelatedServices: [
'instagram',
'tweet'
],
regexp: {
'textrazor':[
{
pattern: /[@#❤️📷]/g,
replace: ' '
}
]
}
},
/*
Enable the cache mechanism with redis-server
cache: {
redis: {
host: 'localhost',
port: 6379
}
},
*/
/*
Grouping on (node).type properties
(facets, loaded on view index.jade page load)
*/
types: {
resources: [
'external-text',
'picture',
'press',
'video',
'cartoon',
'facts',
'letter',
'facsimile',
'treaty',
'sound',
'table',
'article',
'schema',
'map',
'graphical-table',
'scientific-contribution',
'passport'
],
entity: [
'theme',
'location',
'place',
'person'
],
// precomputate jaccard distance for these entities only (create appear_in_same_document neo4j links)
jaccard: [
'theme',
'person'
]
},
/*
list of suppported languages
*/
languages: [
'en',
'fr',
'de',
],
/*
Imagemagick support
Enable image magick support only if imagemagick CLI are available.
Test that everything works smoothly with
mocha -g 'helpers: images'
*/
imagemagick: false,
/*
Reference values for some variable
1. trustworthiness: number of language * number of distinct services
*/
referenceValues: {
trustworthiness: 3
},
yagoaida: {
endpoint: 'https://gate.d5.mpi-inf.mpg.de/aida/service/disambiguate'
},
dbpedia: {
endpoint: 'http://dbpedia.org/data/',
lookup: {
endpoint: 'http://lookup.dbpedia.org/api/search.asmx/PrefixSearch'
}
},
viaf: {
endpoint: 'http://www.viaf.org/viaf/',
format: 'viaf.xml',
autosuggest: {
endpoint: 'http://www.viaf.org/viaf/AutoSuggest'
},
links:{
endpoint: 'http://www.viaf.org/viaf/'
}
},
/*
service for the endpoint:
https://www.wikidata.org/wiki/Special:EntityData/Q789848.json
*/
wikidata: {
entity: {
endpoint: 'https://www.wikidata.org/wiki/Special:EntityData/'
}
},
geonames : {
endpoint: 'http://api.geonames.org/searchJSON',
username: '...'
},
/*
google geocoding api, cfr https://developers.google.com/maps/documentation/geocoding/intro
Users of the free API:
2500 requests per 24 hour period.
5 requests per second.
*/
geocoding: { // google geocoding api
endpoint: 'https://maps.googleapis.com/maps/api/geocode/json',
key: '...'
},
/*
Textrazor service
uncomment to abilitate textrazor with your textrazor account.
Extractors: a list of extractors given as array, cfr textrazor documentation.
*/
// textrazor: {
// key: 'xyzxxxxxxxxxxxxxxxxx',
// endpoint: 'https://api.textrazor.com',
// extractors: ['entities']
// },
/*
Refine here the task that would be available through node scripts/manage.js task manager.
*/
availableTasks: {
'cartoDB': [
'tasks.resource.cartoDB',
'tasks.helpers.csv.stringify'
],
'discover-entities': [
'tasks.entity.discoverMany'
],
'import-resources': [
'tasks.helpers.csv.parse',
'tasks.helpers.marvin.create',
'tasks.resource.importData',
'tasks.helpers.marvin.remove'
]
}
};