-
Notifications
You must be signed in to change notification settings - Fork 2
/
apiconfig.yml.example
166 lines (160 loc) · 5.03 KB
/
apiconfig.yml.example
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
# API settings
apihost: 0.0.0.0 # host where non-debugged API runs
apiport: 80
debug_host: localhost
debug_port: 8080
logfile: /tmp/lod-api.log
pidfile: /tmp/lod-api.pid
provide_endpoints:
- "lod_api.apis.source"
- "lod_api.apis.authority_provider"
- "lod_api.apis.search_and_access"
- "lod_api.apis.reconcile"
- "lod_api.apis.explore"
# Swagger configuration
frontend_url: /doc/api/ # path for swagger to run from
frontend_title: "LOD API"
# frontend_template: "fancy-template.html" # html template to render swagger into
# must me in `lod_api/swagger/templates/`
apititle: LOD API
contact: Team LOD
contact_email: [email protected]
# Elasticsearch server settings
es_host: 127.0.0.1
excludes:
- _sourceID
- _ppn
- _isil
- identifier
- nameSub
- nameShort
- url
# bibliographic data
authorities:
gnd: http://d-nb.info/gnd/
swb: http://swb.bsz-bw.de/DB=2.1/PPNSET?PPN=
viaf: http://viaf.org/viaf/
wd: http://www.wikidata.org/entity/
# field in which authority URLs can be found:
authority_path: [email protected]
indices:
http://schema.org/Book:
description: Buch
index: slub-resources # elasticsearch index
openrefine_preview_free_content:
- author>0>name
- contributor>0>name
label_field: name
type: _doc # elasticsearch doctype
http://schema.org/CreativeWork:
description: Titel
index: slub-resources
openrefine_preview_free_content:
- author>0>name
- contributor>0>name
label_field: name
type: schemaorg
http://schema.org/CreativeWorkSeries:
description: Schriftenreihe
index: slub-resources
openrefine_preview_free_content:
- author>0>name
- contributor>0>name
label_field: name
type: schemaorg
http://schema.org/Event:
description: Konferenz oder Veranstaltung
index: events
openrefine_preview_free_content: location>name
label_field: name
type: schemaorg
http://schema.org/Organization:
description: "K\xF6rperschaft"
index: organizations
openrefine_preview_free_content: location>name
label_field: name
type: schemaorg
http://schema.org/Person:
description: Individualisierte Person
index: persons
openrefine_preview_free_content: birthDate
label_field: name
type: schemaorg
http://schema.org/Place:
description: Geografikum
index: geo
openrefine_preview_free_content: adressRegion
label_field: name
type: schemaorg
http://schema.org/Thing:
description: Schlagwort
index: topics
openrefine_preview_free_content: additionalType>0>name
label_field: name
type: schemaorg
http://schema.org/Work:
description: Werk
index: works
openrefine_preview_free_content:
- author>0>name
- contributor>0>name
label_field: name
type: schemaorg
source_indices:
kxp-de14: http://127.0.0.1:9200/swb-kxp/record/
swb-aut: http://127.0.0.1:9200/gnd/record/
# OpenRefine settings
base: http://localhost:8080 # URL to reach the API
openrefine_preview_html_text:
'<html><head><meta charset="utf-8" /></head>
<body style="margin: 0px; font-family: Arial; sans-serif">
<div style="height: 100px; width: 320px; overflow: hidden; font-size: 0.7em">
<div style="margin-left: 5px;">
<a href="{id}" target="_blank" style="text-decoration: none;">{title}</a>
<span style="color: #505050;">({endpoint})</span>
<p>{content}</p>
<p>{typ}</p>
</div>
</div>
</body>
</html>
'
reconcile_doc:
defaultTypes: []
extend:
property_settings:
- default: 10
help_text: 'Maximum number of values to return per row (maximum: 1000)'
label: Limit
name: limit
type: number
- default: ''
help_text: 'Which Entity-Type to use, allwed values: '
label: Typ
name: type
type: string
propose_properties:
service_path: /reconcile/properties
service_url: base
identifierSpace: base
name: LOD reconciliation for OpenRefine
preview:
height: 100
url: base/{{id}}.preview
width: 320
schemaSpace: http://schema.org
suggest:
entity:
flyout_service_path: /reconcile/flyout/entity?id=${id}
service_path: /reconcile/suggest/entity
service_url: base
property:
flyout_service_path: /reconcile/flyout/property?id=${id}
service_path: /reconcile/suggest/property
service_url: base
type:
flyout_service_path: /reconcile/flyout/type?id=${id}
service_path: /reconcile/suggest/type
service_url: base
view:
url: base/{{id}}