Skip to content

Commit ad848cd

Browse files
authored
Merge pull request ResearchObject#499 from elichad/page-descriptions
Add page descriptions/excerpts to improve page previews and SEO
2 parents cbf83c7 + 0b3ec59 commit ad848cd

38 files changed

+141
-7
lines changed

docs/_includes/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{%- assign subtitle = page.type | replace: "_", " " %}
2020
{%- endif %}
2121
{%- capture title %}{% if page.url == "/" %}{{site.title}}{% elsif page.title %}{% if subtitle %}{{subtitle}}: {% endif %}{{ page.title }} | {{ site.title }}{%- else %}{{ site.title }}{% endif %}{% endcapture %}
22-
{%- capture description %}{% if page.url == "/" %}{{site.description}}{% elsif page.description %}{{ page.description | strip_html | replace: '\n', ' ' | truncatewords: 30, '...' }}{% elsif page.summary %}{{ page.summary | strip_html | replace: '\n', ' ' | truncatewords: 30, '...' }}{% else %}{{ page.content | strip_html | replace: '\n', ' ' | truncatewords: 30, '...' }}{% endif %}{% endcapture %}
22+
{%- capture description %}{% if page.url == "/" or page.url == "/index" %}{{site.description}}{% elsif page.description %}{{ page.description | strip_html | replace: '\n', ' ' | truncatewords: 30, '...' }}{% elsif page.summary %}{{ page.summary | strip_html | replace: '\n', ' ' | truncatewords: 30, '...' }}{% elsif page.excerpt %}{{ page.excerpt | strip_html | replace: '\n', ' ' | truncatewords: 30, '...' }}{% else %}{{ page.content | strip_html | replace: '\n', ' ' | truncatewords: 30, '...' }}{% endif %}{% endcapture %}
2323
<meta charset="utf-8">
2424
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2525
<title>{{title}}</title>

docs/_specification/1.0/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
title: RO-Crate 1.0
3+
excerpt: |
4+
This document specifies a method, known as _RO-Crate_ (Research Object Crate), of organizing file-based data with associated metadata, using [linked data] principles, in both human and machine readable formats, with the ability to include additional domain-specific metadata.
35
redirect_from:
46
- /1.0/
57
nav_exclude: true

docs/_specification/1.1/appendix/jsonld.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ title: RO-Crate JSON-LD
33
redirect_from:
44
- /1.1-DRAFT/appendix/jsonld
55
- /1.1/appendix/jsonld
6+
excerpt: |
7+
It is not necessary to use [JSON-LD tooling] to generate or parse the _RO-Crate Metadata Document_, although JSON-LD tools may make it easier to conform to this specification, e.g. handling relative URIs. It is however RECOMMENDED to use [JSON tooling][JSON] to handle [JSON][RFC 7159] syntax and escaping rules.
8+
9+
This appendix shows a brief JSON-LD introduction for complying with the _RO-Crate Metadata Document_ requirements.
610
parent: Appendix
711
grand_parent: RO-Crate 1.1
812
---

docs/_specification/1.1/appendix/relative-uris.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
---
22
title: Handling relative URI references
3+
excerpt: |
4+
The _RO-Crate Metadata File_ use _relative URI references_ to identify files and directories
5+
contained within the _RO-Crate Root_ and its children. As described in section
6+
[Describing entities in JSON-LD](jsonld#describing-entities-in-json-ld) above,
7+
relative URI references are also frequently used for
8+
identifying _Contextual entities_.
39
parent: Appendix
410
grand_parent: RO-Crate 1.1
511
redirect_from:

docs/_specification/1.1/data-entities.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ title: Data Entities
33
redirect_from:
44
- /1.1-DRAFT/data-entities
55
- /1.1/data-entities
6+
excerpt: |
7+
The primary purpose for RO-Crate is to gather and describe a set of _Data entities_ in the form of:
8+
9+
* Files
10+
* Directories
11+
* Web resources
12+
13+
The data entities can be further described by referencing [contextual entities](contextual-entities) such as persons, organizations and publications.
614
nav_order: 6
715
parent: RO-Crate 1.1
816
---

docs/_specification/1.1/introduction.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Introduction
33
redirect_from:
44
- /1.1-DRAFT/introduction
55
- /1.1/introduction
6+
excerpt: |
7+
This document specifies a method, known as _RO-Crate_ (Research Object Crate), of aggregating and describing research data with associated metadata. RO-Crates can aggregate and describe any resource including files, URI-addressable resources, or use other addressing schemes to locate digital or physical data. RO-Crates can describe data both in aggregate and at the individual resource level, with metadata to aid in discovery, and for the re-use and long term management of data. Metadata provides the ability to describe the context of data and entities involved in its production, use and reuse. For example: who created it, using which equipment, software and workflows, under which license it can be re-used, where it was collected, and/or what it is *about*.
68
nav_order: 1
79
parent: RO-Crate 1.1
810
---

docs/_specification/1.1/provenance.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Provenance of entities
33
redirect_from:
44
- /1.1-DRAFT/provenance
55
- /1.1/provenance
6+
excerpt: |
7+
To specify which **equipment** was used to create or update a [Data Entity](data-entities), the _RO-Crate JSON-LD_ SHOULD have a _Contextual Entity_ for each item of equipment which SHOULD be of `@type` [IndividualProduct]. The entity SHOULD have a serial number and manufacturer that identify the equipment as completely as possible. In the following case the equipment is a bespoke machine. The equipment SHOULD be described on a web page, and the address of the description SHOULD be used as its `@id`.
68
nav_order: 8
79
parent: RO-Crate 1.1
810
---

docs/_specification/1.1/root-data-entity.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ title: Root Data Entity
33
redirect_from:
44
- /1.1-DRAFT/root-data-entity
55
- /1.1/root-data-entity
6+
excerpt: |
7+
The **Root Data Entity** is a [Dataset] that represents the RO-Crate as a whole;
8+
a _Research Object_ that includes the _Data Entities_ and the related
9+
_Contextual Entities_.
610
nav_order: 5
711
parent: RO-Crate 1.1
812
---

docs/_specification/1.1/structure.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@ title: RO-Crate Structure
33
redirect_from:
44
- /1.1-DRAFT/structure
55
- /1.1/structure
6+
excerpt: |
7+
The structure an _RO-Crate_ MUST follow is:
8+
9+
```
10+
<RO-Crate root directory>/
11+
| ro-crate-metadata.json # RO-Crate Metadata File MUST be present
12+
| ro-crate-preview.html # RO-Crate Website homepage MAY be present
13+
| ro-crate-preview_files/ # MAY be present
14+
| | [other RO-Crate Website files]
15+
| [payload files and directories] # 0 or more
16+
```
617
nav_order: 3
718
parent: RO-Crate 1.1
819
---

docs/_specification/1.2/appendix/implementation-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
title: Implementation notes
3+
description: Guidance on programming with JSON-LD, combining RO-Crate with other packaging schemes, and repository-specific identifiers
34
redirect_from:
45
- /1.2-DRAFT/appendix/implementation-notes
56
- /specification/1.2-DRAFT/appendix/implementation-notes

0 commit comments

Comments
 (0)