Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conformsTo to identify profile conformance #40

Merged
merged 2 commits into from
Jan 16, 2023
Merged

Add conformsTo to identify profile conformance #40

merged 2 commits into from
Jan 16, 2023

Conversation

stain
Copy link
Contributor

@stain stain commented Jan 12, 2023

Following https://www.researchobject.org/ro-crate/1.2-DRAFT/profiles but with "conformsTo" applied to "./" as suggested in ResearchObject/ro-crate#153 (comment) 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:

  • https://w3id.org/ro/wfrun/process/0.1

Workflow Crate:

  • https://w3id.org/ro/wfrun/process/0.1
  • https://w3id.org/ro/wfrun/workflow/0.1
  • https://w3id.org/workflowhub/workflow-ro-crate/1.0

Provenance Crate:

  • https://w3id.org/ro/wfrun/process/0.1
  • https://w3id.org/ro/wfrun/workflow/0.1
  • https://w3id.org/ro/wfrun/provenance/0.1
  • https://w3id.org/workflowhub/workflow-ro-crate/1.0

Notes:

@stain stain requested a review from simleo January 12, 2023 16:34
Copy link
Collaborator

@simleo simleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed that relying on inheritance would be quite tricky. Much easier for consumers to check conformance if all profiles are explicitly listed as shown here.

@stain
Copy link
Contributor Author

stain commented Jan 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants