Resource
Defined in: core/resource/Resource.ts:11
Data Resource interface built on top of the Data Package standard and Polars DataFrames
https://datapackage.org/standard/data-resource/
Extends
Section titled “Extends”Indexable
Section titled “Indexable”[key: `${string}:${string}`]: any
Properties
Section titled “Properties”$schema?
Section titled “$schema?”
optional$schema:string
Defined in: core/resource/Resource.ts:15
JSON schema profile URL for validation
bytes?
Section titled “bytes?”
optionalbytes:number
Defined in: core/resource/Resource.ts:72
Size of the file in bytes
optionaldata:unknown
Defined in: core/resource/Resource.ts:33
Inline data content instead of referencing an external file Either path or data must be provided
description?
Section titled “description?”
optionaldescription:string
Defined in: core/resource/Resource.ts:67
A description of the resource
dialect?
Section titled “dialect?”
optionaldialect:string|Dialect
Defined in: core/resource/Resource.ts:94
Table dialect specification Describes delimiters, quote characters, etc.
https://datapackage.org/standard/table-dialect/
encoding?
Section titled “encoding?”
optionalencoding:string
Defined in: core/resource/Resource.ts:57
Character encoding of the resource
Default
Section titled “Default”"utf-8"format?
Section titled “format?”
optionalformat:string
Defined in: core/resource/Resource.ts:45
The file format
Example
Section titled “Example”"csv", "json", "xlsx"
optionalhash:string
Defined in: core/resource/Resource.ts:77
Hash of the resource data
licenses?
Section titled “licenses?”
optionallicenses:License[]
Defined in: core/resource/Resource.ts:87
License information
mediatype?
Section titled “mediatype?”
optionalmediatype:string
Defined in: core/resource/Resource.ts:51
The media type of the resource
Example
Section titled “Example”"text/csv", "application/json"name:
string
Defined in: core/resource/Resource.ts:21
Unique resource identifier Should use lowercase alphanumeric characters, periods, hyphens, and underscores
optionalpath:string|string[]
Defined in: core/resource/Resource.ts:27
A reference to the data itself, can be a path URL or array of paths Either path or data must be provided
schema?
Section titled “schema?”
optionalschema:string|Schema
Defined in: core/resource/Resource.ts:101
Schema for the tabular data Describes fields in the table, constraints, etc.
https://datapackage.org/standard/table-schema/
sources?
Section titled “sources?”
optionalsources:Source[]
Defined in: core/resource/Resource.ts:82
Data sources
title?
Section titled “title?”
optionaltitle:string
Defined in: core/resource/Resource.ts:62
Human-readable title
optionaltype:"table"
Defined in: core/resource/Resource.ts:39
The resource type
Example
Section titled “Example”"table"