@graphty/graphty-element / index / BaseDataSourceConfig
Interface: BaseDataSourceConfig ​
Defined in: graphty-element/src/data/DataSource.ts:28
What every reader is configured with, whatever its format.
Properties ​
chunkSize? ​
optionalchunkSize?:number
Defined in: graphty-element/src/data/DataSource.ts:38
data? ​
optionaldata?:SourceData
Defined in: graphty-element/src/data/DataSource.ts:33
The file's contents, inline: text, or its bytes. Bytes are decoded by the importer, which reads a byte-order mark and an encoding declaration; a binary format (a zip) needs them.
errorLimit? ​
optionalerrorLimit?:number
Defined in: graphty-element/src/data/DataSource.ts:39
file? ​
optionalfile?:File
Defined in: graphty-element/src/data/DataSource.ts:35
A file to read, as bytes.
graphIndex? ​
optionalgraphIndex?:number
Defined in: graphty-element/src/data/DataSource.ts:44
Which graph to read from a file that holds several, by its 0-based position. The first when neither this nor graphName is given. listGraphs from ./catalog lists them.
graphName? ​
optionalgraphName?:string
Defined in: graphty-element/src/data/DataSource.ts:46
Which graph to read from a file that holds several, by its name.
url? ​
optionalurl?:string
Defined in: graphty-element/src/data/DataSource.ts:37
A URL to fetch, as bytes.