Skip to content

Commit

Permalink
Draft SemanticModelProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
skodapetr committed Jan 21, 2025
1 parent b8a4f90 commit 8630dd7
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions packages/core-v2/src/semantic-model/profile/concepts/concepts.ts
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[];

}

0 comments on commit 8630dd7

Please sign in to comment.