You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contributors to the RO-Crate community, including this tutorial, are expected to comply with our [Code of Conduct](https://github.com/ResearchObject/ro-crate/blob/main/CODE_OF_CONDUCT.md) to ensure an open and inclusive environment. You may email [email protected] to report any Code of Conduct concerns.
@@ -52,19 +50,16 @@ _Video: An overview of the RO-Crate concept and its implementations_ (see also [
52
50
53
51
## Tutorial walk-through
54
52
55
-
In this tutorial, meant to be read along with the [RO-Crate specification](https://www.researchobject.org/ro-crate/1.2/),
53
+
In this tutorial, meant to be read along with the [RO-Crate specification](https://www.researchobject.org/ro-crate/1.1/),
56
54
we'll walk through the initial steps for creating a basic RO-Crate.
57
55
You are invited to replicate the below steps on your local computer.
58
56
59
57
::::::::::::::::::::::::::::::::::::::: callout
60
58
## Abbreviations
61
-
- FAIR: Findable, Accessible, Interoperable, Reusable; a set of principles for publishing research data and metadata.
62
-
- FDO: FAIR Digital Object; a set of recommendations to improve findability, accessibility, interoperability, and reproducibility for any digital object.
63
-
- JSON: JavaScript Object Notation, a generic structured text-based data format.
64
-
- JSON-LD: JSON Linked Data, a way to express Linked Data (RDF) using regular JSON.
65
-
- RO-Crate: Research Object Crate; a way to package research data with structured FAIR metadata.
66
-
- PID: Persistent Identifier; a long-lasting reference to a digital object.
67
-
- URI: Uniform Resource Identifier; a string of characters that identifies a resource.
59
+
- FAIR: Findable, Accessible, Interoperable, Reusable; a set of principles for publishing research data and metadata
60
+
- JSON: JavaScript Object Notation, a generic structured text-based data format
61
+
- JSON-LD: JSON Linked Data, a way to express Linked Data (RDF) using regular JSON
62
+
- RO-Crate: Research Object Crate; a way to package research data with structured FAIR metadata
This required entity, known as the [RO-Crate Metadata Descriptor](https://www.researchobject.org/ro-crate/specification/1.2/root-data-entity.html#ro-crate-metadata-descriptor),
32
+
This required entity, known as the [RO-Crate Metadata Descriptor](https://www.researchobject.org/ro-crate/1.1/root-data-entity.html#ro-crate-metadata-file-descriptor),
33
33
helps this file self-identify as an RO-Crate Metadata Document,
34
34
which is conforming to (`conformsTo`) the RO-Crate specification version 1.1.
35
35
Notice that the `conformsTo` URL corresponds to the `@context` URL version-wise,
@@ -39,52 +39,14 @@ while the conformance declares which RO-Crate conventions of using those terms a
39
39
40
40
::::::::::::::::::::::::::::::::::::::: callout
41
41
## RO-Crate versions
42
-
This tutorial is written for RO-Crate 1.2,
42
+
This tutorial is written for RO-Crate 1.1,
43
43
the RO-Crate website will list the [current specification version](https://www.researchobject.org/ro-crate/specification.html)
44
44
-- RO-Crates can generally be upgraded to newer versions following [semantic versioning](https://semver.org/) conventions,
45
-
but check the [change log](https://www.researchobject.org/ro-crate/specification/1.2/appendix/changelog.html) for any important changes.
45
+
but check the [change log](https://www.researchobject.org/ro-crate/1.1/appendix/changelog.html) for any important changes.
46
46
The next development version of the specification, indicated with a `-DRAFT` status,
47
47
may still be subject to changes and should only be used with caution.
Copy file name to clipboardExpand all lines: episodes/04-root.md
+21-33Lines changed: 21 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ exercises: 1
14
14
15
15
## RO-Crate Root
16
16
17
-
First we'll add an entity to the `@graph` array,
18
-
to describe the [RO-Crate Root](https://www.researchobject.org/ro-crate/specification/1.2/root-data-entity.html#direct-properties-of-the-root-data-entity):
17
+
Next we'll add another entity to the `@graph` array,
18
+
to describe the [RO-Crate Root](https://www.researchobject.org/ro-crate/1.1/root-data-entity.html#direct-properties-of-the-root-data-entity):
19
19
20
20
```json
21
21
{
@@ -27,8 +27,23 @@ to describe the [RO-Crate Root](https://www.researchobject.org/ro-crate/specific
27
27
}
28
28
```
29
29
30
-
By convention, in RO-Crate the `@id` value of `./` means that this entity describes the folder in which the RO-Crate metadata file is located. The root data entity always has the `@type` value of `Dataset`, which is a [schema.org](https://schema.org/Dataset) type.
31
-
This will be referenced from `ro-crate-metadata.json`, semantically marking the `crate1` folder as being the RO-Crate Root.
30
+
:::::::::::::::::::::::::::::::::::::::: callout
31
+
## Adding entities to the JSON array
32
+
33
+
Because we're adding incrementally to the `@graph` array.
34
+
It is important to remember the comma `,` between each entity,
35
+
**except** for the final entity in the JSON array;
36
+
and likewise for the properties within the JSON object for each entity.
37
+
This is an artefact of the strict [JSON](https://www.json.org/) file format rules to simplify parsing.
38
+
The order of the entities within the `@graph` JSON-LD array
39
+
and the order of the keys within a JSON object is _not significant_.
40
+
The _graph_ content is given by the `@id` cross-references.
41
+
42
+
You will add a comma here between the `ro-crate-metadata.json` entity, and the root data entity.
Copy file name to clipboardExpand all lines: episodes/05-root-metadata.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ exercises: 4
15
15
16
16
## Describing the root entity
17
17
18
-
When describing the [root entity](https://www.researchobject.org/ro-crate/specification/1.2/root-data-entity.html#direct-properties-of-the-root-data-entity),
18
+
When describing the [root entity](https://www.researchobject.org/ro-crate/1.1/root-data-entity.html#direct-properties-of-the-root-data-entity),
19
19
the properties generally apply to the whole of the crate.
20
20
For instance it is a good idea to give a description of why these resources are gathered in a crate,
21
21
as well as giving the crate a name and license for FAIR reuse and citation.
@@ -36,7 +36,7 @@ or another license of your choice:
36
36
"hasPart": [ ],
37
37
"name": "Example crate",
38
38
"description": "I created this example by following the tutorial",
entities are cross-referenced using `@id` reference objects,
56
23
rather than using deeply nested JSON objects.
57
-
In short, this _flattened JSON-LD_ style allows any entity to reference any other entity,
58
-
and RO-Crate consumers can directly find all the descriptions of a given entity as a single JSON object.
59
-
60
-
Think of @id as the entity’s “name tag”, you describe it once and refer to it anywhere in the graph.
24
+
In short, this _flattened JSON-LD_ style (shown below) allows any entity to reference any other entity,
25
+
and RO-Crate consumers can directly find all the descriptions of a given entity as a single JSON object.
61
26
62
27
{alt="showing RO-Crate Metadata descriptor's `about` property pointing at the RO-Crate Root entity with matching `@id`"}
0 commit comments