common/corpus-common-addon/addon/utils/constants.js
author ymh <ymh.work@gmail.com>
Sat, 06 Aug 2016 21:27:53 +0700
changeset 260 64caee7ce38d
parent 160 c77f06ff3e54
child 304 20071981ba2a
permissions -rw-r--r--
Split document model in document and document results
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
5cd8c3065c38 extract common functionalities to common module. First application to lexvo name resolving
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
     3
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
     4
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
     5
export const VIAF_BASE_URL = 'http://viaf.org/viaf/';
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
     6
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
     7
export const BNF_BASE_URL = 'http://data.bnf.fr/';
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
     8
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
     9
export const BNF_ARK_BASE_URL = 'http://ark.bnf.fr/';
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    10
export const BNF_ARK_BASE_ID = 'ark:/12148/';
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    11
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    12
export const CORPUS_DISCOURSE_TYPES = {
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    13
    'http://ark.bnf.fr/ark:/12148/cb12083158d' : 'argumentation',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    14
    'http://ark.bnf.fr/ark:/12148/cb119783362' : 'Bavardage',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    15
    'http://ark.bnf.fr/ark:/12148/cb13319048g' : 'chansons',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    16
    'http://ark.bnf.fr/ark:/12148/cb11931724n' : 'congrès et conférences',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    17
    'http://ark.bnf.fr/ark:/12148/cb11936159v' : 'contes',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    18
    'http://ark.bnf.fr/ark:/12148/cb119317924' : 'conversation',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    19
    'http://ark.bnf.fr/ark:/12148/cb12481481z' : 'dialogue',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    20
    'http://ark.bnf.fr/ark:/12148/cb11948542x' : 'discours',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    21
    'http://ark.bnf.fr/ark:/12148/cb119341539' : 'discussion',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    22
    'http://ark.bnf.fr/ark:/12148/cb120502737' : 'enquêtes linguistiques',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    23
    'http://ark.bnf.fr/ark:/12148/cb11932135w' : 'entretiens',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    24
    'http://ark.bnf.fr/ark:/12148/cb11953414d' : 'fables',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    25
    'http://ark.bnf.fr/ark:/12148/cb11955657q' : 'lecture à haute voix',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    26
    'http://ark.bnf.fr/ark:/12148/cb11957378b' : 'musique instrumentale',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    27
    'http://ark.bnf.fr/ark:/12148/cb11937212q' : 'narration',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    28
    'http://ark.bnf.fr/ark:/12148/cb11946100d' : 'paradigme (épistémologie)',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    29
    'http://ark.bnf.fr/ark:/12148/cb119829234' : 'questionnaires',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    30
    'http://ark.bnf.fr/ark:/12148/cb119834877' : 'récitation',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    31
    'http://ark.bnf.fr/ark:/12148/cb11976851v' : 'récits personnels',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    32
    'http://ark.bnf.fr/ark:/12148/cb11949715t' : 'réunions'
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    33
};
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    34
127
5cd8c3065c38 extract common functionalities to common module. First application to lexvo name resolving
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
export const DEFAULT_STORE_EXP = 3600000;
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    36
137
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    37
export const NOID_CHARS = [
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    38
    '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    39
    'b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'm', 'n',
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    40
    'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'z'
137
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    41
];
1baa7c6bd370 add subject edition
ymh <ymh.work@gmail.com>
parents: 134
diff changeset
    42
export const NOID_CHARS_POS = {
160
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    43
    '0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9,
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    44
    'b': 10, 'c': 11, 'd': 12, 'f': 13, 'g': 14, 'h': 15, 'j': 16, 'k': 17, 'm': 18, 'n': 19,
c77f06ff3e54 add discourse controler + fixtures
ymh <ymh.work@gmail.com>
parents: 137
diff changeset
    45
    '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
    46
};