Git Product home page Git Product logo

Comments (5)

mr-c avatar mr-c commented on September 24, 2024 1

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.

simleo avatar simleo commented on September 24, 2024 1

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.

jmfernandez avatar jmfernandez commented on September 24, 2024

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.

simleo avatar simleo commented on September 24, 2024

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.

simleo avatar simleo commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.