Generated from spec/profile.md by build.sh. Do not edit directly.

Quilt RO-Crate profile

Version 0.1.0 — 2026-09-24 — draft

An RO-Crate profile for crates that are ingested into Quilt packages.

Profile URI https://w3id.org/quilt/ro-crate
This version https://w3id.org/quilt/ro-crate/0.1
Term namespace https://w3id.org/quilt/ro-crate#
isProfileOf RO-Crate 1.2 minimum; 1.3 permitted
Recommended companion Process Run Crate 0.6
Source https://github.com/quiltdata/quilt-ro-crate-profile

Purpose

Instruments and acquisition software increasingly emit an ro-crate-metadata.json alongside their output. That graph already names the files produced, who ran the experiment, on which instrument, and when. A profile lets a packaging system read it directly instead of requiring a separate, system-specific manifest.

This profile constrains how five things are expressed, so that a consumer can find them without site-specific configuration:

  1. the target package name
  2. the exact set of files to package
  3. the people and organizations responsible
  4. the instrument that produced the data, and the acquisition event
  5. the electronic lab notebook entry the work belongs to

Everything else in the crate is passed through untouched.

Conformance

The key words MUST, MUST NOT, REQUIRED, SHOULD, SHOULD NOT, RECOMMENDED, MAY and OPTIONAL are to be interpreted as described in RFC 2119.

Requirements are split between producers (whatever writes the crate) and consumers (whatever reads it to build a package). Both sets are normative.

Design principles

These explain why the requirements look the way they do. They are not themselves normative.

schema.org first. RO-Crate's guidance is to use existing schema.org terms, accepting a liberal reading, before inventing anything. Applied strictly, this profile needs three new terms.

No new JSON-LD keys. All three terms are DefinedTerms referenced by @id, as values of propertyID and additionalType. Neither is a key position, so a conforming crate needs no @context extension and parses correctly under stock RO-Crate tooling. An unmapped term in a key or @type position is silently dropped by any JSON-LD processor; avoiding those positions removes a whole class of quiet data loss.

The crate does not model the consumer's search index. It is tempting to bend the crate so its keys match the facets a catalog wants to display. That inverts the dependency: the crate becomes unchangeable because a search schema depends on its shape. Instead, crates stay idiomatic and consumers derive whatever projection they need at ingest.

Vendor-neutral where the vendor is incidental. An @type naming a specific notebook product cannot generalize to a second product. A typed entity with a provider can.

Mechanically checkable. Every requirement below can be checked by a validator. Anything that cannot is stated as guidance instead.

Producer requirements

Metadata document

Root data entity

In addition to the base specification's requirements (@type, @id, name, description, datePublished, license), the root data entity:

Package naming

The root data entity SHOULD carry one of the following under identifier.

Fully qualified name:

{
  "@id": "#quilt-package-name",
  "@type": "PropertyValue",
  "propertyID": "https://w3id.org/quilt/ro-crate#packageName",
  "value": "my-namespace/2026-09-08-assay-01"
}

Namespace only, with the name derived from the root entity's name:

{
  "@id": "#quilt-namespace",
  "@type": "PropertyValue",
  "propertyID": "https://w3id.org/quilt/ro-crate#packageNamespace",
  "value": "my-namespace"
}

This mirrors how the base specification expresses a DOI: a PropertyValue under identifier, distinguished by propertyID. It needs no new JSON-LD key.

A value given for packageName MUST already be a valid Quilt package name. Consumers reject rather than normalize, so that a malformed name surfaces at the producer.

File entities

Every member of hasPart MUST be a File, or a Dataset for a directory. Each SHOULD carry name, encodingFormat, contentSize, dateCreated, dateModified and sha256.

dateCreated and dateModified MUST be the times the instrument produced the data, not the times the files were transferred or copied. Object stores overwrite filesystem timestamps on upload, so these properties are frequently the only surviving record of when an experiment actually ran. The two are often equal; that is expected and correct.

A Dataset member expands to every object beneath that prefix. Absolute s3:// or https:// identifiers are permitted; their basename becomes the package logical key.

People and organizations

Carrying both means a consumer never has to infer whether a handle in one system matches an account name in another.

Instruments and acquisition

An instrument MUST be an IndividualProduct — schema.org's type for a single identifiable unit — with:

and SHOULD carry manufacturer, model, and additionalType referencing an ontology IRI for the instrument class. See ontology-iri-lookup.md for how to find one. The owning organization SHOULD link to the instrument with schema.org's existing owns property.

Acquisition MUST be recorded following Process Run Crate: one CreateAction per acquisition run, carrying instrument, agent, result, and endTime, and listed under the root entity's mentions. Without mentions the action is unreachable from the root and a generic consumer cannot find it. Action identifiers SHOULD be UUIDs.

Declaring conformance to Process Run Crate alongside this profile is RECOMMENDED. It costs one array entry and makes the crate checkable by existing community tooling.

Electronic lab notebook entry

{
  "@id": "https://eln.example.org/entries/etr_AbC123",
  "@type": "CreativeWork",
  "additionalType": { "@id": "https://w3id.org/quilt/ro-crate#ELNEntry" },
  "name": "ASSAY-1234",
  "identifier": "etr_AbC123",
  "url": "https://eln.example.org/entries/etr_AbC123",
  "provider": { "@id": "#eln-vendor" }
}

