RO-Crate Profile Template

How to use this template

Setup

  1. Click the “Use this template” button to create a new repo using the template (see GitHub: Creating a repository from a template).
  2. Update README.md with general information about your profile.
  3. Update _config.yml with title and description for your profile.
  4. Your profile will be automatically deployed to GitHub Pages on every commit through the included CI workflow .github/workflows/jekyll-gh-pages.yml.

Writing the profile

A profile template is provided in 0.1/profile.md.

If your profile uses terms that are not in the base RO-Crate context, add the terms to 0.1/context.json. Any example RO-Crates should import this context file (from a URL, not from a local path). If you don’t need this file, you can delete it.

The 0.1/ directory also includes ro-crate-metadata.json and ro-crate-preview.html. The are automatically generated; do not edit them directly. See Creating a Profile Crate for how to update them.

When you are ready to increment the version number, copy all files from the previous version into a new folder with the new version number.

Developing examples

Building examples helps to demonstrate how the profile works, and is also beneficial for developing the profile itself. It is strongly recommended that all profiles are published with at least one example.

You may wish to write scripts to build example crates. Store these in scripts/.

Examples should be versioned along with the profile itself.

Creating a Profile Crate

The template includes a template script to build a Profile Crate for the profile. This collects together the resources associated with the profile (specifications, examples, etc). A Profile Crate is needed in order to register the profile in the RO-Crate Profile Registry.

Before running the script, you will need to update it to set essential metadata. See further instructions in scripts/README.md.