profile-manifest

CDIF Manifest Profile — Implementation Guide

The CDIF Manifest profile (cdifManifest) — a simple profile to describe distributions that contain multiple files bundled in a single data download media object for distribution.

Conformance

A resource conforms to the CDIF Manifest profile when its catalog record declares conformance to the profile identifier. The catalog record is carried on schema:subjectOf as a dcat:CatalogRecord:

"schema:subjectOf": {
  "@type": ["schema:CreativeWork", "dcat:CatalogRecord"],
  "dcterms:conformsTo": [
    "https://w3id.org/cdif/manifest/1.1"
  ]
}

Other properties added in this profile are optional; conformance requires only that the constraints in the JSON Schema and SHACL rules are satisfied.

Validation

Two validators ship with this repository:

python FrameAndValidate.py examples/<file>.json --validate \
  --schema cdifManifestStructuredSchema.json --frame <frame.jsonld>

Validation is open-world: properties not described by the profile are allowed.

Dataset Properties added by the CDIF Manifest Profile

schema:Dataset

Profile module for packages: the resources that make up a dataset and where to retrieve each of them. Marks the catalog record as conformant to the CDIF manifest spec (https://w3id.org/cdif/manifest/1.1) and declares schema:hasPart in the two places a package needs it — on the schema:Dataset, for parts that are independently accessible at their own addresses, and on a schema:distribution item, for component files inside an archive (ZIP, etc.) that have no address of their own. The base schema:distribution anyOf [DataDownload, WebAPI] contributed by cdifCore is preserved — this BB only adds property constraints, no new anyOf branch. (Merged from the previous cdifProfile/cdifArchive BB, which held only the $defs for ArchivePart; everything now lives here.)

schema:subjectOf

Which schema:hasPart is this?

schema:hasPart carries four different meanings in CDIF, with a different item shape in each. What disambiguates them is the object the property sits on — nothing in the property itself — so a consumer walking a graph has to track where it is.

on this object the parts are shape
schema:Dataset package members, independently accessible, each at its own address resourcePartItem (this profile)
a schema:distribution item component files inside an archive, with no address of their own archivePartItem (this profile)
schema:instrument sub-components of an instrument system InstrumentComponent (instrument BB)
a bioschemas ComputationalWorkflow sub-workflows and component tools inline (bioschemas BB)

The first two are the pair most easily confused. The test is whether a part can be retrieved on its own. If it can, it belongs on the Dataset and may be typed schema:DataDownload. If it can only be reached by unpacking something else, it belongs on the distribution and must not be typed schema:DataDownload, because there is nothing to download it from.

schema:hasPart

The resources that make up the package, where each is independently retrievable at its own address. This is the networked case the profile exists for: a package is “not so much a physical assembly as a list of needed resources and the addresses which can be used to retrieve them”.

Type each part for what it is — schema:Dataset for data, schema:CreativeWork for a codebook, methods document or quality report, schema:MediaObject for a browse image. A part may carry its own schema:distribution, and may be typed schema:DataDownload; an archive part may not.

Where parts are under separate stewardship, put schema:provider, schema:conditionsOfAccess and schema:dateModified on each part, since those are exactly what differ and what a consumer needs before planning access.

Use schema:about on a part that describes another — a codebook, a data dictionary, a quality report, a metadata sidecar — so a consumer can tell which part it documents, rather than only that both are in the package. This is the same relationship OAI-ORE packages express with cito:documents; schema:subjectOf is its declared inverse.

schema:distribution

A bundle distribution is marked positively, by including schema:Collection in its @type alongside schema:DataDownload. When that marker is present the distribution MUST carry schema:hasPart enumerating the member files, each a schema:MediaObject. The archive’s media type goes in schema:encodingFormat and is not the trigger — an earlier version keyed off application/zip, which meant the rule silently failed to apply to tar, 7z, or any other bundle format.

Class Definitions

MediaObject

/@type

schema:QuantitativeValue”

spdx:Checksum

spdx:algorithm

Provenance of the artifacts

The schema and SHACL files are generated from the canonical source register, metadataBuildingBlocks:

Source profile directory: _sources/profiles/cdifProfile/cdifManifest/.