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.
@@ -50,16 +52,19 @@ _Video: An overview of the RO-Crate concept and its implementations_ (see also [
50
52
51
53
## Tutorial walk-through
52
54
53
-
In this tutorial, meant to be read along with the [RO-Crate specification](https://www.researchobject.org/ro-crate/1.1/),
55
+
In this tutorial, meant to be read along with the [RO-Crate specification](https://www.researchobject.org/ro-crate/1.2/),
54
56
we'll walk through the initial steps for creating a basic RO-Crate.
55
57
You are invited to replicate the below steps on your local computer.
56
58
57
59
::::::::::::::::::::::::::::::::::::::: callout
58
60
## Abbreviations
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
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.
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),
32
+
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-file-descriptor),
33
33
helps this file self-identify as an RO-Crate Metadata Document,
34
-
which is conforming to (`conformsTo`) the RO-Crate specification version 1.1.
34
+
which is conforming to (`conformsTo`) the RO-Crate specification version 1.2.
35
35
Notice that the `conformsTo` URL corresponds to the `@context` URL version-wise,
36
36
but they have two different functions.
37
37
The context brings the defined terms into the metadata document,
38
38
while the conformance declares which RO-Crate conventions of using those terms are being followed.
39
39
40
+
:::::::::::::::::::::::::::::::::::::::: callout
41
+
42
+
## Adding entities to the JSON array
43
+
44
+
Because we're adding incrementally to the `@graph` array.
45
+
It is important to remember the comma `,` between each entity,
46
+
**except** for the final entity in the JSON array;
47
+
and likewise for the properties within the JSON object for each entity.
48
+
This is an artefact of the strict [JSON](https://www.json.org/) file format rules to simplify parsing.
49
+
The order of the entities within the `@graph` JSON-LD array
50
+
and the order of the keys within a JSON object is _not significant_.
51
+
The _graph_ content is given by the `@id` cross-references.
52
+
53
+
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/04-root.md
+33-23Lines changed: 33 additions & 23 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
-
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):
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):
19
19
20
20
```json
21
21
{
@@ -27,23 +27,8 @@ to describe the [RO-Crate Root](https://www.researchobject.org/ro-crate/1.1/root
27
27
}
28
28
```
29
29
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.
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.
46
-
This reference from `ro-crate-metadata.json` is therefore semantically marking the `crate1` folder as being the RO-Crate Root.
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.
Copy file name to clipboardExpand all lines: episodes/05-root-metadata.md
+4-7Lines changed: 4 additions & 7 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/1.1/root-data-entity.html#direct-properties-of-the-root-data-entity),
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),
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",
0 commit comments