-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
44 lines (36 loc) · 1.29 KB
/
config.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
import path from 'path';
/**
* settings to generate Wikidata caches beforehand
*/
export default {
// wikidata dump version
wdDump: path.join(__dirname,'..', '..', '..', 'wikidata-20220502-all.json.gz'),
/**
* interval to log progress while traversing the dump
*/
logInterval: 10000,
/**
* config for wikipedia cache population
*/
// wikipedia dump version
dumpDate : '20220501',
// wikipedia database user
user: 'root',
// wikipedia database password
password: 'wikipedia',
// wikipedia database name
databaseName: 'wikipedia',
// number of times to send same request by wikipedia download
maxRetries: 20 ,
//time in seconds
defaultDelay: 10 ,
linkPrefix: 'https://dumps.wikimedia.org/',
tables : ['categorylinks.sql.gz', 'page.sql.gz', 'page_props.sql.gz'],
dumpLocation: path.join(__dirname,'..', '..','wikipedia-dump/'),
importError: path.join(__dirname,'..', '..','cache/import-error-log.json'),
timeLog: path.join(__dirname,'..', '..','cache/time-log.json'),
downloadError: path.join(__dirname,'..', '..','wikipedia-dump/download-error-log.json'),
wikidataDumpLangList: path.join(__dirname,'..', '..','wikipedia-dump/wd-lang-list.json'),
catGroupedBylang: path.join(__dirname,'..', '..','wikipedia-dump/cat-by-lang.json'),
maxValues: 10000
};