Skip to content

Commit

Permalink
Add conformsTo to identify profile conformance
Browse files Browse the repository at this point in the history
Following https://www.researchobject.org/ro-crate/1.2-DRAFT/profiles
but with "conformsTo" applied to "./" as suggested in
ResearchObject/ro-crate#153 (comment)
  • Loading branch information
stain committed Jan 12, 2023
1 parent d1a60c8 commit d3acbba
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 12 deletions.
29 changes: 27 additions & 2 deletions docs/profiles/0.1-DRAFT/process_run_crate.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,33 @@ By "implicit workflow" we mean that the composition of these tools may have been
This profile requires the indication of [Software used to create files](https://www.researchobject.org/ro-crate/1.1/provenance.html#software-used-to-create-files), namely a [SoftwareApplication](http://schema.org/SoftwareApplication) (the tool) and a [CreateAction](http://schema.org/CreateAction) (the execution of said tool).


## Example
## Example Metadata File (`ro-crate-metadata.json`)

```json
[
{ "@context": "https://w3id.org/ro/crate/1.1/context",
"@graph": [
{
"@id": "ro-crate-metadata.json",
"@type": "CreativeWork",
"conformsTo": {"@id": "https://w3id.org/ro/crate/1.1"},
"about": {"@id": "./"}
},
{
"@id": "./",
"@type": "Dataset",
"conformsTo": { "@id": "https://w3id.org/ro/wfrun/process/0.1" },
"hasPart": [
{"@id": "pics/2017-06-11%2012.56.14.jpg"},
{"@id": "pics/sepia_fence.jpg"}
],
"mentions": {"@id": "#SepiaConversion_1"},
"name": "My Pictures"
},
{ "@id": "https://w3id.org/ro/wfrun/process/0.1",
"@type": "CreativeWork",
"name": "Process Run Crate",
"version": "0.1"
},
{
"@id": "https://www.imagemagick.org/",
"@type": "SoftwareApplication",
Expand Down Expand Up @@ -73,11 +86,14 @@ This profile requires the indication of [Software used to create files](https://
"name": "Stian Soiland-Reyes"
}
]
}
```

Note that the command line shown in the action's `description` is not directly re-executable, as file paths are not required to match the RO-Crate locations. For a more structural and reproducible description of tool executions, see [Workflow Run Crate](workflow_run_crate).




## Requirements

<table>
Expand All @@ -88,6 +104,15 @@ Note that the command line shown in the action's `description` is not directly r
<td><strong>Description</strong></td>
</tr>

<tr>
<th colspan="3"><strong>Dataset</strong> (the <a href="https://www.researchobject.org/ro-crate/1.1/root-data-entity.html">root data entity</a>, e.g. <code>"@id": "./"</code>)</th>
</tr>
<tr>
<td>conformsTo</td>
<td>MUST</td>
<td>MUST reference a <code>CreativeWork</code> entity with an <code>@id</code> URI that is consistent with the versioned <em>Permalink</em> of this document, e.g. <code>{"@id": "https://w3id.org/ro/wfrun/process/0.1"}</code>
</tr>

<tr>
<th colspan="3"><strong>SoftwareApplication</strong></th>
</tr>
Expand Down
54 changes: 45 additions & 9 deletions docs/profiles/0.1-DRAFT/provenance_run_crate.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,29 @@ The following diagram shows the relationships between all provenance-related ent
<img alt="Entity-relationship diagram" src="img/er_diagram.svg" width="920" />


## Example
## Example Metadata File (`ro-crate-metadata.json`)

```json
[
{ "@context": "https://w3id.org/ro/crate/1.1/context",
"@graph": [
{
"@id": "ro-crate-metadata.json",
"@type": "CreativeWork",
"about": {"@id": "./"},
"conformsTo": [
{"@id": "https://w3id.org/ro/crate/1.1"},
{"@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0"}
]
},
{
"@id": "./",
"@type": "Dataset",
"conformsTo": [
{ "@id": "https://w3id.org/ro/wfrun/process/0.1" },
{ "@id": "https://w3id.org/ro/wfrun/workflow/0.1" },
{ "@id": "https://w3id.org/ro/wfrun/provenance/0.1" },
{ "@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0"}
],
"hasPart": [
{"@id": "packed.cwl"},
{"@id": "327fc7aedf4f6b69a42a7c8b808dc5a7aff61376"},
Expand All @@ -47,14 +63,25 @@ The following diagram shows the relationships between all provenance-related ent
{"@id": "#4154dad3-00cc-4e35-bb8f-a2de5cd7dc49"}
]
},
{
"@id": "ro-crate-metadata.json",
{ "@id": "https://w3id.org/ro/wfrun/process/0.1",
"@type": "CreativeWork",
"about": {"@id": "./"},
"conformsTo": [
{"@id": "https://w3id.org/ro/crate/1.1"},
{"@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0"}
]
"name": "Process Run Crate",
"version": "0.1"
},
{ "@id": "https://w3id.org/ro/wfrun/workflow/0.1",
"@type": "CreativeWork",
"name": "Workflow Run Crate",
"version": "0.1"
},
{ "@id": "https://w3id.org/ro/wfrun/provenance/0.1",
"@type": "CreativeWork",
"name": "Provenance Run Crate",
"version": "0.1"
},
{ "@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0",
"@type": "CreativeWork",
"name": "Workflow RO-Crate",
"version": "1.0"
},
{
"@id": "packed.cwl",
Expand Down Expand Up @@ -415,6 +442,15 @@ The requirements of this profile are those of [Workflow Run Crate](workflow_run_
<td><strong>Description</strong></td>
</tr>

<tr>
<th colspan="3"><strong>Dataset</strong> (the <a href="https://www.researchobject.org/ro-crate/1.1/root-data-entity.html">root data entity</a>, e.g. <code>"@id": "./"</code>)</th>
</tr>
<tr>
<td>conformsTo</td>
<td>MUST</td>
<td>Array MUST reference a <code>CreativeWork</code> entity with an <code>@id</code> URI that is consistent with the versioned <em>Permalink</em> of this document, and SHOULD also reference versioned permalinks for <a href="https://w3id.org/ro/wfrun/process/0.1">Process Run Crate</a>, <a href="https://w3id.org/ro/wfrun/workflow/0.1">Workflow Run Crate</a> and <a href="https://w3id.org/workflowhub/workflow-ro-crate/1.0">Workflow RO-Crate</a>.
</tr>

<tr>
<th colspan="3"><strong>ComputationalWorkflow</strong></th>
</tr>
Expand Down
41 changes: 40 additions & 1 deletion docs/profiles/0.1-DRAFT/workflow_run_crate.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,25 @@ Some workflows have multiple inputs/outputs that, in conformance with the [Biosc
## Example

```json
[
{ "@context": "https://w3id.org/ro/crate/1.1/context",
"@graph": [
{
"@id": "ro-crate-metadata.json",
"@type": "CreativeWork",
"about": {"@id": "./"},
"conformsTo": [
{"@id": "https://w3id.org/ro/crate/1.1"},
{"@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0"}
]
},
{
"@id": "./",
"@type": "Dataset",
"conformsTo": [
{ "@id": "https://w3id.org/ro/wfrun/process/0.1" },
{ "@id": "https://w3id.org/ro/wfrun/workflow/0.1" },
{ "@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0"}
],
"hasPart": [
{"@id": "Galaxy-Workflow-Hello_World.ga"},
{"@id": "inputs/abcdef.txt"},
Expand All @@ -38,6 +53,21 @@ Some workflows have multiple inputs/outputs that, in conformance with the [Biosc
"mainEntity": {"@id": "Galaxy-Workflow-Hello_World.ga"},
"mentions": {"@id": "#wfrun-5a5970ab-4375-444d-9a87-a764a66e3a47"}
},
{ "@id": "https://w3id.org/ro/wfrun/process/0.1",
"@type": "CreativeWork",
"name": "Process Run Crate",
"version": "0.1"
},
{ "@id": "https://w3id.org/ro/wfrun/workflow/0.1",
"@type": "CreativeWork",
"name": "Workflow Run Crate",
"version": "0.1"
},
{ "@id": "https://w3id.org/workflowhub/workflow-ro-crate/1.0",
"@type": "CreativeWork",
"name": "Workflow RO-Crate",
"version": "1.0"
},
{
"@id": "Galaxy-Workflow-Hello_World.ga",
"@type": ["File", "SoftwareSourceCode", "ComputationalWorkflow"],
Expand Down Expand Up @@ -186,6 +216,15 @@ This profile inherits the requirements of [Process Run Crate](process_run_crate)
<td><strong>Description</strong></td>
</tr>

<tr>
<th colspan="3"><strong>Dataset</strong> (the <a href="https://www.researchobject.org/ro-crate/1.1/root-data-entity.html">root data entity</a>, e.g. <code>"@id": "./"</code>)</th>
</tr>
<tr>
<td>conformsTo</td>
<td>MUST</td>
<td>Array MUST reference a <code>CreativeWork</code> entity with an <code>@id</code> URI that is consistent with the versioned <em>Permalink</em> of this document, and SHOULD also reference versioned permalinks for <a href="https://w3id.org/ro/wfrun/process/0.1">Process Run Crate</a> and <a href="https://w3id.org/workflowhub/workflow-ro-crate/1.0">Workflow RO-Crate</a>.
</tr>

<tr>
<th colspan="3"><strong>CreateAction</strong></th>
</tr>
Expand Down

0 comments on commit d3acbba

Please sign in to comment.