author | ymh <ymh.work@gmail.com> |
Tue, 15 Nov 2016 18:25:35 +0100 | |
changeset 425 | f99435a7006e |
parent 392 | 4fbe94af93e8 |
child 429 | 4a0fc5c5f420 |
permissions | -rw-r--r-- |
127
5cd8c3065c38
extract common functionalities to common module. First application to lexvo name resolving
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
|
160
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
2 |
export const LEXVO_BASE_URL = 'http://lexvo.org/id/iso639-3/'; |
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
3 |
|
329
0a2c2ad49d75
Improvce language visualization. Generalize language node selection, change language query parameters, add resolution of node name (corpus-) to lexvo controler
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
4 |
export const LANGUAGES_NODE_PREFIX = 'corpus-'; |
0a2c2ad49d75
Improvce language visualization. Generalize language node selection, change language query parameters, add resolution of node name (corpus-) to lexvo controler
ymh <ymh.work@gmail.com>
parents:
304
diff
changeset
|
5 |
|
160
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
6 |
export const VIAF_BASE_URL = 'http://viaf.org/viaf/'; |
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
7 |
|
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
8 |
export const BNF_BASE_URL = 'http://data.bnf.fr/'; |
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
9 |
|
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
10 |
export const BNF_ARK_BASE_URL = 'http://ark.bnf.fr/'; |
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
11 |
export const BNF_ARK_BASE_ID = 'ark:/12148/'; |
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
12 |
|
304
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
13 |
export const GEONAMES_BASE_URLS = 'https?:\\/\\/(?:www|sws)\\.geonames\\.org/'; |
392
4fbe94af93e8
Improve filter service. Centralize filter management in a single point
ymh <ymh.work@gmail.com>
parents:
329
diff
changeset
|
14 |
export const GEONAMES_BASE_URL = 'http://sws.geonames.org/'; |
304
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
15 |
|
160
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
16 |
export const CORPUS_DISCOURSE_TYPES = { |
304
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
17 |
'http://ark.bnf.fr/ark:/12148/cb12083158d': 'argumentation', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
18 |
'http://ark.bnf.fr/ark:/12148/cb119783362': 'Bavardage', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
19 |
'http://ark.bnf.fr/ark:/12148/cb13319048g': 'chansons', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
20 |
'http://ark.bnf.fr/ark:/12148/cb11931724n': 'congrès et conférences', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
21 |
'http://ark.bnf.fr/ark:/12148/cb11936159v': 'contes', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
22 |
'http://ark.bnf.fr/ark:/12148/cb119317924': 'conversation', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
23 |
'http://ark.bnf.fr/ark:/12148/cb12481481z': 'dialogue', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
24 |
'http://ark.bnf.fr/ark:/12148/cb11948542x': 'discours', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
25 |
'http://ark.bnf.fr/ark:/12148/cb119341539': 'discussion', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
26 |
'http://ark.bnf.fr/ark:/12148/cb120502737': 'enquêtes linguistiques', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
27 |
'http://ark.bnf.fr/ark:/12148/cb11932135w': 'entretiens', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
28 |
'http://ark.bnf.fr/ark:/12148/cb11953414d': 'fables', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
29 |
'http://ark.bnf.fr/ark:/12148/cb11955657q': 'lecture à haute voix', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
30 |
'http://ark.bnf.fr/ark:/12148/cb11957378b': 'musique instrumentale', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
31 |
'http://ark.bnf.fr/ark:/12148/cb11937212q': 'narration', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
32 |
'http://ark.bnf.fr/ark:/12148/cb11946100d': 'paradigme (épistémologie)', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
33 |
'http://ark.bnf.fr/ark:/12148/cb119829234': 'questionnaires', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
34 |
'http://ark.bnf.fr/ark:/12148/cb119834877': 'récitation', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
35 |
'http://ark.bnf.fr/ark:/12148/cb11976851v': 'récits personnels', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
36 |
'http://ark.bnf.fr/ark:/12148/cb11949715t': 'réunions' |
160
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
37 |
}; |
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
38 |
|
127
5cd8c3065c38
extract common functionalities to common module. First application to lexvo name resolving
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
39 |
export const DEFAULT_STORE_EXP = 3600000; |
160
c77f06ff3e54
add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents:
137
diff
changeset
|
40 |
|
137 | 41 |
export const NOID_CHARS = [ |
304
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
42 |
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
43 |
'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'm', 'n', |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
44 |
'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z' |
137 | 45 |
]; |
46 |
export const NOID_CHARS_POS = { |
|
304
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
47 |
'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
48 |
'b': 10, 'c': 11, 'd': 12, 'f': 13, 'g': 14, 'h': 15, 'j': 16, 'k': 17, 'm': 18, 'n': 19, |
20071981ba2a
add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents:
160
diff
changeset
|
49 |
'p': 20, 'q': 21, 'r': 22, 's': 23, 't': 24, 'v': 25, 'w': 26, 'x': 27, 'z': 28 |
137 | 50 |
}; |