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”bytes?
Section titled “bytes?”
optional
bytes:number
Defined in: core/resource/Resource.ts:67
Size of the file in bytes
optional
data:unknown
Defined in: core/resource/Resource.ts:28
Inline data content instead of referencing an external file Either path or data must be provided
description?
Section titled “description?”
optional
description:string
Defined in: core/resource/Resource.ts:62
A description of the resource
dialect?
Section titled “dialect?”
optional
dialect:string
|Dialect
Defined in: core/resource/Resource.ts:89
Table dialect specification Describes delimiters, quote characters, etc.
https://datapackage.org/standard/table-dialect/
encoding?
Section titled “encoding?”
optional
encoding:string
Defined in: core/resource/Resource.ts:52
Character encoding of the resource
Default
Section titled “Default”"utf-8"
format?
Section titled “format?”
optional
format:string
Defined in: core/resource/Resource.ts:40
The file format
Example
Section titled “Example”"csv", "json", "xlsx"
optional
hash:string
Defined in: core/resource/Resource.ts:72
Hash of the resource data
licenses?
Section titled “licenses?”
optional
licenses:License
[]
Defined in: core/resource/Resource.ts:82
License information
mediatype?
Section titled “mediatype?”
optional
mediatype:string
Defined in: core/resource/Resource.ts:46
The media type of the resource
Example
Section titled “Example”"text/csv", "application/json"
name:
string
Defined in: core/resource/Resource.ts:16
Unique resource identifier Should use lowercase alphanumeric characters, periods, hyphens, and underscores
optional
path:string
|string
[]
Defined in: core/resource/Resource.ts:22
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?”
optional
schema:string
|Schema
Defined in: core/resource/Resource.ts:96
Schema for the tabular data Describes fields in the table, constraints, etc.
https://datapackage.org/standard/table-schema/
sources?
Section titled “sources?”
optional
sources:Source
[]
Defined in: core/resource/Resource.ts:77
Data sources
title?
Section titled “title?”
optional
title:string
Defined in: core/resource/Resource.ts:57
Human-readable title
optional
type:"table"
Defined in: core/resource/Resource.ts:34
The resource type
Example
Section titled “Example”"table"