inspector/metadata/edits#

Interfaces#

EntryFields#

Defined in: editor/src/inspector/metadata/edits.ts:24

The paradata written for every pair an Add states; the person in stated_by believes it true.

Properties#

basis?#

readonly optional basis?: readonly string[]

Defined in: editor/src/inspector/metadata/edits.ts:29

date#

readonly date: string

Defined in: editor/src/inspector/metadata/edits.ts:26

match?#

readonly optional match?: "exact" | "close" | "broad" | "narrow" | "related"

Defined in: editor/src/inspector/metadata/edits.ts:30

method#

readonly method: "manual" | "reconciled" | "imported" | "inferred"

Defined in: editor/src/inspector/metadata/edits.ts:27

service?#

readonly optional service?: string

Defined in: editor/src/inspector/metadata/edits.ts:28

stated_by#

readonly stated_by: readonly [string]

Defined in: editor/src/inspector/metadata/edits.ts:25

Variables#

TIE_NOTE#

const TIE_NOTE: "written by “+ Add vocabulary” to keep the value with the thing it was chosen for" = "written by “+ Add vocabulary” to keep the value with the thing it was chosen for"

Defined in: editor/src/inspector/metadata/edits.ts:49

The note of the “same as” a tie writes, in words.

Functions#

added()#

added(frame, pairs, fields): Skeleton

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

The skeleton with pairs stated on the frame’s element, each with its paradata from fields and the belief true of the person who states it (fields.stated_by) on fields.date.

Parameters#

frame#

Frame

pairs#

readonly Pair[]

fields#

EntryFields

Returns#

Skeleton


believed()#

believed(frame, subject, __namedParameters, actor, belief, day): Skeleton

Defined in: editor/src/inspector/metadata/edits.ts:103

The skeleton with actor’s belief in the pair of the subject at subject (the frame’s element or a value node it states), on day, replacing the actor’s earlier one; whether the pair is stated stays as it is.

Parameters#

frame#

Frame

subject#

readonly PathSegment[]

__namedParameters#

Pair

actor#

string

belief#

"true" | "false" | "unlikely"

day#

string

Returns#

Skeleton


commandOf()#

commandOf(frame, after): SetCommand | null

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

The one set changing the frame’s block from frame.skeleton to after: a change per element whose statements or provenance differ, holding only the members that differ (null for one gone); null when nothing differs.

Parameters#

frame#

Frame

after#

Skeleton

Returns#

SetCommand | null


dayOf()#

dayOf(now): string

Defined in: editor/src/inspector/metadata/edits.ts:171

The calendar date of now in the viewer’s time zone, YYYY-MM-DD: the day a statement is made.

Parameters#

now#

Date

Returns#

string


removed()#

removed(frame, __namedParameters): Skeleton

Defined in: editor/src/inspector/metadata/edits.ts:94

The skeleton without the pair the frame’s element states, and its provenance entry.

Parameters#

frame#

Frame

__namedParameters#

Pair

Returns#

Skeleton


stated()#

stated(frame, row, actor, day): Skeleton

Defined in: editor/src/inspector/metadata/edits.ts:119

The skeleton with a candidate stated by actor on day: the pair stated, its entry kept as the stated pair’s, and the actor’s belief true recorded in it.

Parameters#

frame#

Frame

row#

CandidateRow

actor#

string

day#

string

Returns#

Skeleton


tied()#

tied(pairs, thing, prefixes, day): Pair[]

Defined in: editor/src/inspector/metadata/edits.ts:58

pairs with every value node whose id names another thing than thing tied to it: schema:sameAs gains {id: <thing, compact>}, once, and the node’s provenance an entry saying so: inferred by TiLiE on day from the thing, with TIE_NOTE; no one believes it.

Parameters#

pairs#

readonly Pair[]

thing#

Thing

prefixes#

Readonly<Record<string, string>>

day#

string

Returns#

Pair[]