Class: APIOntologyV2
An interface representing an Entity object.
Interface
IEntity
Implements
Table of contents
Properties
Constructors
Methods
Properties
attributes
• attributes: string[]
Implementation of
id
• id: string
A globally unique identifier for the Entity.
Implementation of
metadata
• metadata: OntologyMetadata
Implementation of
roots
• roots: string[]
Implementation of
title
• title: string
Implementation of
creator
• creator: string
The creator of the Entity.
Implementation of
structureIds
• structureIds: string[]
Implementation of
createdAt
• Optional createdAt: Date
The date and time when the Entity was created.
Implementation of
updatedAt
• Optional updatedAt: Date
The date and time when the Entity was last updated.
Implementation of
updatedBy
• Optional updatedBy: string
The user who last updated the Entity.
Implementation of
v2
• v2: true
Constructors
constructor
• new APIOntologyV2(ontology)
Parameters
| Name | Type |
|---|---|
ontology | Partial<APIOntologyV2> |
Methods
toJSON
▸ toJSON(): Object
Returns
Object
| Name | Type |
|---|---|
id | string |
creator | string |
title | string |
roots | string[] |
structureIds | string[] |
metadata | OntologyMetadata |
attributes | string[] |
createdAt | Date |
updatedAt | Date |
updatedBy | string |
v2 | true |