-
Notifications
You must be signed in to change notification settings - Fork 3
/
histograph.default.yml
152 lines (136 loc) · 5.72 KB
/
histograph.default.yml
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
api: # API and IO options (http://github.com/histograph/api
bindHost: 0.0.0.0 # and http://github.com/histograph/io)
bindPort: 3001
baseUrl: http://localhost:3001
defaultPathRelation: hg:liesIn # Default relation that is used to solve combined
# queries, e.g. 'hoorn, friesland'
exampleUrls:
- "/search?q=albrechtlaan"
- "/search?uri=http://vocab.getty.edu/tgn/7003626"
- "/search?id=tgn/7264385"
- "/search?q=almelo&dataset=tgn"
- "/datasets"
- "/datasets/geonames"
- "/ontology"
- "/schemas/pits"
- "/schemas/relations"
- "/stats/queue"
- "/stats/queries"
- "/stats/queries/types-per-dataset"
- "/search?q=hezingen"
- "/search?name=hoorn&type=hg:Municipality"
- "/search?name=amsterdam&related=hg:liesIn&related.q=drenthe"
- "/search?q=amsterdam,drenthe"
- "/search?q=nymegen&before=1600"
- "/search?q=hoorn&intersects={%22type%22:%22Polygon%22,%22coordinates%22:[[[4.7316,53.0150],[4.7316,53.0310],[4.7766,53.0310],[4.77664,53.0150],[4.7316,53.0150]]]}"
hairRelations: # Non-equivalence PIT-PIT relations returned by
- hg:liesIn # neo4j-plugin, in hairs array
- hg:originated # (http://github.com/histograph/neo4j-plugin)
- hg:originatedFrom
- hg:absorbed
- hg:absorbedBy
# Absolute or relative directory on file system where API's IO module keeps uploaded
# NDJSON files. IO keeps __two__ copies of each file, please make sure HD has enough
# free space!
dataDir:
# Credentials of API's admin owner - this name + password is needed when creating/deleting
# datasets and uploading data using the REST API
admin:
name:
password:
stats: # Stats options (http://github.com/histograph/stats)
enabled: false # Set enabled to false when stats module leads to
# performance problems
cronExpression: '0 0 */3 * * *' # Run every three hours
redis: # Redis connection details
host: localhost
port: 6379
queue: histograph
maxQueueSize: 50000
elasticsearch: # Elasticsearch connection details
host: localhost
port: 9200
neo4j: # Neo4j connection details + opt. authentication
host: localhost
port: 7474
core: # Core options (http://github.com/histograph/core)
batchSize: 100
batchTimeout: 250
viewer: # Viewer options (http://github.com/histograph/viewer)
language: en # Language: English ('en'), or Dutch ('nl')
mode: advanced # Mode: 'simple' or 'advanced'
logo: images/histograph.svg # Relative or absolute path to logo, image or SVG, 44px wide
# empty or null means no logo
color: 'rgb(74,187,131)' # Viewer base color
suffixFilters: # Replace these words with '' in liesIn suffixes,
- Provincie # e.g. 'Amsterdam, Provincie Noord-Holland' becomes
- Gemeente # 'Amsterdam, Noord-Holland'
data: # Data module options (http://github.com/histograph/data)
geonames:
countries:
- NL
extraUris: ./extra-uris.json
tgn:
parents:
- tgn:7016845 # The Netherlands
bag:
db:
host: localhost
port: 5432
user: postgres
password: postgres
database: bag
import: # Import options (http://github.com/histograph/import)
diffTool: diff
dirs: # Array of absolute or relative paths to directories containing
# Histograph datasets which can be imported by import module
s3: # Import can also import datasets from Amazon Web Services S3
region: # Set the S3 region, access keys and buckets in this section.
accessKeyId:
secretAccessKey:
buckets: # Array of S3 buckets
schemas: # Schema/ontology options (http://github.com/histograph/schema)
baseUri: http://rdf.histograph.io/ # Base URI, used in JSON-LD serialization
baseType: PlaceInTime
types: # Histograph's default types
- hg:Address
- hg:Building
- hg:Monument
- hg:Fort
- hg:Street
- hg:Neighbourhood
- hg:Borough
- hg:Place
- hg:Municipality
- hg:Water
- hg:Polder
- hg:Area
- hg:Region
- hg:Province
- hg:Baljuwschap
- hg:Barony
- hg:Departement
- hg:Countship
- hg:Heerlijkheid
- hg:Country
relations: # Default relations
- hg:sameHgConcept
- hg:containsHgConcept
- hg:withinHgConcept
- hg:intersectsHgConcept
- hg:absorbed
- hg:absorbedBy
- hg:originated
- hg:originatedFrom
- hg:contains
- hg:liesIn
equivalence: hg:sameHgConcept # Equivalence relation, defining whether PITs belong to
# the same concept
logo:
- " ●───────● "
- " /║ ║\\ "
- " / ║ ║ \\ "
- "● ║═══════║ ● "
- " \\ ║ ║ / "
- " \\║ ║/ "
- " ●───────● "