Skip to content

Class: Element

Level 2. One describable part of a resource: a column, JSON path, document section or media track. Includes the structural schema (type, constraints) and optional facets.

URI: [knowtation:class/Element](https://gitlab.tarkam.org/tarkam/knowtation/schema/class/Element)
 classDiagram
    class Element
    click Element href "../../classes/Element/"
      Element : aggregation





        Element --> "0..1" Aggregation : aggregation
        click Aggregation href "../../enums/Aggregation/"



      Element : code_list





        Element --> "*" CodeValue : code_list
        click CodeValue href "../../classes/CodeValue/"



      Element : data_type





        Element --> "0..1" DataType : data_type
        click DataType href "../../enums/DataType/"



      Element : description

      Element : examples

      Element : id

      Element : missing_values

      Element : name

      Element : path

      Element : references

      Element : required

      Element : role





        Element --> "0..1" ElementRole : role
        click ElementRole href "../../enums/ElementRole/"



      Element : spatial





        Element --> "0..1" SpatialFacet : spatial
        click SpatialFacet href "../../classes/SpatialFacet/"



      Element : statistics





        Element --> "0..1" Statistics : statistics
        click Statistics href "../../classes/Statistics/"



      Element : temporal





        Element --> "0..1" TemporalFacet : temporal
        click TemporalFacet href "../../classes/TemporalFacet/"



      Element : text





        Element --> "0..1" TextFacet : text
        click TextFacet href "../../classes/TextFacet/"



      Element : title

      Element : unique

      Element : unit

      Element : unit_from


## Slots | Name | Cardinality and Range | Description | Inheritance | | --- | --- | --- | --- | | [id](../slots/id.md) | 1
[String](../types/String.md) | # | direct | | [path](../slots/path.md) | 1
[String](../types/String.md) | | direct | | [name](../slots/name.md) | 1
[String](../types/String.md) | | direct | | [title](../slots/title.md) | 0..1
[String](../types/String.md) | A short, human-readable name for the element | direct | | [description](../slots/description.md) | 0..1
[String](../types/String.md) | One sentence saying what the values mean | direct | | [role](../slots/role.md) | 0..1
[ElementRole](../enums/ElementRole.md) | What part the element plays: identifier, dimension, time, space, measure, att... | direct | | [data_type](../slots/data_type.md) | 0..1
[DataType](../enums/DataType.md) | The type of the values | direct | | [unit](../slots/unit.md) | 0..1
[String](../types/String.md) | The unit of a measure, as a short symbol | direct | | [unit_from](../slots/unit_from.md) | 0..1
[String](../types/String.md) | Id of another element that holds the unit | direct | | [aggregation](../slots/aggregation.md) | 0..1
[Aggregation](../enums/Aggregation.md) | How the measure combines over time or space | direct | | [required](../slots/required.md) | 0..1
[Boolean](../types/Boolean.md) | | direct | | [unique](../slots/unique.md) | 0..1
[Boolean](../types/Boolean.md) | | direct | | [missing_values](../slots/missing_values.md) | *
[String](../types/String.md) | | direct | | [examples](../slots/examples.md) | *
[String](../types/String.md) | | direct | | [statistics](../slots/statistics.md) | 0..1
[Statistics](../classes/Statistics.md) | | 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 | | [references](../slots/references.md) | 0..1
[String](../types/String.md) | The lookup column whose keys this element's values are: # [CodeValue](../classes/CodeValue.md) | What each code in the values means (code → meaning) | direct | ## Usages | used by | used in | type | used | | --- | --- | --- | --- | | [Resource](../classes/Resource.md) | [elements](../slots/elements.md) | range | [Element](../classes/Element.md) | ## Identifier and Mapping Information ### Schema Source * from schema: https://gitlab.tarkam.org/tarkam/knowtation/schema ## Mappings | Mapping Type | Mapped Value | | --- | --- | | self | knowtation:Element | | native | knowtation:Element | ## LinkML Source ### Direct
name: Element
description: 'Level 2. One describable part of a resource: a column, JSON path, document
  section or media track. Includes the structural schema (type, constraints) and optional
  facets.'
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
attributes:
  id:
    name: id
    description: <resource id>#<path>
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    identifier: true
    domain_of:
    - Dataset
    - Resource
    - Element
    - FieldGroup
    - Proposal
    - Run
    - RuleSetRef
  path:
    name: path
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
    required: true
  name:
    name: name
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    domain_of:
    - Resource
    - Element
    - CodeAttribute
    required: true
  title:
    name: title
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: A short, human-readable name for the element.
    examples:
    - value: Discharge
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    domain_of:
    - Dataset
    - Resource
    - Element
  description:
    name: description
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: One sentence saying what the values mean.
    examples:
    - value: Mean daily flow at the station
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    domain_of:
    - Dataset
    - Resource
    - Element
    - CodeValue
  role:
    name: role
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: 'What part the element plays: identifier, dimension, time, space,
      measure, attribute or content.'
    examples:
    - value: measure
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    domain_of:
    - Resource
    - Element
    range: ElementRole
  data_type:
    name: data_type
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: The type of the values.
    examples:
    - value: number
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
    range: DataType
  unit:
    name: unit
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: The unit of a measure, as a short symbol.
    examples:
    - value: m3/s
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
  unit_from:
    name: unit_from
    description: Id of another element that holds the unit.
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
  aggregation:
    name: aggregation
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: How the measure combines over time or space.
    examples:
    - value: mean
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
    range: Aggregation
  required:
    name: required
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
    range: boolean
  unique:
    name: unique
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
    range: boolean
  missing_values:
    name: missing_values
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
    multivalued: true
  examples:
    name: examples
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
    multivalued: true
  statistics:
    name: statistics
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
    range: Statistics
  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
    domain_of:
    - Resource
    - Element
    range: TextFacet
  references:
    name: references
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: 'The lookup column whose keys this element''s values are: <resource
      id>#<column>.'
    examples:
    - value: metadata_country#Country Code
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
  code_list:
    name: code_list
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: What each code in the values means (code → meaning).
    examples:
    - value: '{"M": "Male", "F": "Female"}'
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    domain_of:
    - Element
    range: CodeValue
    multivalued: true
    inlined_as_list: true

### Induced
name: Element
description: 'Level 2. One describable part of a resource: a column, JSON path, document
  section or media track. Includes the structural schema (type, constraints) and optional
  facets.'
from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
attributes:
  id:
    name: id
    description: <resource id>#<path>
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    identifier: true
    owner: Element
    domain_of:
    - Dataset
    - Resource
    - Element
    - FieldGroup
    - Proposal
    - Run
    - RuleSetRef
    range: string
    required: true
  path:
    name: path
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: string
    required: true
  name:
    name: name
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    owner: Element
    domain_of:
    - Resource
    - Element
    - CodeAttribute
    range: string
    required: true
  title:
    name: title
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: A short, human-readable name for the element.
    examples:
    - value: Discharge
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    owner: Element
    domain_of:
    - Dataset
    - Resource
    - Element
    range: string
  description:
    name: description
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: One sentence saying what the values mean.
    examples:
    - value: Mean daily flow at the station
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    owner: Element
    domain_of:
    - Dataset
    - Resource
    - Element
    - CodeValue
    range: string
  role:
    name: role
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: 'What part the element plays: identifier, dimension, time, space,
      measure, attribute or content.'
    examples:
    - value: measure
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    owner: Element
    domain_of:
    - Resource
    - Element
    range: ElementRole
  data_type:
    name: data_type
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: The type of the values.
    examples:
    - value: number
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: DataType
  unit:
    name: unit
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: The unit of a measure, as a short symbol.
    examples:
    - value: m3/s
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: string
  unit_from:
    name: unit_from
    description: Id of another element that holds the unit.
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: string
  aggregation:
    name: aggregation
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: How the measure combines over time or space.
    examples:
    - value: mean
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: Aggregation
  required:
    name: required
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: boolean
  unique:
    name: unique
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: boolean
  missing_values:
    name: missing_values
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: string
    multivalued: true
  examples:
    name: examples
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: string
    multivalued: true
  statistics:
    name: statistics
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: Statistics
  temporal:
    name: temporal
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    owner: Element
    domain_of:
    - Dataset
    - Resource
    - Element
    range: TemporalFacet
  spatial:
    name: spatial
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    owner: Element
    domain_of:
    - Dataset
    - Resource
    - Element
    range: SpatialFacet
  text:
    name: text
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    owner: Element
    domain_of:
    - Resource
    - Element
    range: TextFacet
  references:
    name: references
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: 'The lookup column whose keys this element''s values are: <resource
      id>#<column>.'
    examples:
    - value: metadata_country#Country Code
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: string
  code_list:
    name: code_list
    annotations:
      reviewable:
        tag: reviewable
        value: true
    description: What each code in the values means (code → meaning).
    examples:
    - value: '{"M": "Male", "F": "Female"}'
    from_schema: https://gitlab.tarkam.org/tarkam/knowtation/schema
    rank: 1000
    owner: Element
    domain_of:
    - Element
    range: CodeValue
    multivalued: true
    inlined: true
    inlined_as_list: true