All files / HAL APITerms.js

100% Statements 21/21
100% Branches 0/0
100% Functions 0/0
100% Lines 21/21
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 45 46 47                                            1x 1x 1x 1x 1x 1x 1x   1x   1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x   1x 1x  
/*
 * Grakn - A Distributed Semantic Database
 * Copyright (C) 2016  Grakn Labs Limited
 *
 * Grakn is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Grakn is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Grakn. If not, see <http://www.gnu.org/licenses/gpl.txt>.
 */
 
/*
 * Keys used in HAL API JSON Objects
 */
 
export const RELATION_TYPE = 'RELATION';
export const TYPE_TYPE = 'TYPE';
export const RULE_TYPE = 'RULE';
export const RESOURCE_TYPE = 'RESOURCE';
export const ROLE_TYPE = 'ROLE';
export const ENTITY_TYPE = 'ENTITY';
export const GENERATED_RELATION_TYPE = 'generated-relation';
 
export const ROOT_CONCEPT = 'concept';
 
export const KEY_EMPTY_ROLE_NAME = 'EMPTY-GRAKN-ROLE';
export const KEY_ID = '_id';
export const KEY_EMBEDDED = '_embedded';
export const KEY_TYPE = '_type';
export const KEY_BASE_TYPE = '_baseType';
export const KEY_VALUE = 'value';
export const KEY_ONTOLOGY = 'ontology';
export const KEY_SELF = 'self';
export const KEY_LINKS = '_links';
export const KEY_HREF = 'href';
export const KEY_DIRECTION = '_direction';
 
export const SHELL_REQUEST = 'shell';
export const HAL_REQUEST = 'hal';