Class: Resource
One file, table, feed, document, media item or layer.
URI: [knowtation:class/Resource](https://gitlab.tarkam.org/tarkam/knowtation/schema/class/Resource)
[String](../types/String.md) | | direct | | [name](../slots/name.md) | 1
[String](../types/String.md) | | direct | | [kind](../slots/kind.md) | 1
[ResourceKind](../enums/ResourceKind.md) | | direct | | [format](../slots/format.md) | 0..1
[String](../types/String.md) | | direct | | [location](../slots/location.md) | 0..1
[String](../types/String.md) | File path or URL | direct | | [size_bytes](../slots/size_bytes.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [sha256](../slots/sha256.md) | 0..1
[String](../types/String.md) | | direct | | [row_count](../slots/row_count.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [sampled_rows](../slots/sampled_rows.md) | 0..1
[Integer](../types/Integer.md) | When the file was too large to read whole: the rows read | direct | | [structure](../slots/structure.md) | 0..1
[TableStructure](../enums/TableStructure.md) | How a table is laid out: wide, long series, events or indicator | direct | | [standard](../slots/standard.md) | 0..1
[String](../types/String.md) | A recognised standard, for example gtfs | direct | | [publisher](../slots/publisher.md) | 0..1
[String](../types/String.md) | The organisation responsible for this file or layer | direct | | [licence](../slots/licence.md) | 0..1
[String](../types/String.md) | The licence this file or layer is published under | direct | | [keywords](../slots/keywords.md) | *
[String](../types/String.md) | Words that help people find this file or layer | direct | | [status](../slots/status.md) | 0..1
[ResourceStatus](../enums/ResourceStatus.md) | | direct | | [error](../slots/error.md) | 0..1
[String](../types/String.md) | | direct | | [title](../slots/title.md) | 0..1
[String](../types/String.md) | A short, human-readable name for this file or layer | direct | | [description](../slots/description.md) | 0..1
[String](../types/String.md) | What this file or layer contains | direct | | [temporal](../slots/temporal.md) | 0..1
[TemporalFacet](../classes/TemporalFacet.md) | | direct | | [spatial](../slots/spatial.md) | 0..1
[SpatialFacet](../classes/SpatialFacet.md) | | direct | | [text](../slots/text.md) | 0..1
[TextFacet](../classes/TextFacet.md) | | direct | | [media](../slots/media.md) | 0..1
[MediaFacet](../classes/MediaFacet.md) | | direct | | [qualitative](../slots/qualitative.md) | 0..1
[QualitativeFacet](../classes/QualitativeFacet.md) | | direct | | [elements](../slots/elements.md) | *
[Element](../classes/Element.md) | | direct | | [field_groups](../slots/field_groups.md) | *
[FieldGroup](../classes/FieldGroup.md) | | direct | | [relationships](../slots/relationships.md) | *
[Relationship](../classes/Relationship.md) | | direct | | [role](../slots/role.md) | 0..1
[ResourceRole](../enums/ResourceRole.md) | Whether the file holds data or explains another file's codes (a lookup table) | direct | | [overlaps](../slots/overlaps.md) | *
[Overlap](../classes/Overlap.md) | Observed: columns of this resource whose values are keys of another resource | direct | ## Usages | used by | used in | type | used | | --- | --- | --- | --- | | [Dataset](../classes/Dataset.md) | [resources](../slots/resources.md) | range | [Resource](../classes/Resource.md) | ## Identifier and Mapping Information ### Schema Source * from schema: https://gitlab.tarkam.org/tarkam/knowtation/schema ## Mappings | Mapping Type | Mapped Value | | --- | --- | | self | knowtation:Resource | | native | knowtation:Resource | ## LinkML Source ### Direct
### Induced
classDiagram
class Resource
click Resource href "../../classes/Resource/"
Resource : description
Resource : elements
Resource --> "*" Element : elements
click Element href "../../classes/Element/"
Resource : error
Resource : field_groups
Resource --> "*" FieldGroup : field_groups
click FieldGroup href "../../classes/FieldGroup/"
Resource : format
Resource : id
Resource : keywords
Resource : kind
Resource --> "1" ResourceKind : kind
click ResourceKind href "../../enums/ResourceKind/"
Resource : licence
Resource : location
Resource : media
Resource --> "0..1" MediaFacet : media
click MediaFacet href "../../classes/MediaFacet/"
Resource : name
Resource : overlaps
Resource --> "*" Overlap : overlaps
click Overlap href "../../classes/Overlap/"
Resource : publisher
Resource : qualitative
Resource --> "0..1" QualitativeFacet : qualitative
click QualitativeFacet href "../../classes/QualitativeFacet/"
Resource : relationships
Resource --> "*" Relationship : relationships
click Relationship href "../../classes/Relationship/"
Resource : role
Resource --> "0..1" ResourceRole : role
click ResourceRole href "../../enums/ResourceRole/"
Resource : row_count
Resource : sampled_rows
Resource : sha256
Resource : size_bytes
Resource : spatial
Resource --> "0..1" SpatialFacet : spatial
click SpatialFacet href "../../classes/SpatialFacet/"
Resource : standard
Resource : status
Resource --> "0..1" ResourceStatus : status
click ResourceStatus href "../../enums/ResourceStatus/"
Resource : structure
Resource --> "0..1" TableStructure : structure
click TableStructure href "../../enums/TableStructure/"
Resource : temporal
Resource --> "0..1" TemporalFacet : temporal
click TemporalFacet href "../../classes/TemporalFacet/"
Resource : text
Resource --> "0..1" TextFacet : text
click TextFacet href "../../classes/TextFacet/"
Resource : title
## Slots
| Name | Cardinality and Range | Description | Inheritance |
| --- | --- | --- | --- |
| [id](../slots/id.md) | 1 [String](../types/String.md) | | direct | | [name](../slots/name.md) | 1
[String](../types/String.md) | | direct | | [kind](../slots/kind.md) | 1
[ResourceKind](../enums/ResourceKind.md) | | direct | | [format](../slots/format.md) | 0..1
[String](../types/String.md) | | direct | | [location](../slots/location.md) | 0..1
[String](../types/String.md) | File path or URL | direct | | [size_bytes](../slots/size_bytes.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [sha256](../slots/sha256.md) | 0..1
[String](../types/String.md) | | direct | | [row_count](../slots/row_count.md) | 0..1
[Integer](../types/Integer.md) | | direct | | [sampled_rows](../slots/sampled_rows.md) | 0..1
[Integer](../types/Integer.md) | When the file was too large to read whole: the rows read | direct | | [structure](../slots/structure.md) | 0..1
[TableStructure](../enums/TableStructure.md) | How a table is laid out: wide, long series, events or indicator | direct | | [standard](../slots/standard.md) | 0..1
[String](../types/String.md) | A recognised standard, for example gtfs | direct | | [publisher](../slots/publisher.md) | 0..1
[String](../types/String.md) | The organisation responsible for this file or layer | direct | | [licence](../slots/licence.md) | 0..1
[String](../types/String.md) | The licence this file or layer is published under | direct | | [keywords](../slots/keywords.md) | *
[String](../types/String.md) | Words that help people find this file or layer | direct | | [status](../slots/status.md) | 0..1
[ResourceStatus](../enums/ResourceStatus.md) | | direct | | [error](../slots/error.md) | 0..1
[String](../types/String.md) | | direct | | [title](../slots/title.md) | 0..1
[String](../types/String.md) | A short, human-readable name for this file or layer | direct | | [description](../slots/description.md) | 0..1
[String](../types/String.md) | What this file or layer contains | direct | | [temporal](../slots/temporal.md) | 0..1
[TemporalFacet](../classes/TemporalFacet.md) | | direct | | [spatial](../slots/spatial.md) | 0..1
[SpatialFacet](../classes/SpatialFacet.md) | | direct | | [text](../slots/text.md) | 0..1
[TextFacet](../classes/TextFacet.md) | | direct | | [media](../slots/media.md) | 0..1
[MediaFacet](../classes/MediaFacet.md) | | direct | | [qualitative](../slots/qualitative.md) | 0..1
[QualitativeFacet](../classes/QualitativeFacet.md) | | direct | | [elements](../slots/elements.md) | *
[Element](../classes/Element.md) | | direct | | [field_groups](../slots/field_groups.md) | *
[FieldGroup](../classes/FieldGroup.md) | | direct | | [relationships](../slots/relationships.md) | *
[Relationship](../classes/Relationship.md) | | direct | | [role](../slots/role.md) | 0..1
[ResourceRole](../enums/ResourceRole.md) | Whether the file holds data or explains another file's codes (a lookup table) | direct | | [overlaps](../slots/overlaps.md) | *
[Overlap](../classes/Overlap.md) | Observed: columns of this resource whose values are keys of another resource | direct | ## Usages | used by | used in | type | used | | --- | --- | --- | --- | | [Dataset](../classes/Dataset.md) | [resources](../slots/resources.md) | range | [Resource](../classes/Resource.md) | ## Identifier and Mapping Information ### Schema Source * from schema: https://gitlab.tarkam.org/tarkam/knowtation/schema ## Mappings | Mapping Type | Mapped Value | | --- | --- | | self | knowtation:Resource | | native | knowtation:Resource | ## LinkML Source ### Direct
name: Resource
description: One file, table, feed, document, media item or layer.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
attributes:
id:
name: id
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
identifier: true
domain_of:
- Dataset
- Resource
- Element
- FieldGroup
- Proposal
- Run
- RuleSetRef
name:
name: name
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
- Element
- CodeAttribute
required: true
kind:
name: kind
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
- Relationship
range: ResourceKind
required: true
format:
name: format
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
- TemporalFacet
- MediaFacet
location:
name: location
description: File path or URL.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
size_bytes:
name: size_bytes
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: integer
sha256:
name: sha256
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
row_count:
name: row_count
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: integer
sampled_rows:
name: sampled_rows
description: 'When the file was too large to read whole: the rows read. A delimited
text file''s statistics still cover every row (a streaming pass); other formats''
statistics come from these rows. Empty means the file was read whole.'
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: integer
structure:
name: structure
annotations:
reviewable:
tag: reviewable
value: true
description: 'How a table is laid out: wide, long series, events or indicator.'
examples:
- value: long_series
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: TableStructure
standard:
name: standard
description: A recognised standard, for example gtfs.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
publisher:
name: publisher
annotations:
reviewable:
tag: reviewable
value: true
inherited:
tag: inherited
value: true
description: 'The organisation responsible for this file or layer. Empty: the
dataset''s publisher.'
examples:
- value: Example Water Agency
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
domain_of:
- Dataset
- Resource
licence:
name: licence
annotations:
reviewable:
tag: reviewable
value: true
inherited:
tag: inherited
value: true
description: 'The licence this file or layer is published under. Empty: the dataset''s
licence.'
examples:
- value: CC-BY-4.0
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
domain_of:
- Dataset
- Resource
keywords:
name: keywords
annotations:
reviewable:
tag: reviewable
value: true
inherited:
tag: inherited
value: true
description: 'Words that help people find this file or layer. Empty: the dataset''s
keywords.'
examples:
- value: stations, daily
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
domain_of:
- Dataset
- Resource
multivalued: true
status:
name: status
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
- Proposal
- Run
range: ResourceStatus
error:
name: error
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
title:
name: title
annotations:
reviewable:
tag: reviewable
value: true
description: A short, human-readable name for this file or layer.
examples:
- value: Gauging stations
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
domain_of:
- Dataset
- Resource
- Element
description:
name: description
annotations:
reviewable:
tag: reviewable
value: true
description: What this file or layer contains.
examples:
- value: Daily readings at three stations
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
domain_of:
- Dataset
- Resource
- Element
- CodeValue
temporal:
name: temporal
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
domain_of:
- Dataset
- Resource
- Element
range: TemporalFacet
spatial:
name: spatial
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
domain_of:
- Dataset
- Resource
- Element
range: SpatialFacet
text:
name: text
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
- Element
range: TextFacet
media:
name: media
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: MediaFacet
qualitative:
name: qualitative
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: QualitativeFacet
elements:
name: elements
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: Element
multivalued: true
inlined_as_list: true
field_groups:
name: field_groups
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: FieldGroup
multivalued: true
inlined_as_list: true
relationships:
name: relationships
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: Relationship
multivalued: true
inlined_as_list: true
role:
name: role
annotations:
reviewable:
tag: reviewable
value: true
description: Whether the file holds data or explains another file's codes (a lookup
table).
examples:
- value: lookup
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
- Element
range: ResourceRole
overlaps:
name: overlaps
description: 'Observed: columns of this resource whose values are keys of another
resource.'
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
domain_of:
- Resource
range: Overlap
multivalued: true
inlined_as_list: true
name: Resource
description: One file, table, feed, document, media item or layer.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
attributes:
id:
name: id
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
identifier: true
owner: Resource
domain_of:
- Dataset
- Resource
- Element
- FieldGroup
- Proposal
- Run
- RuleSetRef
range: string
required: true
name:
name: name
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
- Element
- CodeAttribute
range: string
required: true
kind:
name: kind
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
- Relationship
range: ResourceKind
required: true
format:
name: format
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
- TemporalFacet
- MediaFacet
range: string
location:
name: location
description: File path or URL.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: string
size_bytes:
name: size_bytes
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: integer
sha256:
name: sha256
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: string
row_count:
name: row_count
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: integer
sampled_rows:
name: sampled_rows
description: 'When the file was too large to read whole: the rows read. A delimited
text file''s statistics still cover every row (a streaming pass); other formats''
statistics come from these rows. Empty means the file was read whole.'
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: integer
structure:
name: structure
annotations:
reviewable:
tag: reviewable
value: true
description: 'How a table is laid out: wide, long series, events or indicator.'
examples:
- value: long_series
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: TableStructure
standard:
name: standard
description: A recognised standard, for example gtfs.
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: string
publisher:
name: publisher
annotations:
reviewable:
tag: reviewable
value: true
inherited:
tag: inherited
value: true
description: 'The organisation responsible for this file or layer. Empty: the
dataset''s publisher.'
examples:
- value: Example Water Agency
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
owner: Resource
domain_of:
- Dataset
- Resource
range: string
licence:
name: licence
annotations:
reviewable:
tag: reviewable
value: true
inherited:
tag: inherited
value: true
description: 'The licence this file or layer is published under. Empty: the dataset''s
licence.'
examples:
- value: CC-BY-4.0
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
owner: Resource
domain_of:
- Dataset
- Resource
range: string
keywords:
name: keywords
annotations:
reviewable:
tag: reviewable
value: true
inherited:
tag: inherited
value: true
description: 'Words that help people find this file or layer. Empty: the dataset''s
keywords.'
examples:
- value: stations, daily
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
owner: Resource
domain_of:
- Dataset
- Resource
range: string
multivalued: true
status:
name: status
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
- Proposal
- Run
range: ResourceStatus
error:
name: error
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: string
title:
name: title
annotations:
reviewable:
tag: reviewable
value: true
description: A short, human-readable name for this file or layer.
examples:
- value: Gauging stations
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
owner: Resource
domain_of:
- Dataset
- Resource
- Element
range: string
description:
name: description
annotations:
reviewable:
tag: reviewable
value: true
description: What this file or layer contains.
examples:
- value: Daily readings at three stations
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
owner: Resource
domain_of:
- Dataset
- Resource
- Element
- CodeValue
range: string
temporal:
name: temporal
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
owner: Resource
domain_of:
- Dataset
- Resource
- Element
range: TemporalFacet
spatial:
name: spatial
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
owner: Resource
domain_of:
- Dataset
- Resource
- Element
range: SpatialFacet
text:
name: text
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
- Element
range: TextFacet
media:
name: media
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: MediaFacet
qualitative:
name: qualitative
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: QualitativeFacet
elements:
name: elements
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: Element
multivalued: true
inlined: true
inlined_as_list: true
field_groups:
name: field_groups
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: FieldGroup
multivalued: true
inlined: true
inlined_as_list: true
relationships:
name: relationships
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: Relationship
multivalued: true
inlined: true
inlined_as_list: true
role:
name: role
annotations:
reviewable:
tag: reviewable
value: true
description: Whether the file holds data or explains another file's codes (a lookup
table).
examples:
- value: lookup
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
- Element
range: ResourceRole
overlaps:
name: overlaps
description: 'Observed: columns of this resource whose values are keys of another
resource.'
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
rank: 1000
owner: Resource
domain_of:
- Resource
range: Overlap
multivalued: true
inlined: true
inlined_as_list: true