Skip to content

Detached crate example in the spec is not valid #524

@simleo

Description

@simleo

The Converting from Attached to Detached RO-Crate Package section takes as example https://about.workflowhub.eu/Workflow-RO-Crate/1.0/ro-crate-metadata.json and shows the following as (abbreviated) example output of the conversion to detached:

{
"@context": [
{"@base": "arcp://uuid,d6be5c9b-132a-4a93-9837-3e02e06c08e6/"},
"https://w3id.org/ro/crate/1.1/context"
],
"@graph": [
{
"@id": "https://about.workflowhub.eu/Workflow-RO-Crate/1.0/ro-crate-metadata.json",
"@type": "CreativeWork",
"conformsTo": {"@id": "https://w3id.org/ro/crate/1.1"},
"about": {"@id": "https://about.workflowhub.eu/Workflow-RO-Crate/1.0/"},
"creator": {"@id": "https://orcid.org/0000-0001-9842-9718"}
},
{
"@id": "https://about.workflowhub.eu/Workflow-RO-Crate/1.0/",
"@type": "Dataset",
"hasPart": [
{ "@id": "https://about.workflowhub.eu/Workflow-RO-Crate/1.0/index.html"},
{ "@id": "https://about.workflowhub.eu/Workflow-RO-Crate/1.0/example/"},
],
"name": "Workflow RO-Crate profile"
},
...
]
}

The above metadata, however, is not valid, since the metadata descriptor's @id is not ro-crate-metadata.json but https://about.workflowhub.eu/Workflow-RO-Crate/1.0/ro-crate-metadata.json. The spec for the metadata descriptor says that the @id must be ro-crate-metadata.json, "Even in Detached RO-Crate Packages".

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions