-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #898 from mff-uk/feature/model-update
Feature/model update
- Loading branch information
Showing
21 changed files
with
1,709 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Entity model | ||
|
||
Contains implementation and interfaces for supporting entity models. | ||
|
||
An entity model is a model that organizes its data into entities. An entity is a collection of data that is uniquely | ||
identifiable by an ID. In JS, entity is represented as a JSON serializable object. | ||
An entity model is a model that organizes its data into entities. | ||
An entity is a collection of data that is uniquely identifiable by an identifier. | ||
In JavaScript, entity is represented as a JSON serializable object. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
|
||
export type EntityIdentifier = string; | ||
|
||
/** | ||
* A JSON serializable object that represents an entity. | ||
* @example Semantic class, relation, generalization, etc. | ||
* Each entity is identified by its unique ID. | ||
* | ||
* @example Semantic class, relation, generalization, etc. | ||
*/ | ||
export interface Entity { | ||
id: string; | ||
|
||
id: EntityIdentifier; | ||
|
||
type: string[]; | ||
|
||
} | ||
|
||
/** | ||
* Object containing {@link Entity}s by their iri as a key | ||
* Object containing {@link Entity}s by their iri as a key. | ||
*/ | ||
export type Entities = Record<string, Entity>; | ||
export type Entities = Record<string, Entity>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.