Type Alias: VocabularySourceItem
@kortexya/reasoninglayer / VocabularySourceItem
Type Alias: VocabularySourceItem
Section titled “Type Alias: VocabularySourceItem”VocabularySourceItem = {
coordinates:VocabularyImportCoordinates;item:"statement";object:VocabularySourceTerm;predicate:string;subject:VocabularySourceTerm; } | {cells:Record<string,string>;coordinates:VocabularyImportCoordinates;formulas:string[];item:"row"; } | {coordinates:VocabularyImportCoordinates;item:"record";record:JsonValue; } | {coordinates:VocabularyImportCoordinates;item:"rejected";message:string;reason:string; }
Defined in: src/types/vocabulary.ts:5737
One item of an import as read, before any interpretation.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ coordinates: VocabularyImportCoordinates; item: "statement"; object: VocabularySourceTerm; predicate: string; subject: VocabularySourceTerm; }
coordinates
Section titled “coordinates”coordinates:
VocabularyImportCoordinates
Where it is.
item:
"statement"
Discriminator: one RDF statement.
object
Section titled “object”object:
VocabularySourceTerm
The object.
predicate
Section titled “predicate”predicate:
string
The predicate IRI.
subject
Section titled “subject”subject:
VocabularySourceTerm
The subject (an IRI or a blank node).
Type Literal
Section titled “Type Literal”{ cells: Record<string, string>; coordinates: VocabularyImportCoordinates; formulas: string[]; item: "row"; }
cells:
Record<string,string>
The non-empty cells, by column letter (A, B, …).
coordinates
Section titled “coordinates”coordinates:
VocabularyImportCoordinates
Where it is.
formulas
Section titled “formulas”formulas:
string[]
The columns whose value is a formula’s cached value (never evaluated).
item:
"row"
Discriminator: one table row.
Type Literal
Section titled “Type Literal”{ coordinates: VocabularyImportCoordinates; item: "record"; record: JsonValue; }
coordinates
Section titled “coordinates”coordinates:
VocabularyImportCoordinates
Where it is.
item:
"record"
Discriminator: one record of a kos-json/v1 document.
record
Section titled “record”record:
JsonValue
The record, exactly as exported.
Type Literal
Section titled “Type Literal”{ coordinates: VocabularyImportCoordinates; item: "rejected"; message: string; reason: string; }
coordinates
Section titled “coordinates”coordinates:
VocabularyImportCoordinates
Where it is.
item:
"rejected"
Discriminator: a part the parser could not read, or chose not to.
message
Section titled “message”message:
string
The explanation.
reason
Section titled “reason”reason:
string
The reason code (syntax_error, invalid_utf8, macro_content_ignored, …).
Remarks
Section titled “Remarks”Wire format: internally tagged by item. A row’s cells are keyed by
column letter (data, kept verbatim). A record is one kos-json/v1 record
exactly as the artefact holds it, so it stays an arbitrary JSON value.