common/corpus-common-addon/addon/utils/constants.js
author ymh <ymh.work@gmail.com>
Thu, 19 Jan 2017 13:53:17 +0100
changeset 490 76da86cf9696
parent 447 38d5789e30d0
child 502 74fba571487e
permissions -rw-r--r--
External OLAC links leads now to the OLAC documentation. Closes #0025936
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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-';
429
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
     5
export const LANGUAGES_NODES = {
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
     6
  'corpus-global': 'global',
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
     7
  'corpus-regionals': 'langues régionales',
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
     8
  'corpus-oil': 'langues d\'oïl',
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
     9
  'corpus-creoles': 'les créoles',
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    10
  'corpus-non-territorials': 'langues non territoriales',
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    11
  'corpus-guyane': 'Guyane',
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    12
  'corpus-mayotte': 'Mayotte',
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    13
  'corpus-polynesia': 'Polynésie française',
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    14
  'corpus-wallis-futuna': 'Wallis et Futuna',
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    15
  'corpus-new-caledonia': 'Nouvelle-Calédonie'
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    16
};
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
    17
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    18
export const VIAF_BASE_URL = 'http://viaf.org/viaf/';
447
38d5789e30d0 Improce notice data display, correct m3.23
ymh <ymh.work@gmail.com>
parents: 429
diff changeset
    19
export const VIAF_URL_REGEXP = 'http:\\/\\/viaf\\.org\\/viaf\\/';
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    20
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    21
export const BNF_BASE_URL = 'http://data.bnf.fr/';
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    22
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    23
export const BNF_ARK_BASE_URL = 'http://ark.bnf.fr/';
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    24
export const BNF_ARK_BASE_ID = 'ark:/12148/';
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    25
304
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 160
diff changeset
    26
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
    27
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
    28
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    29
export const CORPUS_DISCOURSE_TYPES = {
304
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 160
diff changeset
    30
  '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
    31
  '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
    32
  '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
    33
  '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
    34
  '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
    35
  '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
    36
  '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
    37
  '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
    38
  '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
    39
  '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
    40
  '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
    41
  '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
    42
  '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
    43
  '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
    44
  '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
    45
  '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
    46
  '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
    47
  '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
    48
  '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
    49
  'http://ark.bnf.fr/ark:/12148/cb11949715t': 'réunions'
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    50
};
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    51
127
5cd8c3065c38 extract common functionalities to common module. First application to lexvo name resolving
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
export const DEFAULT_STORE_EXP = 3600000;
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    53
137
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    54
export const NOID_CHARS = [
304
20071981ba2a add location and geonames resolvers and api
ymh <ymh.work@gmail.com>
parents: 160
diff changeset
    55
  '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
    56
  '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
    57
  'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z'
137
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    58
];
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    59
export const NOID_CHARS_POS = {
429
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    60
  0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9,
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    61
  b: 10, c: 11, d: 12, f: 13, g: 14, h: 15, j: 16, k: 17, m: 18, n: 19,
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    62
  p: 20, q: 21, r: 22, s: 23, t: 24, v: 25, w: 26, x: 27, z: 28
137
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    63
};
429
4a0fc5c5f420 put language node names in doc-language component
ymh <ymh.work@gmail.com>
parents: 392
diff changeset
    64
490
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    65
export const OLAC_BASE_URL = {
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    66
  'http://www.language-archives.org/OLAC/1.1/linguistic-field': {
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    67
    baseUrl: 'http://www.language-archives.org/REC/field.html#',
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    68
    type: 'linguistic-field'
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    69
  },
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    70
  'http://www.language-archives.org/OLAC/1.1/discourse-type': {
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    71
    baseUrl: 'http://www.language-archives.org/REC/discourse.html#',
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    72
    type: 'discourse-type'
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    73
  },
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    74
  'http://www.language-archives.org/OLAC/1.1/linguistic-type': {
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    75
    baseUrl: 'http://www.language-archives.org/REC/type.html#',
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    76
    type: 'linguistic-type'
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    77
  },
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    78
  'http://www.language-archives.org/OLAC/1.1/role': {
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    79
    baseUrl: 'http://www.language-archives.org/REC/role.html#',
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    80
    type: 'role'
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    81
  }
76da86cf9696 External OLAC links leads now to the OLAC documentation. Closes #0025936
ymh <ymh.work@gmail.com>
parents: 447
diff changeset
    82
};