Comments (5)
I guess this could be modeled as a list of https://schema.org/PropertyValue where the PropertyValue.name
is the environment variable name (like ALGORITHM_OVERRIDE
) and the PropertyValue.value
is the actual string value used (revised
in this made-up example).
from workflow-run-crate.
PropertyValue
using name
and value
seems a good choice for the retrospective part. For the prospective part, where there is no value and the focus is on the name / type, it seems less straightforward. Additionally, we need a way to link them to the tool / workflow (prospective) or action (retrospective). There are analogies with workflow / tool parameters.
from workflow-run-crate.
Both ComputationalTool and ComputationalWorkflow have input
, which is a list of FormalParameter.
I think we should also represent environment variables as FormalParameters, but extending both ComputationalWorkflow and ComputationalTool in order to have an additional property environment
, where to list the possible environment variables as FormalParameter. Then, depending on whether it is either the prospective or the retrospective provenance being represented, those instances of FormalParameter will or wont have listed the values at through workExample
property.
from workflow-run-crate.
If env vars are represented as FormalParameter
on the prospective side, then they should probably be represented by PropertyValue
on the retrospective side. These should be listed in the relevant CreateAction
, but with which property? Reuse environment
?
from workflow-run-crate.
Here' s how it would look like (BTW, ComputationalTool
is not in the RO-Crate context, we're using SoftwareApplication
for tools):
{
"@id": "foo.cwl",
"@type": "SoftwareApplication",
...
"environment": [
{"@id": "foo.cwl#api_token"}
]
},
{
"@id": "foo.cwl#api_token",
"@type": "FormalParameter",
"additionalType": "Text",
"name": "API_TOKEN",
},
{
"@id": "#cb04c897-eb92-4c53-8a38-bcc1a16fd650",
"@type": "CreateAction",
"instrument": {"@id": "foo.cwl"},
...
"environment": [
{"@id": "#api_token-pv"}
]
},
{
"@id": "#api_token-pv",
"@type": "PropertyValue",
"exampleOfWork": {"@id": "foo.cwl#api_token"},
"name": "API_TOKEN",
"value": "nGh9_v8nhv8h49388a44w89hK_aof0q"
}
from workflow-run-crate.
Related Issues (20)
- CQ2 - Resource usage HOT 25
- CQ3 - Configuration files HOT 5
- CQ4 - environment/container file HOT 16
- CQ5 - Step running time HOT 2
- CQ6 - Workflow running time HOT 4
- CQ7 - Outcome HOT 5
- CQ8 - Workflow inputs and outputs HOT 2
- CQ9 - Software version
- CQ10 - Tool wrappers HOT 6
- cwlprov_to_crate: support for nested workflows HOT 1
- cwlprov_to_crate: test converting cwlprovs created for each CWL conformance tests HOT 6
- CQ11 - Parameter connections HOT 4
- Resource requirements HOT 3
- Representing conditional execution HOT 7
- Representing secondary files HOT 2
- Content negotiation is not enabled for the profiles HOT 11
- How to represent which compute provider was used? HOT 6
- Remove individual roterms from profile crates
- Citing the profiles HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workflow-run-crate.