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?#
readonlyoptionalbasis?: readonlystring[]
Defined in: editor/src/inspector/metadata/edits.ts:29
date#
readonlydate:string
Defined in: editor/src/inspector/metadata/edits.ts:26
match?#
readonlyoptionalmatch?:"exact"|"close"|"broad"|"narrow"|"related"
Defined in: editor/src/inspector/metadata/edits.ts:30
method#
readonlymethod:"manual"|"reconciled"|"imported"|"inferred"
Defined in: editor/src/inspector/metadata/edits.ts:27
service?#
readonlyoptionalservice?:string
Defined in: editor/src/inspector/metadata/edits.ts:28
stated_by#
readonlystated_by: readonly [string]
Defined in: editor/src/inspector/metadata/edits.ts:25
Variables#
TIE_NOTE#
constTIE_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#
pairs#
readonly Pair[]
fields#
Returns#
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#
subject#
readonly PathSegment[]
__namedParameters#
Pair
actor#
string
belief#
"true" | "false" | "unlikely"
day#
string
Returns#
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#
after#
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#
__namedParameters#
Pair
Returns#
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#
row#
actor#
string
day#
string
Returns#
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#
prefixes#
Readonly<Record<string, string>>
day#
string
Returns#
Pair[]