import { ElementTypeIri , LinkTypeIri } from './model' ; import { generate128BitID } from './utils' ; export const DIAGRAM_CONTEXT_URL_V1 = 'https://ontodia.org/context/v1.json' ; export const PLACEHOLDER_ELEMENT_TYPE = 'http://ontodia.org/NewEntity' as ElementTypeIri ; export const PLACEHOLDER_LINK_TYPE = 'http://ontodia.org/NewLink' as LinkTypeIri ; const ONTODIA_ID_URL_PREFIX = 'http://ontodia.org/data/' ; export namespace GenerateID { export function forElement ( ) { return `${ ONTODIA_ID_URL_PREFIX }e_${ generate128BitID ( ) }` ; } export function forLink ( ) { return `${ ONTODIA_ID_URL_PREFIX }l_${ generate128BitID ( ) }` ; } } export namespace TemplateProperties { export const PinnedProperties = 'ontodia:pinnedProperties' ; export const CustomLabel = 'ontodia:customLabel' ; }