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#

readonly heading: string

Defined in: editor/src/inspector/metadata/frame.ts:230

key#

readonly key: string

Defined in: editor/src/inspector/metadata/frame.ts:227

The canonical text of subject, property and value.

label#

readonly label: 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#

readonly line: EntryLine

Defined in: editor/src/inspector/metadata/frame.ts:235

pair#

readonly pair: 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#

readonly subject: readonly PathSegment[]

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#

readonly dismissed: readonly CandidateRow[]

Defined in: editor/src/inspector/metadata/frame.ts:241

offered#

readonly offered: readonly CandidateRow[]

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#

readonly block: Block

Defined in: editor/src/inspector/metadata/frame.ts:60

id#

readonly id: string | null

Defined in: editor/src/inspector/metadata/frame.ts:64

The bare ID of the timeline or region; null for the bundle.

key#

readonly key: string

Defined in: editor/src/inspector/metadata/frame.ts:74

The target’s key: what state kept for the element shown belongs to.

kind#

readonly kind: "bundle" | "timeline" | "region"

Defined in: editor/src/inspector/metadata/frame.ts:59

name#

readonly name: 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#

readonly path: readonly PathSegment[]

Defined in: editor/src/inspector/metadata/frame.ts:72

The element’s path in the skeleton (and in the manifest).

skeleton#

readonly skeleton: 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#

readonly target: 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#

readonly words: 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#

readonly addable: readonly string[]

Defined in: editor/src/inspector/metadata/frame.ts:210

The systems “+ Add vocabulary” offers: those of the verb not yet used here.

entries#

readonly entries: 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#

readonly heading: 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#

readonly inverse: boolean

Defined in: editor/src/inspector/metadata/frame.ts:199

key#

readonly key: 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#

readonly label: 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#

readonly pairs: readonly Pair[]

Defined in: editor/src/inspector/metadata/frame.ts:211

rows#

readonly rows: readonly VocabularyRow[]

Defined in: editor/src/inspector/metadata/frame.ts:206

One row per pair, in pair order.

things#

readonly things: readonly Thing[]

Defined in: editor/src/inspector/metadata/frame.ts:204

verb#

readonly verb: 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#

readonly iri: string

Defined in: editor/src/inspector/metadata/frame.ts:180

system#

readonly system: 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#

readonly href: 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#

readonly property: ShownIri

Defined in: editor/src/inspector/metadata/frame.ts:188

value#

readonly value: 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#

const SELECT_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#

Frame

catalogue#

Catalogue

user#

User

Returns#

Candidates


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#

JsonObject

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#

Frame

catalogue#

Catalogue

Returns#

IriNames


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#

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): readonly RectangleView[]

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#

Frame

catalogue#

Catalogue

user#

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#

RectangleView

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#

View

subjects#

readonly Subject[]

editing#

Editing | null

Returns#

Shown


states()#

states(frame, pair): boolean

Defined in: editor/src/inspector/metadata/frame.ts:639

Whether the frame’s element states pair.

Parameters#

frame#

Frame

pair#

Pair

Returns#

boolean


typeLabels()#

typeLabels(catalogue, context, isA): readonly string[]

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#

JsonObject

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: “ is a ”, the types the “is a” rectangle states in words (typeLabels), joined “a, b and c”; where nothing states what the element is, “Nothing states yet what is.”

Parameters#

frame#

Frame

catalogue#

Catalogue

isA#

RectangleView

Returns#

string