Referenced from the root entity with subjectOf. The @id SHOULD be the resolvable entry URL, which makes the identifier globally unique without reserving any identifier space per vendor. provider MUST reference an Organization or SoftwareApplication naming the notebook system, which is what lets one consumer handle several notebook systems.

Licensing

license is required on the root entity by the base specification, and there is often no public license that applies — internal or proprietary data being the common case. Define a local CreativeWork and reference it identically from every crate:

"license": { "@id": "https://example.org/legal/internal-research-use/1.0" },
"copyrightHolder": { "@id": "https://example.org/org/example-institute" },
"copyrightYear": "2026",
"conditionsOfAccess": "Internal use only. Access governed by the owning group.",
"isAccessibleForFree": false
{
  "@id": "https://example.org/legal/internal-research-use/1.0",
  "@type": "CreativeWork",
  "name": "Example Institute internal research use v1.0",
  "description": "Proprietary and confidential. All rights reserved. Internal research use only; no redistribution or publication without written authorization.",
  "sameAs": "http://rightsstatements.org/vocab/InC/1.0/"
}

Points worth noting:

Three things to avoid:

An alternative, used by the Language Data Commons profile, is to ship the terms as a file inside the crate and point license at it. That maximizes self-containment and suits crates that travel between institutions, at the cost of duplicating the file into every crate.

Additional metadata

Anything not covered above SHOULD be expressed with variableMeasured referencing a PropertyValue carrying propertyID, value and, where applicable, unitText. This may appear on the root entity or on individual files. It is the same pattern the ELN file format uses, including . as a nesting separator within propertyID.

Producers MUST NOT introduce bare JSON keys for this purpose, because an unmapped key is dropped during JSON-LD processing.

The propertyID IRIs here belong to the producer, under a namespace the producer controls. This profile deliberately does not enumerate them: that is the extension point which keeps domain-specific metadata independent of this profile's versioning.

Terms defined by this profile

Three, all DefinedTerm, all referenced by @id only. They are defined in the Profile Crate and, per the profiles specification, need not be repeated in each conforming crate.

Term Used as Meaning
packageName propertyID Fully qualified package name, namespace/name
packageNamespace propertyID Namespace only; name derived from the root entity's name
ELNEntry additionalType Marks a CreativeWork as an electronic lab notebook entry

Term IRIs are intentionally unversioned while the profile URI is versioned, so that terms remain stable across profile revisions.

Consumer requirements

A conforming consumer is one that builds a package from a crate.

Manifest. The consumer MUST package exactly the entities listed in the root entity's hasPart, expanding Dataset members to the objects beneath them. It MUST NOT substitute a directory listing when a conforming crate is present.

Package naming. Resolution order MUST be: an explicit packageName; otherwise packageNamespace joined to the root entity's name; otherwise the consumer's own default. An invalid explicit name MUST be rejected rather than corrected.

Entry metadata. For each File, the consumer SHOULD attach the entity's remaining properties — everything except @id, @type and name — as metadata on the corresponding package entry, so that instrument timestamps and checksums survive into the package.

Package metadata. The consumer MUST retain the crate graph verbatim. It SHOULD also derive a flat projection for search, keyed by the role an entity plays rather than by its @type:

{
  "package_name": "my-namespace/2026-09-08-assay-01",
  "creator":       ["Jane Doe"],
  "producer":      ["Assay Development", "Laboratory Operations"],
  "instrument":    ["Flow Cytometer 1"],
  "instrument_id": ["INST-000123"],
  "eln_entry":     ["ASSAY-1234"]
}

Keying by role rather than type is what makes this stable. Two entities of the same type — a parent and child organization, say — are distinguished by the property that links them to the root, not by inventing compound keys from their identifiers. Values stay human-readable, because a scientist searches for a group or instrument name, not for a key.

Provenance. The consumer MUST include ro-crate-metadata.json in the package, so the package records the graph it was built from.

Validation. A crate that declares conformance to this profile and does not satisfy it MUST be rejected rather than partially ingested. A crate that declares no profile MAY be processed on a best-effort basis.

Validation

validate.py in this repository checks the Profile Crate and its example: JSON-LD expansion against the published RO-Crate context with no term dropped, the Profile Crate's structural requirements, resource descriptors and their roles, term definitions agreeing with the term set in both directions, and the example declaring conformance back to the profile.

It does not check arbitrary crates against the requirements above; no SHACL shape exists yet. roc-validator covers the base specification layer.

References

License

This specification is licensed under the Apache License 2.0.

Term definitions

packageName
Identifies a PropertyValue whose value is the fully qualified name of the Quilt package to build, in the form namespace/name. Used as the value of propertyID. Takes precedence over packageNamespace.
packageNamespace
Identifies a PropertyValue whose value is the namespace portion only of the Quilt package name. The name portion is derived from the name of the root data entity. Used as the value of propertyID.
ELNEntry
An entry in an electronic lab notebook that documents the experiment a crate records. Used as the value of additionalType on a CreativeWork. The notebook system is identified by provider, which keeps the term independent of any one vendor.