This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings.sample.rb
50 lines (46 loc) · 1.58 KB
/
settings.sample.rb
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
REST_URL = "http://rest.bioontology.org/bioportal"
API_KEY = ""
DOWNLOAD_FILES = true
ALL_ONTOLOGY_VERSIONS = false
PARSE_ONLY_LATEST = true
REPOSITORY_FOLDER = "./repo"
UMLS_DOWNLOAD_SITE = "http://localhost/umls"
# MySQL host for users.
USERS_DB_HOST = ""
USERS_DB_USERNAME = ""
USERS_DB_PASSWORD = ""
# MySQL host for OBS concept table.
OBS_DB_HOST = ""
OBS_DB_USERNAME = ""
OBS_DB_PASSWORD = ""
# MySQL host for projects and reviews.
ROR_DB_HOST = ""
ROR_DB_USERNAME = ""
ROR_DB_PASSWORD = ""
GOO_HOST = "localhost"
GOO_PORT = 9000
SEARCH_SERVER_URL = "http://ncbo-dev-app-02.stanford.edu:8080/solr/"
ANNOTATOR_DICT_FILE = "./dictionary.txt"
RESOLVER_REDIS_HOST = "localhost"
RESOLVER_REDIS_PORT = 6379
ANNOTATOR_REDIS_HOST = "localhost"
ANNOTATOR_REDIS_PORT = 6379
## DO NOT EDIT BELOW THIS LINE
# Configure ontologieS_linked_data
require "ontologies_linked_data"
require "ncbo_annotator"
repo = Kernel.const_defined?("REPOSITORY_FOLDER") ? REPOSITORY_FOLDER : "./repo"
LinkedData.config do |config|
config.repository_folder = repo
config.goo_host = GOO_HOST
config.goo_port = GOO_PORT
config.search_server_url = SEARCH_SERVER_URL
end
Annotator.config do |config|
config.mgrep_dictionary_file = ANNOTATOR_DICT_FILE
config.annotator_redis_host = ANNOTATOR_REDIS_HOST
config.annotator_redis_port = ANNOTATOR_REDIS_PORT
end
#for mappings we need sort to a folder with enough space for
#intermediate files
$TMP_SORT_FOLDER = File.join(repo,"tmp_sort")