Skip to content

implement pivot operation, for unmelting generic measurement/EAV data to wide tables #103

@cmungall

Description

@cmungall

The linkml-map schema has a PivotOperation

PivotOperation:
aliases:
- melt/unmelt
- reification/dereification
is_a: TransformationOperation
attributes:
direction:
range: PivotDirectionType
required: true
variable_slot:
aliases:
- var_name
range: SlotReference
ifabsent: string(variable)
description: Slot to use for the variable column in the melted/long representation.
In EAV this is the name of the 'A' variable
value_slot:
aliases:
- value_name
range: SlotReference
ifabsent: string(value)
description: Slot to use for the value column in the melted/long representation.
In EAV this is the name of the 'V' variable
unmelt_to_class:
description: In an unmelt operation, attributes (which are values in the long/melted/EAV
representation) must conform to valid attributes in this class
range: ClassReference
unmelt_to_slots:
range: SlotReference
multivalued: true

This is not yet implemented.

We should also have a special case of this for pivoting from

att val unit
len 1.0 m

to

len_m
1.0

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions