a b/example/uts/uts.conf
1
## application context configuration imported by example app
2
## see https://plandes.github.io/util/doc/config.html#application-context
3
[default]
4
# root directory given by the application, which is the parent directory
5
root_dir = ${appenv:root_dir}/..
6
# the directory to hold the cached UMLS data
7
cache_dir = ${root_dir}/cache
8
9
[import]
10
# refer to sections for which we need substitution in this file
11
references = list: uts, default
12
sections = list: imp_uts_key, imp_conf
13
14
# import the Zensols NLP UTS resource library
15
[imp_conf]
16
type = importini
17
config_file = resource(zensols.mednlp): resources/uts.conf
18
19
# import UTS key for access
20
[imp_uts_key]
21
type = json
22
default_section = uts
23
config_file = ${default:root_dir}/uts-key.json
24
25
# UTS (UMLS access)
26
[uts]
27
cache_file = ${default:cache_dir}/uts-request.dat
28
29
# indicate what class to use as the application (methods are action)
30
[app]
31
class_name = ${program:name}.Application
32
uts_client = instance: uts_client