inspector/metadata/frame#
Interfaces#
CandidateRow#
Defined in: editor/src/inspector/metadata/frame.ts:225
A candidate of the shown element or of a value node it states: a pair held only in provenance.
Properties#
heading#
readonlyheading:string
Defined in: editor/src/inspector/metadata/frame.ts:230
key#
readonlykey:string
Defined in: editor/src/inspector/metadata/frame.ts:227
The canonical text of subject, property and value.
label#
readonlylabel:ShownIri
Defined in: editor/src/inspector/metadata/frame.ts:232
The value in words: its label, an element’s name, a literal’s text, else its IRI as shown.
line#
readonlyline:EntryLine
Defined in: editor/src/inspector/metadata/frame.ts:235
pair#
readonlypair:Pair
Defined in: editor/src/inspector/metadata/frame.ts:234
The pair as the statement functions take it (rdf:type read back as type).
subject#
readonlysubject: readonlyPathSegment[]
Defined in: editor/src/inspector/metadata/frame.ts:229
The path of the element or value node the pair is about.
Candidates#
Defined in: editor/src/inspector/metadata/frame.ts:239
The candidates of the shown element: those offered to the user, and those the user believes false.
Properties#
dismissed#
readonlydismissed: readonlyCandidateRow[]
Defined in: editor/src/inspector/metadata/frame.ts:241
offered#
readonlyoffered: readonlyCandidateRow[]
Defined in: editor/src/inspector/metadata/frame.ts:240
Frame#
Defined in: editor/src/inspector/metadata/frame.ts:58
The element whose statements the tab shows.
Properties#
block#
readonlyblock:Block
Defined in: editor/src/inspector/metadata/frame.ts:60
id#
readonlyid:string|null
Defined in: editor/src/inspector/metadata/frame.ts:64
The bare ID of the timeline or region; null for the bundle.
key#
readonlykey:string
Defined in: editor/src/inspector/metadata/frame.ts:74
The target’s key: what state kept for the element shown belongs to.
kind#
readonlykind:"bundle"|"timeline"|"region"
Defined in: editor/src/inspector/metadata/frame.ts:59
name#
readonlyname:string
Defined in: editor/src/inspector/metadata/frame.ts:68
The element’s name, else its ID; the manifest’s name, else its ID, for the bundle.
path#
readonlypath: readonlyPathSegment[]
Defined in: editor/src/inspector/metadata/frame.ts:72
The element’s path in the skeleton (and in the manifest).
skeleton#
readonlyskeleton:Skeleton
Defined in: editor/src/inspector/metadata/frame.ts:70
The statements of the block’s manifest alone, at the paths they have in it.
target#
readonlytarget:Address
Defined in: editor/src/inspector/metadata/frame.ts:62
The address a set of the element’s statements is aimed at: {block} for the bundle, else {block, id}.
words#
readonlywords:string
Defined in: editor/src/inspector/metadata/frame.ts:66
The element as the tab names it, core’s words.
RectangleView#
Defined in: editor/src/inspector/metadata/frame.ts:195
One verb about one thing, as a rectangle shows it.
Properties#
addable#
readonlyaddable: readonlystring[]
Defined in: editor/src/inspector/metadata/frame.ts:210
The systems “+ Add vocabulary” offers: those of the verb not yet used here.
entries#
readonlyentries: readonly (EntryLine|null)[]
Defined in: editor/src/inspector/metadata/frame.ts:208
Per pair, its provenance entry; null where it has none (the manifest states it).
heading#
readonlyheading:string
Defined in: editor/src/inspector/metadata/frame.ts:201
The verb’s words (its inverse label for an inverse reading); the property as written for none.
inverse#
readonlyinverse:boolean
Defined in: editor/src/inspector/metadata/frame.ts:199
key#
readonlykey:string
Defined in: editor/src/inspector/metadata/frame.ts:197
is_a for the empty “is a” rectangle, else the canonical text of its first pair.
label#
readonlylabel:string|null
Defined in: editor/src/inspector/metadata/frame.ts:203
The label of the thing, else a literal’s text; null for none.
pairs#
readonlypairs: readonlyPair[]
Defined in: editor/src/inspector/metadata/frame.ts:211
rows#
readonlyrows: readonlyVocabularyRow[]
Defined in: editor/src/inspector/metadata/frame.ts:206
One row per pair, in pair order.
things#
readonlythings: readonlyThing[]
Defined in: editor/src/inspector/metadata/frame.ts:204
verb#
readonlyverb:string|null
Defined in: editor/src/inspector/metadata/frame.ts:198
Thing#
Defined in: editor/src/inspector/metadata/frame.ts:178
A thing a rectangle names: its expanded IRI and the system that recognises it.
Properties#
iri#
readonlyiri:string
Defined in: editor/src/inspector/metadata/frame.ts:180
system#
readonlysystem:string|null
Defined in: editor/src/inspector/metadata/frame.ts:179
VocabularyRow#
Defined in: editor/src/inspector/metadata/frame.ts:187
One pair of a rectangle as the file writes it, its IRIs shown as slugs
(shownIri): property, value, and where the value leads.
Properties#
href#
readonlyhref:string|null
Defined in: editor/src/inspector/metadata/frame.ts:191
The value’s expanded IRI where it is an http: or https: one; else null.
property#
readonlyproperty:ShownIri
Defined in: editor/src/inspector/metadata/frame.ts:188
value#
readonlyvalue:ShownIri
Defined in: editor/src/inspector/metadata/frame.ts:189
Type Aliases#
Shown#
Shown =
Frame| {hint:string;kind:"none"; }
Defined in: editor/src/inspector/metadata/frame.ts:78
What the tab shows: an element’s statements, or a hint saying how to reach one.
Variables#
SELECT_HINT#
constSELECT_HINT:"Select a block, a timeline or a region to see its statements."="Select a block, a timeline or a region to see its statements."
Defined in: editor/src/inspector/metadata/frame.ts:81
The hint without an element: nothing selected among several blocks, or several things selected.
Functions#
candidatesOf()#
candidatesOf(
frame,catalogue,user):Candidates
Defined in: editor/src/inspector/metadata/frame.ts:549
The candidates of the frame’s element and of the value nodes it states
(TimeToShare’s candidates): those offered to the user, and apart those
the user believes false, which are not offered again.
Parameters#
frame#
catalogue#
Catalogue
user#
Returns#
describesNothing()#
describesNothing(
words):string
Defined in: editor/src/inspector/metadata/frame.ts:84
The hint for an element that has no statements: a group, a conversion map, a timestamp, …
Parameters#
words#
string
Returns#
string
entryPair()#
entryPair(
context,entry):Pair
Defined in: editor/src/inspector/metadata/frame.ts:315
The pair an annotation is about: rdf:type read back as type.
Parameters#
context#
unknown
entry#
Returns#
Pair
frameNames()#
frameNames(
frame,catalogue):IriNames
Defined in: editor/src/inspector/metadata/frame.ts:653
The names a frame’s IRIs are shown with (shownIri): the catalogue and its manifest’s context.
Parameters#
frame#
catalogue#
Catalogue
Returns#
framePrefixes()#
framePrefixes(
frame,catalogue):Readonly<Record<string,string>>
Defined in: editor/src/inspector/metadata/frame.ts:645
The prefixes a frame’s IRIs are written with: the catalogue’s and those its manifest declares.
Parameters#
frame#
catalogue#
Catalogue
Returns#
Readonly<Record<string, string>>
isNode()#
isNode(
value):value is JsonObject
Defined in: editor/src/inspector/metadata/frame.ts:250
Whether value is a node: an object that is no value object and no ordered list.
Parameters#
value#
unknown
Returns#
value is JsonObject
rectanglesOf()#
rectanglesOf(
frame,catalogue,user): readonlyRectangleView[]
Defined in: editor/src/inspector/metadata/frame.ts:397
The rectangles of the frame’s element: TimeToShare’s rectangles, “is a”
always first (empty, keyed is_a, where nothing states it).
Parameters#
frame#
catalogue#
Catalogue
user#
Returns#
readonly RectangleView[]
rectangleWords()#
rectangleWords(
rectangle):string
Defined in: editor/src/inspector/metadata/frame.ts:219
A rectangle in words: its verb, then its label, else its first value as shown (“performed by Maria João Pires”, “same as youtube:…”); the verb alone for the empty “is a”.
Parameters#
rectangle#
Returns#
string
shownOf()#
shownOf(
view,subjects,editing):Shown
Defined in: editor/src/inspector/metadata/frame.ts:162
The element whose statements the tab shows: the one selected subject’s (a
block’s bundle; a timeline, its card, a band or a part of it; a region or
its label); with nothing selected, in an editor, the edited element’s;
at the top level, the bundle of the one block when the workspace holds
exactly one. Several subjects, or nothing among several blocks, show
SELECT_HINT; an element without statements says so.
Parameters#
view#
subjects#
readonly Subject[]
editing#
Editing | null
Returns#
states()#
states(
frame,pair):boolean
Defined in: editor/src/inspector/metadata/frame.ts:639
Whether the frame’s element states pair.
Parameters#
frame#
pair#
Pair
Returns#
boolean
typeLabels()#
typeLabels(
catalogue,context,isA): readonlystring[]
Defined in: editor/src/inspector/metadata/frame.ts:590
The catalogue types an “is a” states, as few as name every pair they
can: the types typesOf finds, most vocabularies agreeing first, each
kept only where one of its alternatives names a pair no type kept before
it does.
Parameters#
catalogue#
Catalogue
context#
isA#
readonly Pair[]
Returns#
readonly string[]
typeSentence()#
typeSentence(
frame,catalogue,isA):string
Defined in: editor/src/inspector/metadata/frame.ts:630
The first rectangle’s sentence: “typeLabels), joined “a, b and c”; where
nothing states what the element is, “Nothing states yet what
Parameters#
frame#
catalogue#
Catalogue
isA#
Returns#
string