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".
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:
ro-crate/docs/_specification/1.2/appendix/relative-uris.md
Lines 92 to 116 in 182b892
The above metadata, however, is not valid, since the metadata descriptor's
@idis notro-crate-metadata.jsonbuthttps://about.workflowhub.eu/Workflow-RO-Crate/1.0/ro-crate-metadata.json. The spec for the metadata descriptor says that the@idmust bero-crate-metadata.json, "Even in Detached RO-Crate Packages".