common/corpus-common-addon/addon/utils/constants.js
changeset 314 f5690d918358
parent 304 20071981ba2a
child 329 0a2c2ad49d75
equal deleted inserted replaced
313:706f10bcdc3c 314:f5690d918358
     1 
       
     2 
     1 
     3 export const LEXVO_BASE_URL = 'http://lexvo.org/id/iso639-3/';
     2 export const LEXVO_BASE_URL = 'http://lexvo.org/id/iso639-3/';
     4 
     3 
     5 export const VIAF_BASE_URL = 'http://viaf.org/viaf/';
     4 export const VIAF_BASE_URL = 'http://viaf.org/viaf/';
     6 
     5 
     7 export const BNF_BASE_URL = 'http://data.bnf.fr/';
     6 export const BNF_BASE_URL = 'http://data.bnf.fr/';
     8 
     7 
     9 export const BNF_ARK_BASE_URL = 'http://ark.bnf.fr/';
     8 export const BNF_ARK_BASE_URL = 'http://ark.bnf.fr/';
    10 export const BNF_ARK_BASE_ID = 'ark:/12148/';
     9 export const BNF_ARK_BASE_ID = 'ark:/12148/';
    11 
    10 
       
    11 export const GEONAMES_BASE_URLS = 'https?:\\/\\/(?:www|sws)\\.geonames\\.org/';
       
    12 
    12 export const CORPUS_DISCOURSE_TYPES = {
    13 export const CORPUS_DISCOURSE_TYPES = {
    13     'http://ark.bnf.fr/ark:/12148/cb12083158d' : 'argumentation',
    14   'http://ark.bnf.fr/ark:/12148/cb12083158d': 'argumentation',
    14     'http://ark.bnf.fr/ark:/12148/cb119783362' : 'Bavardage',
    15   'http://ark.bnf.fr/ark:/12148/cb119783362': 'Bavardage',
    15     'http://ark.bnf.fr/ark:/12148/cb13319048g' : 'chansons',
    16   'http://ark.bnf.fr/ark:/12148/cb13319048g': 'chansons',
    16     'http://ark.bnf.fr/ark:/12148/cb11931724n' : 'congrès et conférences',
    17   'http://ark.bnf.fr/ark:/12148/cb11931724n': 'congrès et conférences',
    17     'http://ark.bnf.fr/ark:/12148/cb11936159v' : 'contes',
    18   'http://ark.bnf.fr/ark:/12148/cb11936159v': 'contes',
    18     'http://ark.bnf.fr/ark:/12148/cb119317924' : 'conversation',
    19   'http://ark.bnf.fr/ark:/12148/cb119317924': 'conversation',
    19     'http://ark.bnf.fr/ark:/12148/cb12481481z' : 'dialogue',
    20   'http://ark.bnf.fr/ark:/12148/cb12481481z': 'dialogue',
    20     'http://ark.bnf.fr/ark:/12148/cb11948542x' : 'discours',
    21   'http://ark.bnf.fr/ark:/12148/cb11948542x': 'discours',
    21     'http://ark.bnf.fr/ark:/12148/cb119341539' : 'discussion',
    22   'http://ark.bnf.fr/ark:/12148/cb119341539': 'discussion',
    22     'http://ark.bnf.fr/ark:/12148/cb120502737' : 'enquêtes linguistiques',
    23   'http://ark.bnf.fr/ark:/12148/cb120502737': 'enquêtes linguistiques',
    23     'http://ark.bnf.fr/ark:/12148/cb11932135w' : 'entretiens',
    24   'http://ark.bnf.fr/ark:/12148/cb11932135w': 'entretiens',
    24     'http://ark.bnf.fr/ark:/12148/cb11953414d' : 'fables',
    25   'http://ark.bnf.fr/ark:/12148/cb11953414d': 'fables',
    25     'http://ark.bnf.fr/ark:/12148/cb11955657q' : 'lecture à haute voix',
    26   'http://ark.bnf.fr/ark:/12148/cb11955657q': 'lecture à haute voix',
    26     'http://ark.bnf.fr/ark:/12148/cb11957378b' : 'musique instrumentale',
    27   'http://ark.bnf.fr/ark:/12148/cb11957378b': 'musique instrumentale',
    27     'http://ark.bnf.fr/ark:/12148/cb11937212q' : 'narration',
    28   'http://ark.bnf.fr/ark:/12148/cb11937212q': 'narration',
    28     'http://ark.bnf.fr/ark:/12148/cb11946100d' : 'paradigme (épistémologie)',
    29   'http://ark.bnf.fr/ark:/12148/cb11946100d': 'paradigme (épistémologie)',
    29     'http://ark.bnf.fr/ark:/12148/cb119829234' : 'questionnaires',
    30   'http://ark.bnf.fr/ark:/12148/cb119829234': 'questionnaires',
    30     'http://ark.bnf.fr/ark:/12148/cb119834877' : 'récitation',
    31   'http://ark.bnf.fr/ark:/12148/cb119834877': 'récitation',
    31     'http://ark.bnf.fr/ark:/12148/cb11976851v' : 'récits personnels',
    32   'http://ark.bnf.fr/ark:/12148/cb11976851v': 'récits personnels',
    32     'http://ark.bnf.fr/ark:/12148/cb11949715t' : 'réunions'
    33   'http://ark.bnf.fr/ark:/12148/cb11949715t': 'réunions'
    33 };
    34 };
    34 
    35 
    35 export const DEFAULT_STORE_EXP = 3600000;
    36 export const DEFAULT_STORE_EXP = 3600000;
    36 
    37 
    37 export const NOID_CHARS = [
    38 export const NOID_CHARS = [
    38     '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
    39   '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
    39     'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'm', 'n',
    40   'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'm', 'n',
    40     'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z'
    41   'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z'
    41 ];
    42 ];
    42 export const NOID_CHARS_POS = {
    43 export const NOID_CHARS_POS = {
    43     '0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9,
    44   '0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9,
    44     'b': 10, 'c': 11, 'd': 12, 'f': 13, 'g': 14, 'h': 15, 'j': 16, 'k': 17, 'm': 18, 'n': 19,
    45   'b': 10, 'c': 11, 'd': 12, 'f': 13, 'g': 14, 'h': 15, 'j': 16, 'k': 17, 'm': 18, 'n': 19,
    45     'p': 20, 'q': 21, 'r': 22, 's': 23, 't': 24, 'v': 25, 'w': 26, 'x': 27, 'z': 28
    46   'p': 20, 'q': 21, 'r': 22, 's': 23, 't': 24, 'v': 25, 'w': 26, 'x': 27, 'z': 28
    46 };
    47 };