ResearchObject / workflow-run-crate

Workflow Run RO-Crate profile
https://www.researchobject.org/workflow-run-crate/
Apache License 2.0
8 stars 9 forks source link

SPARQL tests and example for CQ4 (buildInstructions) #85

Closed stain closed 4 months ago

stain commented 4 months ago

This adds SPARQL tests for CQ4 both for workflow (HowTo) and individual step (HowToStep) through a contrived example using both conda and docker.

(rdflib) stain@xenamint:~/src/workflow-run-crate/docs/sparql$ python cq4.py 
WORKFLOW ENVIRONMENT
====================
Workflow: packed.cwl
  Environment: https://raw.githubusercontent.com/common-workflow-language/cwltool/3.1.20240508115724/cwltool.Dockerfile
    Format: text/plain
    Profile: Docker file format <https://docs.docker.com/reference/dockerfile/>
WORKFLOW STEP ENVIRONMENTS
==========================
Step: file:///home/stain/src/workflow-run-crate/docs/sparql/provenance_run_crate/packed.cwl#main/rev
  Environment: file:///home/stain/src/workflow-run-crate/docs/sparql/provenance_run_crate/revtool/Dockerfile
    Format: text/plain
    Profile: Docker file format <https://docs.docker.com/reference/dockerfile/>
Step: file:///home/stain/src/workflow-run-crate/docs/sparql/provenance_run_crate/packed.cwl#main/sorted
  Environment: file:///home/stain/src/workflow-run-crate/docs/sparql/provenance_run_crate/environment.yml
    Format: application/yaml
    Profile: Conda environment file <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#create-env-file-manually>

Closes #12