-
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.
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
packages/core-v2/src/semantic-model/profile/concepts/concepts.ts
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { LanguageString, SemanticModelEntity } from "../../concepts"; | ||
|
||
export enum ProfiledItem { | ||
|
||
EntityName = "EntityName", | ||
|
||
EntityDescription = "EntityDescription" , | ||
|
||
BinaryRelationRange = "BinaryRelationRange", | ||
|
||
BinaryRelationRangeCardinality = "BinaryRelationRangeCardinality", | ||
|
||
BinaryRelationDomain = "BinaryRelationDomain", | ||
|
||
BinaryRelationDomainCardinality = "BinaryRelationDomainCardinality", | ||
|
||
ProfileUsageNote = "ProfileUsageNote", | ||
|
||
} | ||
|
||
/** | ||
* Represents a profile relation. | ||
* A profiling entity express use of profiled entity in a user given context. | ||
* | ||
* The profiled entity can inherit, using profiledProperties, | ||
* values from the profiled entity. | ||
*/ | ||
export interface SemanticModelProfile extends SemanticModelEntity { | ||
|
||
/** | ||
* User given information about the profile. | ||
*/ | ||
usageNote: LanguageString | null; | ||
|
||
/** | ||
* Identification of the profiled entity. | ||
*/ | ||
profiled: string; | ||
|
||
/** | ||
* Identification of profiling entity. | ||
*/ | ||
profiling: string; | ||
|
||
/** | ||
* Identification of properties that are used from the profiled entity. | ||
* This acts as a allow/white list. | ||
*/ | ||
profiledProperties: ProfiledItem[]; | ||
|
||
} | ||
|