Home > @datashaper/workflow > Resource
Signature:
export declare abstract class Resource extends Named implements ResourceSchema, Resource Extends: Named
Implements: ResourceSchema, Resource
| Property | Modifiers | Type | Description |
|---|---|---|---|
| $schema | readonly |
string | undefined | Gets the resource schema |
| dataPackage | protected |
DataPackage | undefined | |
| homepage | string | undefined | ||
| isConnected | readonly |
boolean | |
| license | string | undefined | ||
| path | ResourceSchema['path'] | ||
| profile | readonly |
Profile | undefined | Gets the resource profile |
| rel | ResourceSchema['rel'] | ||
| sources | (Resource | ResourceReference)[] |
| Method | Modifiers | Description |
|---|---|---|
| connect(dp, top) | Connects this resource to the given data package | |
| defaultName() | ||
| dispose() | ||
| getSourcesWithProfile(type) | Gets the sources of this resource that match the given profile type | |
| isReference() | ||
| loadSchema(value, quiet) | ||
| toSchema() |