workflow.resource.md
January 18, 2023 ยท View on GitHub
Home > @datashaper/workflow > Resource
Resource class
Signature:
export declare abstract class Resource extends Named implements ResourceSchema, Resource
Extends: Named
Implements: ResourceSchema, Resource
Properties
| 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)[] |
Methods
| 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() |