Class: Activity
Something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities.
URI: nmdc:Activity
classDiagram
class Activity
click Activity href "../Activity"
Activity <|-- WorkflowExecutionActivity
click WorkflowExecutionActivity href "../WorkflowExecutionActivity"
Activity : ended_at_time
Activity : id
Activity : name
Activity : started_at_time
Activity : used
Activity : was_informed_by
Activity --> "1" Activity : was_informed_by
click Activity href "../Activity"
Inheritance
- Activity
Slots
Name | Cardinality and Range | Description | Inheritance |
---|---|---|---|
id | 1..1 Uriorcurie |
A unique identifier for a thing | direct |
name | 0..1 String |
A human readable label for an entity | direct |
started_at_time | 0..1 String |
direct | |
ended_at_time | 0..1 String |
direct | |
was_informed_by | 0..1 Activity |
direct | |
used | 0..1 String |
direct |
Usages
Comments
- to be replaced with PlannedProcess in the monterey-schema
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/nmdc/nmdc
Mappings
Mapping Type | Mapped Value |
---|---|
self | nmdc:Activity |
native | nmdc:Activity |
undefined | prov:Activity |
LinkML Source
Direct
name: Activity
description: Something that occurs over a period of time and acts upon or with entities;
it may include consuming, processing, transforming, modifying, relocating, using,
or generating entities.
notes:
- removed was_associated_with because we are trying to avoid instantiating id-less
Agents
comments:
- to be replaced with PlannedProcess in the monterey-schema
from_schema: https://w3id.org/nmdc/nmdc
mappings:
- prov:Activity
slots:
- id
- name
- started_at_time
- ended_at_time
- was_informed_by
- used
slot_usage:
id:
name: id
domain_of:
- Biosample
- Study
- NamedThing
- Activity
required: true
structured_pattern:
syntax: '{id_nmdc_prefix}:act-{id_shoulder}-{id_blade}{id_version}{id_locus}'
interpolated: true
Induced
name: Activity
description: Something that occurs over a period of time and acts upon or with entities;
it may include consuming, processing, transforming, modifying, relocating, using,
or generating entities.
notes:
- removed was_associated_with because we are trying to avoid instantiating id-less
Agents
comments:
- to be replaced with PlannedProcess in the monterey-schema
from_schema: https://w3id.org/nmdc/nmdc
mappings:
- prov:Activity
slot_usage:
id:
name: id
domain_of:
- Biosample
- Study
- NamedThing
- Activity
required: true
structured_pattern:
syntax: '{id_nmdc_prefix}:act-{id_shoulder}-{id_blade}{id_version}{id_locus}'
interpolated: true
attributes:
id:
name: id
description: A unique identifier for a thing. Must be either a CURIE shorthand
for a URI or a complete URI
from_schema: https://w3id.org/nmdc/nmdc
rank: 1000
identifier: true
alias: id
owner: Activity
domain_of:
- Biosample
- Study
- NamedThing
- Activity
range: uriorcurie
required: true
pattern: ^[a-zA-Z0-9][a-zA-Z0-9_\.]+:[a-zA-Z0-9_][a-zA-Z0-9_\-\/\.,]*$
structured_pattern:
syntax: '{id_nmdc_prefix}:act-{id_shoulder}-{id_blade}{id_version}{id_locus}'
interpolated: true
name:
name: name
description: A human readable label for an entity
from_schema: https://w3id.org/nmdc/nmdc
rank: 1000
alias: name
owner: Activity
domain_of:
- Protocol
- NamedThing
- PersonValue
- Activity
range: string
started_at_time:
name: started_at_time
notes:
- 'The regex for ISO-8601 format was taken from here: https://www.myintervals.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/
It may not be complete, but it is good enough for now.'
from_schema: https://w3id.org/nmdc/nmdc
mappings:
- prov:startedAtTime
rank: 1000
domain: Activity
alias: started_at_time
owner: Activity
domain_of:
- Activity
range: string
pattern: ^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$
ended_at_time:
name: ended_at_time
notes:
- 'The regex for ISO-8601 format was taken from here: https://www.myintervals.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/
It may not be complete, but it is good enough for now.'
from_schema: https://w3id.org/nmdc/nmdc
mappings:
- prov:endedAtTime
rank: 1000
domain: Activity
alias: ended_at_time
owner: Activity
domain_of:
- Activity
range: string
pattern: ^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$
was_informed_by:
name: was_informed_by
from_schema: https://w3id.org/nmdc/nmdc
mappings:
- prov:wasInformedBy
rank: 1000
domain: Activity
alias: was_informed_by
owner: Activity
domain_of:
- Activity
range: Activity
used:
name: used
from_schema: https://w3id.org/nmdc/nmdc
mappings:
- prov:used
rank: 1000
domain: Activity
alias: used
owner: Activity
domain_of:
- Activity
range: string