Skip to content

Commit

Permalink
Merge pull request #14 from microbiomedata/1552-deprecate-Activity
Browse files Browse the repository at this point in the history
1552 deprecate activity
  • Loading branch information
brynnz22 committed Dec 13, 2023
2 parents 392e3f9 + 8675ae3 commit a695414
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 38 deletions.
2 changes: 1 addition & 1 deletion src/data/valid/Database-img_mg_annotation_objects.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
activity_set:
workflow_execution_set:
- has_input:
- nmdc:b4b798cc9e7e9253ae8256a8237fd371
git_url: https://img.jgi.doe.gov
Expand Down
2 changes: 1 addition & 1 deletion src/schema/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ slots:
description: Links a resource to another resource that either logically or physically includes it.

execution_resource:
domain: Activity
domain: WorkflowExecutionActivity
range: string
# is_a: attribute
examples:
Expand Down
6 changes: 2 additions & 4 deletions src/schema/nmdc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ classes:
# - material_sample_set
# - material_sampling_activity_set
# - reaction_activity_set
- activity_set
- biosample_set
- collecting_biosamples_from_site_set
- data_object_set
Expand All @@ -217,8 +216,7 @@ classes:
- read_based_taxonomy_analysis_activity_set
- read_qc_analysis_activity_set
- study_set


- workflow_execution_set

Pooling:
class_uri: nmdc:Pooling
Expand Down Expand Up @@ -2796,7 +2794,7 @@ slots:
description:
This property links a database object to the set of all functional
annotations
activity_set:
workflow_execution_set:
domain: Database # not inherited byt mixin users
mixins: object_set
range: WorkflowExecutionActivity
Expand Down
35 changes: 6 additions & 29 deletions src/schema/prov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,10 @@ default_range: string

classes:

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.
slots:
- id
- name
- started_at_time
- ended_at_time
- was_informed_by
- used
comments:
- to be replaced with PlannedProcess in the monterey-schema
notes:
- removed was_associated_with because we are trying to avoid instantiating id-less Agents
mappings:
- prov:Activity
slot_usage:
id:
required: true
structured_pattern:
syntax: "{id_nmdc_prefix}:act-{id_shoulder}-{id_blade}{id_version}{id_locus}"
interpolated: true

slots:

started_at_time:
domain: Activity
domain: WorkflowExecutionActivity
range: string
# range: datetime
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)?)?)?)?$
Expand All @@ -55,7 +32,7 @@ slots:
- prov:startedAtTime

ended_at_time:
domain: Activity
domain: WorkflowExecutionActivity
# range: datetime
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)?)?)?)?$
notes: >-
Expand All @@ -65,17 +42,17 @@ slots:
- prov:endedAtTime

was_informed_by:
domain: Activity
range: Activity
domain: WorkflowExecutionActivity
range: WorkflowExecutionActivity
mappings:
- prov:wasInformedBy

was_generated_by:
range: Activity
range: WorkflowExecutionActivity
mappings:
- prov:wasGeneratedBy

used:
domain: Activity
domain: WorkflowExecutionActivity
mappings:
- prov:used
11 changes: 8 additions & 3 deletions src/schema/workflow_execution_activity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ classes:
aliases:
- analysis
comments:
- Each instance of this (and all other) activities is a distinct run with start and stop times, potentially with different inputs and outputs
is_a: Activity
- Each instance of this (and all other) subclasses of WorkflowExecution is a distinct run with start and stop times, potentially with different inputs and outputs
in_subset:
- workflow subset
description: >-
Expand All @@ -37,6 +36,12 @@ classes:
embl.ena: >-
An analysis contains secondary analysis results derived from sequence reads (e.g. a genome assembly)
slots:
- id
- name
- started_at_time
- ended_at_time
- was_informed_by
- used
- execution_resource
- git_url
- has_input
Expand Down Expand Up @@ -555,5 +560,5 @@ slots:
multivalued: true

version:
domain: Activity
domain: WorkflowExecutionActivity
range: string

0 comments on commit a695414

Please sign in to comment.