inspector/metadata/proposals#

Interfaces#

Failure#

Defined in: editor/src/inspector/metadata/proposals.ts:153

A system that could not be asked, and why.

Properties#

message#

readonly message: string

Defined in: editor/src/inspector/metadata/proposals.ts:155

system#

readonly system: string

Defined in: editor/src/inspector/metadata/proposals.ts:154


Placed#

Defined in: editor/src/inspector/metadata/proposals.ts:187

How many proposals one element was given: the timeline or region of that ID, or the bundle (null).

Properties#

count#

readonly count: number

Defined in: editor/src/inspector/metadata/proposals.ts:189

holder#

readonly holder: string | null

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


Question#

Defined in: editor/src/inspector/metadata/proposals.ts:123

One reconcile call: the names of one kind looked up in one system.

Properties#

kind#

readonly kind: ValueKind

Defined in: editor/src/inspector/metadata/proposals.ts:125

system#

readonly system: string

Defined in: editor/src/inspector/metadata/proposals.ts:124

texts#

readonly texts: readonly string[]

Defined in: editor/src/inspector/metadata/proposals.ts:126


Unreconciled#

Defined in: editor/src/inspector/metadata/proposals.ts:38

A name stated without an identifier, and where it could be looked up.

Properties#

holder#

readonly holder: string | null

Defined in: editor/src/inspector/metadata/proposals.ts:40

The ID of the timeline or region whose statements hold it; null for the bundle’s.

kind#

readonly kind: ValueKind

Defined in: editor/src/inspector/metadata/proposals.ts:48

The kind of value its verb takes.

label#

readonly label: string

Defined in: editor/src/inspector/metadata/proposals.ts:46

node#

readonly node: JsonObject

Defined in: editor/src/inspector/metadata/proposals.ts:45

The value node as stated.

property#

readonly property: string

Defined in: editor/src/inspector/metadata/proposals.ts:43

subject#

readonly subject: readonly PathSegment[]

Defined in: editor/src/inspector/metadata/proposals.ts:42

The element or value node stating it.

systems#

readonly systems: readonly string[]

Defined in: editor/src/inspector/metadata/proposals.ts:50

The systems its verb can be stated in that the lookup searches for that kind, preferred first.

Type Aliases#

Answers#

Answers = ReadonlyMap<string, Candidate | null>

Defined in: editor/src/inspector/metadata/proposals.ts:145

The best candidate of each name per system and kind, null where none was found.

Variables#

RECONCILING#

const RECONCILING: readonly string[]

Defined in: editor/src/inspector/metadata/proposals.ts:32

The systems names are reconciled in, in the order their candidates are preferred.

Functions#

answerKey()#

answerKey(system, kind, text): string

Defined in: editor/src/inspector/metadata/proposals.ts:148

The key of a name’s answer.

Parameters#

system#

string

kind#

ValueKind

text#

string

Returns#

string


answersTo()#

answersTo(lookup, questions, signal?): Promise<{ answers: Answers; failures: readonly Failure[]; }>

Defined in: editor/src/inspector/metadata/proposals.ts:159

Ask every question; a system that fails answers nothing and is named among the failures.

Parameters#

lookup#

Lookup

questions#

readonly Question[]

signal?#

AbortSignal

Returns#

Promise<{ answers: Answers; failures: readonly Failure[]; }>


frameIn()#

frameIn(view, frame): Frame | null

Defined in: editor/src/inspector/metadata/proposals.ts:312

frame as it stands in view now: its block’s current manifest and skeleton, the element’s path in it; null when the block or the element is gone.

Parameters#

view#

View

frame#

Frame

Returns#

Frame | null


proposalNote()#

proposalNote(label): string

Defined in: editor/src/inspector/metadata/proposals.ts:182

The note of a candidate found for a name, in words: which stated name it was looked up for.

Parameters#

label#

string

Returns#

string


proposed()#

proposed(frame, found, answers, prefixes, day): object

Defined in: editor/src/inspector/metadata/proposals.ts:203

The skeleton with the best candidate of each name written as TiLiE’s candidate (TimeToShare’s withCandidate): the candidate of the first system in RECONCILING that found one, {id} under the name’s property on the name’s subject, reconciled by the candidate’s service on day, its match exact where the service says it matches and none where it says nothing, and the note naming the name. A pair the subject already states, or has any entry of (a candidate, believed false by someone or not), is passed over. With the number proposed, and how many went to each element (placed, those given one, in the order of their names).

Parameters#

frame#

Frame

found#

readonly Unreconciled[]

answers#

Answers

prefixes#

Readonly<Record<string, string>>

day#

string

Returns#

object

count#

readonly count: number

placed#

readonly placed: readonly Placed[]

skeleton#

readonly skeleton: Skeleton


proposedText()#

proposedText(placed, here, words): string

Defined in: editor/src/inspector/metadata/proposals.ts:255

What the panel says after proposing: how many, and where they are listed. All on the element shown (here, its ID or null for the bundle): they are listed under its Candidates. Some on elements below it: the count here, then each other element’s count and its words (words), in placed’s order: “Proposed 3 matches: 2 here, 1 on timeline ‘clt_6’; …”.

Parameters#

placed#

readonly Placed[]

here#

string | null

words#

(holder) => string

Returns#

string


questionsOf()#

questionsOf(found): Question[]

Defined in: editor/src/inspector/metadata/proposals.ts:130

The calls the names need: one per system and kind, systems preferred first, each name once.

Parameters#

found#

readonly Unreconciled[]

Returns#

Question[]


statedForName()#

statedForName(frame, row, actor, day): Skeleton | null

Defined in: editor/src/inspector/metadata/proposals.ts:282

The skeleton with a candidate for a name stated by actor on day: where the candidate’s value is a thing (a node with id) and its subject states exactly one name under a property of the same IRI (a value node with a label and no id), that name is taken out and the thing stated in its place, the name’s node with the thing’s id, so its label and other keys stay; the candidate’s entry becomes the stated pair’s, with the actor’s belief true. null for any other candidate, and where several names could be the one: the candidate is then stated as it is. The entry’s note is words and is never read.

Parameters#

frame#

Frame

row#

CandidateRow

actor#

string

day#

string

Returns#

Skeleton | null


unreconciledOf()#

unreconciledOf(frame, catalogue, lookup): Unreconciled[]

Defined in: editor/src/inspector/metadata/proposals.ts:80

The names stated without an identifier by the frame’s element and every timeline and region below it, value nodes within value nodes included, in the order of the holders and their pairs: each a value node without id whose label is not blank, under a property a catalogue verb reads (the node read as the thing it names), offered where at least one system of RECONCILING can state the verb and the lookup searches it for the verb’s kind of value.

Parameters#

frame#

Frame

catalogue#

Catalogue

lookup#

Lookup

Returns#

Unreconciled[]