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
sed -i -E 's/\{% include callout.html //g' release/ro-crate-${TAG}.md
97
-
sed -i -E 's/\" %}//g' release/ro-crate-${TAG}.md
98
-
sed -i -E 's/type=\"note\" content=\"/**Note**: /g' release/ro-crate-${TAG}.md
99
-
sed -i -E 's/type=\"warning\" content=\"/**Warning** :/g' release/ro-crate-${TAG}.md
100
-
sed -i -E 's/type=\"tip\" content=\"/**Tip**: /g' release/ro-crate-${TAG}.md
101
-
sed -i -E 's/type=\"important\" content=\"/**Important**: /g' release/ro-crate-${TAG}.md
97
+
sed -i -E "s/[\"'] ?\n?%}//g" release/ro-crate-${TAG}.md# note that this assumes the closing string-quote to be followed by «space»%} on the same line !
98
+
sed -i -E "s/type=[\"']note[\"'] content=[\"']/**Note**: /g" release/ro-crate-${TAG}.md
99
+
sed -i -E "s/type=[\"']warning[\"'] content=[\"']/**Warning** :/g" release/ro-crate-${TAG}.md
100
+
sed -i -E "s/type=[\"']tip[\"'] content=[\"']/**Tip**: /g" release/ro-crate-${TAG}.md
101
+
sed -i -E "s/type=[\"']important[\"'] content=[\"']/**Important**: /g" release/ro-crate-${TAG}.md
Copy file name to clipboardExpand all lines: docs/_specification/1.2-DRAFT/appendix/implementation-notes.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ nav_order: 21
37
37
38
38
When implementing tools to work with RO-Crate it is not necessary to use JSON-LD software libraries, however, programmers should keep in mind the following:
39
39
40
-
-**_RO-Crate JSON-lD_ has a flat structure**; every entity is a JSON object directly within the `@graph` array in the _RO-Crate Metadata Document_. A useful strategy when processing a crate is to build a look-up table and/or function so that entities can be found via their ID, for example provide a method such as `getEntity(id)` which returns an entity by its id or a `null` value if it's not there.
40
+
-**_RO-Crate JSON-LD_ has a flat structure**; every entity is a JSON object directly within the `@graph` array in the _RO-Crate Metadata Document_. A useful strategy when processing a crate is to build a look-up table and/or function so that entities can be found via their ID, for example provide a method such as `getEntity(id)` which returns an entity by its id or a `null` value if it's not there.
41
41
42
42
-**Code defensively**. Code should not assume that values will always be a String; values for properties may be single scalar values such as strings or integers (`"2"` or 2), or references to other entities such as `{"@id", "_:1"}` (where the referenced entity may or may not be described in the crate, see the point above about having a `getEntity()` method).
43
43
@@ -135,9 +135,9 @@ b0556450…8802 bag-info.txt
135
135
000b27e3…c52e manifest-sha512.txt
136
136
```
137
137
138
-
{% include callout.html type="warning" content='The BagIt manifest is intended to detect "bit rot" and accidental damage,
139
-
it does not provide proof the RO-Crate has not been deliberately
140
-
tampered with, as a malicious actor can also update the checksums.' %}
138
+
{% include callout.html type="warning" content="The BagIt manifest is intended to detect \"bit rot\" and accidental damage,
139
+
it does not provide proof the RO-Crate has not been deliberately tampered with, as a malicious actor can also update the checksums."
140
+
%}
141
141
142
142
Guarding against such scenarious would require additional cryptographic
Copy file name to clipboardExpand all lines: docs/_specification/1.2-DRAFT/appendix/relative-uris.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,11 +135,13 @@ Converting a Detached Crate to an Attached Crate can mean multiple things depend
135
135
First, check if the Root Data Entity already have a [distribution download](../data-entities#directories-on-the-web-dataset-distributions) listed, in which case that can be retrieved as the corresponding Attached Crate.
136
136
137
137
To archive a snapshot of an Detached Crate's metadata, keeping all data entities [web-based](../data-entities#web-based-data-entities):
138
-
* Crate a new folder as the _RO-Crate Root_, save the _RO-Crate Metadata Document_ as the _RO-Crate Metadata File_ according to [Attached RO-Crate Package](../structure#attached-ro-crate-package) structure
138
+
139
+
* Create a new folder as the _RO-Crate Root_, save the _RO-Crate Metadata Document_ as the _RO-Crate Metadata File_ according to [Attached RO-Crate Package](../structure#attached-ro-crate-package) structure
139
140
* Copy the absolute `@id` to become an `identifier` according to recommendations for [Root Data Entity identifier](../root-data-entity#root-data-entity-identifier)
140
141
* Optional: Change the `@id` of the Root Data Entity to `./` and update all references to it, including from the [Metadata Descriptor](../root-data-entity#ro-crate-metadata-descriptor)
141
142
142
143
If the new Attached Crate is intended as a _fork_ that will evolve independently of the Detached Crate, then:
144
+
143
145
* Delete the `identifier`, add the previous `@id` as `isBasedOn`
144
146
* Delete/update `datePublished` and `publisher`
145
147
* Add yourself as `author` or `contributor` to the Root Data Entity
@@ -444,7 +446,7 @@ WHERE {
444
446
}
445
447
```
446
448
447
-
{% include callout.html type="note" content='The query above will find _all_ Root Data Entities in the RDF graph. This is useful when querying RDF triple stores which contain many RO-Crates, but it also means that multiple results could be returned when the query is used on single RO-Crates which contain other [nested or referenced RO-Crates](https://www.researchobject.org/ro-crate/specification/1.2-DRAFT/data-entities.html#referencing-other-ro-crates).' %}
449
+
{% include callout.html type="note" content="The query above will find _all_ Root Data Entities in the RDF graph. This is useful when querying RDF triple stores which contain many RO-Crates, but it also means that multiple results could be returned when the query is used on single RO-Crates which contain other [nested or referenced RO-Crates](https://www.researchobject.org/ro-crate/specification/1.2-DRAFT/data-entities.html#referencing-other-ro-crates)." %}
Copy file name to clipboardExpand all lines: docs/_specification/1.2-DRAFT/contextual-entities.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -505,9 +505,9 @@ This example shows how to define a place, using a [geonames] ID:
505
505
}
506
506
```
507
507
508
-
{% include callout.html type="tip" content='To find the `@id` and `identifier` corresponding to a GeoNames HTML page like <https://www.geonames.org/8152662/catalina-park.html>, click its `.rdf` button to download the RDF metadata (<https://sws.geonames.org/8152662/about.rdf>). In the RDF metadata, find the line that looks like the following:
509
-
`<gn:Feature rdf:about="http://sws.geonames.org/8152662/">`. The part in the quotes is the identifier (in this case, <http://sws.geonames.org/8152662/>) .
510
-
' %}
508
+
{% include callout.html type="tip" content="To find the `@id` and `identifier` corresponding to a GeoNames HTML page like <https://www.geonames.org/8152662/catalina-park.html>, click its `.rdf` button to download the RDF metadata (<https://sws.geonames.org/8152662/about.rdf>). In the RDF metadata, find the line that looks like the following:
509
+
`<gn:Feature rdf:about=\"http://sws.geonames.org/8152662/\">`. The part in the quotes is the identifier (in this case, <http://sws.geonames.org/8152662/>)."
510
+
%}
511
511
512
512
{% include callout.html type="tip" content="Note the use of a JSON-LD [blank node](https://www.w3.org/TR/rdf11-concepts/#dfn-blank-node) identifier here (starting with `_:`) - this indicates to an RO-Crate presentation application that the entity does not stand in its own right, and may be displayed inline (in this case as a map)." %}
Copy file name to clipboardExpand all lines: docs/_specification/1.2-DRAFT/data-entities.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ The primary purpose for RO-Crate is to gather and describe a set of _Data Entiti
38
38
* Folders (or directories) of files -- represented using the type `Dataset`.
39
39
40
40
An entity which has `File` or `Dataset` as one of its `@type` values:
41
+
41
42
* Is considered to be a _Data Entity_ if its `@id` is an absolute URI or a relative URI.
42
43
* MAY have an `@id` which is a local identifier beginning with a `#`, in which case it is **not** considered to be a `Data Entity`.
43
44
@@ -50,6 +51,7 @@ The Data Entities can be further described by referencing [contextual entities](
50
51
Where files and folders are represented as _Data Entities_ in the RO-Crate JSON-LD, these MUST be linked to, either directly or indirectly, from the [Root Data Entity](root-data-entity) using the [hasPart] property. Directory hierarchies MAY be represented with nested [Dataset]_Data Entities_, or the Root Data Entity MAY refer to files anywhere in the hierarchy using [hasPart].
51
52
52
53
_Data Entities_ representing files MUST have `"File"` as a value for `@type`. `File` is an RO-Crate alias for <http://schema.org/MediaObject>. The term _File_ includes:
54
+
53
55
- Resources which are available locally (applicable only in the context of _Attached RO-Crate Packages_) and
54
56
-[Web-based Data Entities](#web-based-data-entities) which can be downloaded and saved as a file.
55
57
@@ -178,7 +180,7 @@ RO-Crate's `File` is an alias for schema.org type [MediaObject], any of its prop
178
180
179
181
A `File` entity MAY have an `@id` that is a local identifier beginning with `#`, in which case it is **not** considered to be a Data Entity, though it MAY still be linked to the _Root Data Entity_ via [hasPart]. This is useful for describing physical files which are deliberately not present, for example if they are expected to be created by running a process. In this case, the `localPath` property SHOULD be used to indicate that a `File` could be found at that path in some circumstances.
180
182
181
-
{% include callout.html type="note" content='It is up to implementers to decide whether to offer some form of URL "link checker" service for [Web-based Data Entities](#web-based-data-entities) for both attached and detached RO-Crate Packages. If `contentUrl` has more than one value, then a checker service SHOULD try each provided value until one resolves and returns a correct [contentSize].' %}
183
+
{% include callout.html type="note" content="It is up to implementers to decide whether to offer some form of URL \"link checker\" service for [Web-based Data Entities](#web-based-data-entities) for both attached and detached RO-Crate Packages. If `contentUrl` has more than one value, then a checker service SHOULD try each provided value until one resolves and returns a correct [contentSize]." %}
182
184
183
185
184
186
@@ -315,7 +317,8 @@ Web-based entities MAY use the property [localPath] to indicate a path that can
315
317
316
318
317
319
318
-
{% include callout.html type="note" content="Do not use web-based URI identifiers for files which _are_ present in the crate root, see [below](#data-entities-in-an-attached-ro-crate-that-are-also-on-the-web)." %}
320
+
{% include callout.html type="note" content="Do not use web-based URI identifiers for files which _are_ present in the crate root, see [below](#data-entities-in-an-attached-ro-crate-that-are-also-on-the-web)."
321
+
%}
319
322
320
323
### Data entities in an _Attached RO-Crate_ that are also on the web
321
324
@@ -379,7 +382,8 @@ Similarly, the _RO-Crate Root_ entity (or a reference to another RO-Crate as a `
Copy file name to clipboardExpand all lines: docs/_specification/1.2-DRAFT/metadata.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,6 +130,7 @@ From [Dublin Core Terms](http://purl.org/dc/terms/) RO-Crate uses:
130
130
-`Standard` mapped to <http://purl.org/dc/terms/Standard>
131
131
132
132
From the [IANA link relations] registry:
133
+
133
134
-`cite-as` mapped to <http://www.iana.org/assignments/relation/cite-as> (defined by [RFC8574])
134
135
135
136
These terms are being proposed by [Bioschemas profile ComputationalWorkflow 1.0-RELEASE][ComputationalWorkflow profile 1.0] and [FormalParameter 1.0-RELEASE][FormalParameter profile 1.0] to be integrated into Schema.org:
Copy file name to clipboardExpand all lines: docs/_specification/1.2-DRAFT/root-data-entity.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,13 +148,15 @@ The _Root Data Entity_'s `@id` SHOULD be either `./` (indicating the directory o
148
148
149
149
{% include callout.html type="note" content="RO-Crates that have been assigned a _persistent identifier_ (e.g. a DOI) MAY indicate this using [identifier] on the _Root Data Entity_ using the approach set out in the [Science On Schema.org guides], that is through a `PropertyValue` or MAY use a full persistent URL as the `@id` for the _Root Data Entity_." %}
150
150
151
-
{% include callout.html type="note" content="RO-Crate 1.1 and earlier recommended `identifier` to be plain string URIs. Clients SHOULD be permissive of an RO-Crate `identifier` being a string (which MAY be a URI), or a `@id` reference, which SHOULD be represented as a `PropertyValue` entity which MUST have a human readable `value`, and SHOULD have a `url` if the identifier is Web-resolvable. A citable representation of this persistent identifier MAY be given as a `description` of the `PropertyValue`, but as there are more than 10.000 known [citation styles], no attempt should be made to parse this string."%}
151
+
{% include callout.html type="note" content="RO-Crate 1.1 and earlier recommended `identifier` to be plain string URIs. Clients SHOULD be permissive of an RO-Crate `identifier` being a string (which MAY be a URI), or a `@id` reference, which SHOULD be represented as a `PropertyValue` entity which MUST have a human readable `value`, and SHOULD have a `url` if the identifier is Web-resolvable. A citable representation of this persistent identifier MAY be given as a `description` of the `PropertyValue`, but as there are more than 10.000 known [citation styles], no attempt should be made to parse this string."
152
+
%}
152
153
153
154
#### Resolvable persistent identifiers and citation text
154
155
155
156
It is RECOMMENDED that resolving the `identifier` programmatically returns the _RO-Crate Metadata Document_ or an archive (e.g. ZIP) that contains the _RO-Crate Metadata File_, using [content negotiation](data-entities#retrieving-an-ro-crate) and/or [Signposting]. With an RO-Crate identifier that is persistent and resolvable in this way from a URI, the _Root Data Entity_ SHOULD indicate this using the `cite-as` property according to [RFC8574]. Likewise, an HTTP/HTTPS server of the resolved RO-Crate Metadata Document or archive (possibly after redirection) SHOULD indicate that persistent identifier in its [Signposting] headers using `Link rel="cite-as"`.
156
157
157
-
{% include callout.html type="tip" content='The above `cite-as` MAY go to a repository landing page, and MAY require authentication, but MUST ultimately have the RO-Crate as a downloadable item, which SHOULD be programmatically accessible through content negotiation or [Signposting] (`Link rel="describedby"` for an _RO-Crate Metadata Document_, or `Link rel="item"` for an archive). To rather associate a textual scholarly citation for a crate (e.g. journal article), indicate instead a [publication via `citation` property](contextual-entities#publications-via-citation-property).' %}
158
+
{% include callout.html type="tip" content="The above `cite-as` MAY go to a repository landing page, and MAY require authentication, but MUST ultimately have the RO-Crate as a downloadable item, which SHOULD be programmatically accessible through content negotiation or [Signposting] (`Link rel=\"describedby\"` for an _RO-Crate Metadata Document_, or `Link rel=\"item\"` for an archive). To rather associate a textual scholarly citation for a crate (e.g. journal article), indicate instead a [publication via `citation` property](contextual-entities#publications-via-citation-property)."
159
+
%}
158
160
159
161
Any entity which is a subclass of [CreativeWork], including [Dataset]s like the _Root Data Entity_, MAY have a `creditText` property which provides a textual citation for the entity.
0 commit comments