-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
@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
Labels
No labels