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

Add conformsTo to identify profile conformance #40

Closed stain closed 1 year ago

stain commented 1 year ago

Following https://www.researchobject.org/ro-crate/1.2-DRAFT/profiles but with "conformsTo" applied to "./" as suggested in https://github.com/ResearchObject/ro-crate/issues/153#issuecomment-1240446098 rather than conformsTo

Example for provenance crate.

     {
       "@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"}
       ],
    {   "@id": "https://w3id.org/ro/wfrun/process/0.1",
        "@type": "CreativeWork",
        "name": "ProcessRun 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"
    },

Process Crate:

Workflow Crate:

Provenance Crate:

Notes:

stain commented 1 year ago

Yeah, I think we can still indicate that inheritance in the Profile Crate for documentation, but that it should keep it explicit in conformsTo in each conforming Crate - just like we have those lovely @type arrays rather than some ontology with inferred subclasses. Will add that to the RO-Crate 1.2 page.