@coasys/ad4m / Exports / PropertyMetadata
Interface: PropertyMetadata
Metadata for a single property extracted from decorators.
Table of contents
Properties
- flag
- getter
- initial
- local
- name
- predicate
- prologGetter
- prologSetter
- readOnly
- required
- resolveLanguage
- transform
Properties
flag
• Optional flag: boolean
Whether this is a flag property
Defined in
core/src/model/types.ts:753 (opens in a new tab)
getter
• Optional getter: string
Custom getter code
Defined in
core/src/model/types.ts:747 (opens in a new tab)
initial
• Optional initial: string
Initial value if specified
Defined in
core/src/model/types.ts:734 (opens in a new tab)
local
• Optional local: boolean
Whether stored locally only
Defined in
core/src/model/types.ts:749 (opens in a new tab)
name
• name: string
The property name
Defined in
core/src/model/types.ts:726 (opens in a new tab)
predicate
• predicate: string
The predicate URI (through value)
Defined in
core/src/model/types.ts:728 (opens in a new tab)
prologGetter
• Optional prologGetter: string
Custom Prolog getter code
Defined in
core/src/model/types.ts:743 (opens in a new tab)
prologSetter
• Optional prologSetter: string
Custom Prolog setter code
Defined in
core/src/model/types.ts:745 (opens in a new tab)
readOnly
• readOnly: boolean
Whether the property is read-only
Defined in
core/src/model/types.ts:732 (opens in a new tab)
required
• required: boolean
Whether the property is required
Defined in
core/src/model/types.ts:730 (opens in a new tab)
resolveLanguage
• Optional resolveLanguage: string
Sole selector of storage mode:
- unset → deterministic typed literal (fast POS-index
path, the default for a plain
@Property()) "literal"→ signed envelope on the built-in literal language<custom address>→ expression on that custom language
Defined in
core/src/model/types.ts:741 (opens in a new tab)
transform
• Optional transform: NodeExpression
Transform function