Skip to content

[Suggestion] Semantic annotation of workflows #115

@jan-janssen

Description

@jan-janssen

@samwaseda developed a semantic annotation package named semantikon which provides the option to include semantic annotations in the workflow definition, especially in terms of units for physical quantities. This could be a great extension for the Python Workflow Definition:

>>> from semantikon.typing import u
>>> from rdflib import Namespace
>>>
>>> EX = Namespace("http://example.org/")
>>> 
>>> def get_speed(
...     distance: u(float, units="meter", uri=EX.distance),
...     time: u(float, units="second", uri=EX.time),
... ) -> u(float, units="meter/second", label="speed", uri=EX.speed):
...     return distance / time

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