1. Introduction
This section is non-normative.
The FAIR Data Train sends computation to data. Before anything is sent, three questions have to be answerable from what the parties publish: where — which stations hold data a train can use, and how to reach them; what — which train this is, what it needs, what it returns and under which licence; and who — who signed what is about to run, and with which key. This specification states what each party publishes to answer them. What happens once a train is sent is the [FDT-VISIT-PROTOCOL]; how the parties fit together is the [FDT-ARCHITECTURE].
Four parties publish metadata here: the Train Depot, which serves trains and everything a station needs to check one; the Train Handler, which runs them for a consumer; the Data Station, which hosts data and runs trains against it; and every party that signs anything —including the Individual Gateway, which signs for consumers and creators — publishes its key set.
1.1. Scope
This section is non-normative.
This document covers the shared conventions (§ 3 Shared conventions) and key sets (§ 4 Key sets); the
train (§ 5 The train); the Train Depot (§ 6 The Train Depot); the Train Handler (§ 7 The Train Handler); and the Data
Station (§ 8 The Data Station). It does not cover the visit protocol’s messages, the controller’s authoring
of conditions, the registry’s interface, or the run description (plans and runs), which have their
own contracts in fdt-commons [FDT-COMMONS].
1.2. Reading this document
This section is non-normative.
Every requirement here is stated by reference to an artefact of fdt-commons — a SHACL shape, a
JSON Schema, an OpenAPI operation — rather than restated in prose, because a restatement is a second
contract that will disagree with the first. Where this text summarises what a shape requires, the
shape governs. Decisions are cited as ADR-nnn [FDT-ADR], questions the contracts leave open as
Qnn (§ 11 Open points). Every party and IRI in the examples is fictional.
2. Conformance
2.1. Conformance classes
The key words MUST, MUST NOT, SHOULD and MAY are to be interpreted as described in [RFC2119]. The requirements are stated in the body of this document; § 9 Criteria collects them as numbered criteria. Where a criterion and the body text differ, the body text and the artefacts of Appendix B: Normative artefacts govern.
- Metadata-conforming Train Depot
-
Meets every criterion of § 9.3 A Train Depot and § 9.1 Key sets, and serves only train descriptions that meet every criterion of § 9.2 A train description.
- Metadata-conforming Train Handler
-
Meets every criterion of § 9.4 A Train Handler and § 9.1 Key sets.
- Metadata-conforming Data Station
-
Meets every criterion of § 9.5 A Data Station and § 9.1 Key sets — MD-DS-7 only where it hosts an identifier-translation service.
- Key-set publisher
-
Any other party that signs — an Individual Gateway, for each consumer and creator it signs for —meets every criterion of § 9.1 Key sets.
The criteria are numbered by class, apart from those of the companion specifications, so that a
claim can cite all three without ambiguity: MD-TR (a train description), MD-DP (a Depot),
MD-TH (a Handler), MD-DS (a Data Station), MD-KS (a key set and its use). How a station
verifies what a Depot publishes about a train — the creator’s signature, the payload digest — is a
step of the visit, and is stated as criteria of the Visit Protocol.
2.2. How the criteria are checked
As in the [FDT-VISIT-PROTOCOL]:
- Schema
-
A SHACL shape or JSON Schema of Appendix B: Normative artefacts decides it. The fixtures named are what an implementation must accept, and the counter-examples what it must refuse, with the message the shape carries — recorded in
tests/expectations.jsonand, for the ontology tier,tests/ontology-expectations.json.python3 tests/validate.pyandpython3 tests/validate_ontology.pyrun them. No component enforces a JSON Schema’sformatkeywords, and no criterion rests on one (Q164). - Rule
-
A checker in
fdt-commons/toolsexecutes the rule over the fixtures named — here chieflydescriptor.py check(key sets, the creator’s signature) andderivation.py check(takes). - Harness
-
A behaviour observable only against a running party — what a route answers, what a party keeps serving. No third-party-runnable harness is published yet; the reference implementation’s test suites are the only published evidence for these rows.
3. Shared conventions
3.1. Vocabularies
Metadata is RDF [RDF11-CONCEPTS], described with DCAT 3 [VOCAB-DCAT-3] and the FAIR Data Point structure [FDP], and with the FDT’s own vocabularies:
| Prefix | Namespace | What it is |
|---|---|---|
fdt-o:
| https://w3id.org/fdt/fdt-o#
| FDT-O [FDT-O], the ontology: the classes a party, a train, a dataset or a catalogue is an instance of. FDT-O carries the ontology only; it publishes no shapes. |
fdt-p:
| https://w3id.org/fdt/profile#
| The FDT profile (vocab/fdt-profile.ttl): the ODRL profile, and the terms this specification adds to describe parties — fdt-p:keySet, fdt-p:dispatchMode (fdt-p:Push, fdt-p:Poll), fdt-p:submission, fdt-p:creatorSignature, fdt-p:processingLocation.
|
fdt-net:
| https://w3id.org/fdt/network#
| Networks, their governance authorities, memberships and participant roles. |
fdt-run:
| https://w3id.org/fdt/run#
| The run description: parameters, coordination styles. |
fdt-inst:
| https://w3id.org/fdt/instances#
| Named individuals: interaction mechanisms, capacity classes. |
fdp-o:
| https://w3id.org/fdp/fdp-o#
| The FAIR Data Point ontology. |
Offers and agreements are ODRL 2.2 [ODRL-MODEL]; provenance and withdrawal are PROV-O [PROV-O].
3.2. Two tiers of shapes
**Every normative shape is in fdt-commons**, in two tiers, and a published document MUST conform
to both wherever a shape of either selects it:
-
the ontology tier,
shapes/ontology.shapes.ttl: how FDT-O’s terms are used — a train has a payload, a part has one whole, a Depot catalogue holds no datasets. Its shapes are writtenfdts-onto:…Shape, and the two FAIR Data Point shapesfdp:MetadataRecordShapeandfdp:AgentShape. The ontology tier’s own instances and counter-examples,examples/ontology/, are checked against this tier only; -
the application profile, the other files of
shapes/: what the FDT requires on top — a key set, a dispatch mode, a signature link.
Shapes are named with one prefix per shape namespace, as fdt-commons README.md ("Shape
prefixes") binds them. The bare fdts: of earlier drafts named four namespaces at once and is
retired:
| Prefix | Namespace | File |
|---|---|---|
fdts-onto:
| https://w3id.org/fdt/shapes#
| shapes/ontology.shapes.ttl (the ontology tier)
|
fdp:
| http://fairdatapoint.org/
| shapes/ontology.shapes.ttl (the FAIR Data Point record)
|
fdts-catalog:
| https://w3id.org/fdt/shapes/catalog#
| shapes/station-catalog.shapes.ttl
|
fdts-train:
| https://w3id.org/fdt/shapes/train#
| shapes/train-offer.shapes.ttl, and fdts-train:QueryTrainCoordinationShape in shapes/ontology.shapes.ttl
|
fdts-policy:
| https://w3id.org/fdt/shapes/policy#
| shapes/policy.shapes.ttl, shapes/published-graph.shapes.ttl
|
3.3. Serialisations, contexts and identifiers
An RDF document named here is served as Turtle and as JSON-LD [JSON-LD11], chosen by Accept,
with 406 when neither is acceptable. JSON-LD documents use the contexts of fdt-commons
contexts/ — the run context, named https://w3id.org/fdt/run/context.jsonld, and the ODRL subset,
named https://w3id.org/fdt/odrl/context.jsonld. The https://w3id.org/fdt/… names are not yet
redirected (Q1); a reader takes the contexts from fdt-commons and MUST NOT expect to fetch them
from those names.
Where a party also serves a JSON view of its description — DepotDescription,
HandlerDescription — the RDF description is the description, and the view states the same facts
for a reader that does not parse RDF. A station serves no separate JSON view: its GET / JSON-LD
document is its RDF description (StationSelfDescription declares only its @id, and says the
shape is its schema).
4. Key sets
Every FDT signature is Ed25519 over a digest, naming the signer (signedBy) and the key
(keyId). A key set is where a party publishes the public half of each key it
signs with: a JWK Set [RFC7517] conforming to schemas/key-set.schema.json, with two FDT members
JWK permits:
-
party✱ — the party the set belongs to, and thesignedByof everything signed with its keys, so that a set fetched from one party cannot be presented as another’s; -
keys✱ — public Ed25519 keys (ktyOKP,crvEd25519,kidthe key’s IRI,x), eachkidbeing what a signature names as itskeyId; and on a key,exp— the moment it was retired, as an RFC 7519 NumericDate.
A key set MUST NOT contain a private half: a key carrying d is refused, whatever else it says.
keys/station.ut.example.jwks.json.
{ "party" : "https://example.org/fdt/station/ut" , "note" : "Published by this party at https://station.ut.example/fdt/v1/keys (fictional). Only the PUBLIC half is here: a verifier holding a signed agreement checks it against this and needs nothing from the other party — a party is not a witness (ADR-028, ADR-038). The private halves are derived in tools/derivation.py from the key ids, sign nothing but these fixtures, and are not a pattern for a deployment. Published for discovery, never for trust (ADR-060): a verifier trusts a key because it holds it out of band, not because it found it here." , "keys" : [ { "kty" : "OKP" , "crv" : "Ed25519" , "alg" : "EdDSA" , "use" : "sig" , "kid" : "https://station.ut.example/fdt/v1/keys/1" , "x" : "RariF5tJ4hhIZKLeYHqdcOUMamWjLVD6NDO0WGU7mpw" } ] }
4.1. Where a key set is published
| Party | Route | Notes |
|---|---|---|
| Data Station | GET /keys (station-visit-api.yaml)
| The keys it signs the assigner’s side of agreements and its result envelopes with. |
| Train Handler | GET /keys (handler-api.yaml)
| Its operator keys: descriptors, the assignee’s side of visit agreements, carrier’s records. |
| Train Depot | GET /keys (train-depot-api.yaml); GET /.well-known/jwks.json, deprecated, the same set
| The key it signs its requests to creators' Gateways with (ADR-061, § 6 The Train Depot). A Depot signs nothing a party is bound by. |
| Individual Gateway | GET /keys/{party}, one set per party it signs for, indexed at GET /keys (individual-gateway-api.yaml); {party} is the party’s IRI as unpadded base64url (tools/descriptor.py party_handle)
| The set’s party is the consumer or the creator, never the Gateway; sets are never merged.
|
Every route is unauthenticated (security: [] in each OpenAPI document): a public key is public,
and an auditor checking a signature needs no account. A party’s description links its own set with
fdt-p:keySet (§ 6 The Train Depot, § 7 The Train Handler, § 8 The Data Station). Every key id is within its set: a key’s
kid begins with the URL of the set that publishes it, followed by / or # — for a Gateway, the
per-party set <gateway>/keys/{party}, its keys <set>/1, … (descriptor.py check).
4.2. Discovery, never trust
Publication is for discovery and never a source of trust (ADR-060). A verifier MAY use a published set to find a key and to notice a change. It MUST trust a key only because it holds it out of band — or, once Q61 is answered, because a trust anchor it holds vouches for it — and MUST NOT trust a key because it found it published: a signature that verifies against a key merely downloaded proves only that whoever controls that address signed it. Every requirement in the FDT specifications to verify a signature "against the key held" for a party means a key held this way.
4.3. Retired keys
A party that stops signing with a key MUST keep it in its set, marked with exp, so that what it
signed stays checkable; a key is removed only when nothing it signed is expected to be checked again
(ADR-060).
A retired key verifies only what is dated before it retired (key-set.schema.json, exp). A
verifier MUST accept a signature by a retired key only over a document whose own time is before the
key’s exp, the document’s time being:
-
a visit descriptor’s or a run authorisation’s
issuedAt; a take read’spresentedAt; -
a result envelope’s the
timeof the last event it closes; -
an agreement’s
dspace:timestamp— a take’s three signatures (the creator’s side, the owner’s and the carrier’s record) included (agreement-derivation.md§6,train-publication.md§3.1); -
a train submission’s the publication time its Depot recorded,
dct:issuedon the served train, trusted for the time and nothing else (train-publication.md§2.1); -
a Depot’s request to a creator’s Gateway, its
sentAt(§ 6 The Train Depot).
A later document is answered with the UnknownKey family of the document’s own vocabulary
(UnknownKey, AuthorisationUnknownKey, CreatorUnknownKey, RequestUnknownDepot), its detail
saying the key was retired: at that time it is no key the verifier holds. A document with no time
of its own cannot be shown to predate a retirement, and a retired key MUST NOT verify it. The one
implementation is tools/descriptor.py (usable_keys, retired_key_detail) and, for agreements,
tools/derivation.py check_signature.
5. The train
A train is an executable asset — a query, an API call, a script or a container —with an identity, a creator, a payload and a licence (ADR-020). **It is never a dcat:Dataset**: a
station runs a train, it does not host one, and a registry harvesting both catalogues must keep them
apart.
5.1. The train description
A train description is the RDF a Depot serves for a train at
GET /trains/{train}. It MUST conform to the ontology tier — fdts-onto:TrainShape, fdts-onto:PayloadShape,
fdts-onto:InputRequirementShape with fdts-onto:RequiredDatasetShape, and fdts-train:QueryTrainCoordinationShape — and
to the profile — fdts-train:TrainOfferShape with fdts-train:TrainPayloadShape, fdts-train:ParameterShape and
fdts-train:TrainOutputShape, and fdts-train:TrainSignatureLinksShape (train-offer.shapes.ttl). In summary,
a train description:
-
types the train with one concrete class (
fdt-o:SPARQLTrain,fdt-o:DockerTrain, …) —fdt-o:Trainand its four families are abstract — and never withdcat:Dataset, and gives it nodcat:distribution; -
names its creator (
dct:creator, one IRI), who it is attributed to (prov:wasAttributedTo), who has controlling rights over it (fdt-o:isControlledBy), and its version (dct:hasVersion); -
declares its payload (§ 5.2 Payload and digest), the parameters it takes (
fdt-run:parameter, each with a name and a datatype), the data it needs as an input requirement carrying a SHACL model (ADR-030), and the output it produces (fdt-o:generatesOutput, each withdct:conformsTothe JSON Schema a result is inspected against); -
declares the coordination styles it supports (
fdt-o:supportsCoordination); a query or API train supportsfdt-run:Orchestratedonly (ADR-013); -
carries its creator’s offer (§ 5.4 The creator’s offer), and links the creator’s signature where the Depot keeps one (§ 5.3 The creator’s signature).
5.2. Payload and digest
The payload is an fdt-o:Payload: its media type (fdt-o:payloadMediaType), its bytes — by
fdt-o:payloadDownloadURL or inline as fdt-o:payloadContent — and its digest,
fdt-o:artifactDigest, written sha256: and 64 lowercase hex digits. A Depot serves the bytes at
GET /trains/{train}/payload, the declared output’s JSON Schema at GET /trains/{train}/output-schema
and the input requirement’s shapes at GET /trains/{train}/input-shapes.
The digest alone binds nothing a Depot cannot rewrite: a Depot that served other bytes with a matching digest would pass a comparison of the two. What binds the bytes to the train is the creator’s signature, over both.
5.3. The creator’s signature
A creator signs every publication at their own Individual Gateway (ADR-036, ADR-037). The
submission is the description exactly as the creator submitted it — the train and
everything its creator states about it: payload, parameters, input requirement, declared output and
offer. The signature is over the submission digest, defined in
protocol/train-publication.md §1: sha256: and the lowercase hex SHA-256 of canonical(G) of the
whole submitted description immediately followed by the payload bytes — so that neither the
description nor the bytes can be replaced alone. It is a DetachedSignature
(train-depot-api.yaml): Ed25519 over the digest string, signedBy the train’s dct:creator,
keyId a key in the creator’s key set, which their Gateway publishes.
A Depot MUST keep what the creator signed and serve it unchanged (ADR-059): the submission at
GET /trains/{train}/submission, in the media type it was submitted in, and the signature at
GET /trains/{train}/signature, exactly as the creator’s Gateway produced it — both unauthenticated.
The train description MUST link both, with fdt-p:submission and fdt-p:creatorSignature, or
neither. A train published before signatures were kept links neither, and its signature route
answers 404 with reason NotKept; nobody but its creator may sign it again.
What the signature covers. Everything the creator submitted, and the payload’s bytes. What it does not cover. What a Depot states about the train afterwards — that it was withdrawn, the two links themselves, which catalogue lists it: the served description may grow, which is why the submission is served separately. A station verifies the signature itself, at PEP 1, recomputing the submission digest from the submission and the bytes it fetched, against a creator key it holds out of band ([FDT-VISIT-PROTOCOL], STA-46).
A canonicalisation’s cost depends on the graph’s structure, so a Depot bounds what it will
canonicalise before anything else touches it: at most 200 blank nodes and 2 000 triples
(train-publication.md §1.1).
gene-disease — trains/gene-disease.submission.ttl — and its creator’s signature, trains/gene-disease.signature.json. The signature verifies against the published key of the Open Genomics Collective over this description and the bytes of payloads/gene-disease-1.3.rq.
@prefix dcat: <http://www.w3.org/ns/dcat#> . @prefix dct: <http://purl.org/dc/terms/> . @prefix fdt-inst: <https://w3id.org/fdt/instances#> . @prefix fdt-o: <https://w3id.org/fdt/fdt-o#> . @prefix fdt-p: <https://w3id.org/fdt/profile#> . @prefix fdt-run: <https://w3id.org/fdt/run#> . @prefix obo: <http://purl.obolibrary.org/obo/> . @prefix odrl: <http://www.w3.org/ns/odrl/2/> . @prefix prov: <http://www.w3.org/ns/prov#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . <https://example.org/fdt/offer/train-gene-disease> a odrl : Offer ; odrl : assigner <https://example.org/fdt/party/open-genomics-collective> ; odrl : permission [ a odrl : Permission ; odrl : action odrl : execute ; odrl : constraint [ odrl : leftOperand odrl : purpose ; odrl : operator odrl : eq ; odrl : rightOperand <https://w3id.org/dpv#ResearchAndDevelopment> ] ] ; odrl : profile <https://w3id.org/fdt/profile> ; odrl : target <https://example.org/fdt/train/gene-disease> ; fdt-p : policyKind fdt-p : AccessPolicy ; fdt-p : underNetwork <https://example.org/fdt/net/health-research-nl> . <https://example.org/fdt/output/gene-disease-table> a dcat : Dataset ; dct : conformsTo <https://example.org/fdt/schemas/gene-disease-output> . <https://example.org/fdt/param/gd-limit> a fdt-run : Parameter ; fdt-run : datatype xsd : integer ; fdt-run : name "limit" . <https://example.org/fdt/param/gd-min-evidence> a fdt-run : Parameter ; fdt-run : datatype xsd : integer ; fdt-run : name "min_evidence" . <https://example.org/fdt/param/gd-mode> a fdt-run : Parameter ; fdt-run : allowedValue "diseases-to-genes" , "genes-to-diseases" ; fdt-run : datatype xsd : string ; fdt-run : name "mode" ; fdt-run : required true . <https://example.org/fdt/param/gd-terms> a fdt-run : Parameter ; fdt-run : datatype xsd : string ; fdt-run : maxCardinality 50 ; fdt-run : name "terms" ; fdt-run : required true . <https://example.org/fdt/payload/gene-disease-1.3> a fdt-o : Payload ; dct : title "Gene–disease SPARQL query" ; fdt-o : artifactDigest "sha256:0f2ea318c57bde07b025561f2333bbf0b0cb7ce75ed867ca72020ff60a7890b9" ; fdt-o : payloadDownloadURL <https://depot.example.org/trains/gene-disease/1.3/query.rq> ; fdt-o : payloadMediaType "application/sparql-query" . <https://example.org/fdt/requirement/gene-disease-input> a fdt-o : InputRequirement ; obo : BFO_0000051 <https://example.org/fdt/input/gene-disease-associations> ; dct : title "Gene–disease associations with per-study subject counts" . <https://example.org/fdt/train/gene-disease> a fdt-o : SPARQLTrain ; dct : creator <https://example.org/fdt/party/open-genomics-collective> ; dct : hasVersion "1.3" ; dct : title "Gene–disease associations" ; dcat : theme obo : DOID_4 ; odrl : hasPolicy <https://example.org/fdt/offer/train-gene-disease> ; prov : wasAttributedTo <https://example.org/fdt/party/open-genomics-collective> ; fdt-o : generatesOutput <https://example.org/fdt/output/gene-disease-table> ; fdt-o : hasPayload <https://example.org/fdt/payload/gene-disease-1.3> ; fdt-o : hasRequirement <https://example.org/fdt/requirement/gene-disease-input> ; fdt-o : implementsInteractionMechanism fdt-inst : SPARQL ; fdt-o : isControlledBy <https://example.org/fdt/party/open-genomics-collective> ; fdt-o : supportsCoordination fdt-run : Orchestrated ; fdt-run : parameter <https://example.org/fdt/param/gd-limit> , <https://example.org/fdt/param/gd-min-evidence> , <https://example.org/fdt/param/gd-mode> , <https://example.org/fdt/param/gd-terms> .
{ "signedBy" : "https://example.org/fdt/party/open-genomics-collective" , "keyId" : "https://gateway.open-genomics.example/fdt/v1/keys/aHR0cHM6Ly9leGFtcGxlLm9yZy9mZHQvcGFydHkvb3Blbi1nZW5vbWljcy1jb2xsZWN0aXZl/1" , "algorithm" : "EdDSA" , "signedDigest" : "sha256:aa0fd4f3ef3cebce3067b475efed262bed034eeae995c6998aeb43524f3cd24c" , "value" : "ya_jUfhnfbLFdewa7bi8ZEFs92NbCpA6QmxitblR7IPJNA2ZQQzFCkN_IBa1xjAWM98zpa-c5TfRSGKVq7hFCQ" }
5.4. The creator’s offer
A train carries at least one odrl:Offer from its creator over the train as an asset —its licence: which actions, for which purposes, in which network. The offer MUST conform to
fdts-policy:OfferShape (policy.shapes.ttl), and its odrl:assigner MUST be the train’s
dct:creator: every policy over a train is its creator’s, and a Depot, an owner or anybody else
assigning one would be granting rights it does not hold (fdts-train:TrainOfferShape).
5.5. Takes and their pins
Becoming a train’s owner is a take: a request against the creator’s offer,
evaluated by the Depot by the same derivation rule a station applies to a dataset’s offer, which
concludes an odrl:Agreement conforming to fdts-policy:AgreementShape. Like any agreement it pins
what it was derived from — fdt-p:offerDigest, fdt-p:requestDigest, fdt-p:payloadDigest, and
fdt-p:train (agreement-derivation.md §5) — so that a licence granted for one version of the code
does not cover another. It carries two signatures over its canonical form: the assigner’s, by the
creator at their Gateway, and the assignee’s, by the owner at their own Gateway, in their own
name. The Handler through which it was done MAY add a carrier’s record — its own signature
over the same digest, at most one, made on nobody’s behalf, on a licence over a train and nowhere
else (fdts-policy:CarrierRecordShape, fdts-policy:CarrierRecordNamesNoPrincipalShape) — which binds nobody.
A Depot signs neither side.
A take is the owner’s, not the application’s, so it is portable: a run authorisation names it by
IRI and signing digest (trains[].take, [FDT-VISIT-PROTOCOL]), and a Handler the owner authorised
reads it from the Depot by presenting that authorisation (train-depot-api.yaml,
POST /takes/read).
5.6. Withdrawal
A train is withdrawn, never deleted. A withdrawal is PROV’s invalidation: prov:wasInvalidatedBy
on the train, naming an activity that says when (prov:endedAtTime), who
(prov:wasAssociatedWith — the creator, or the agent operating the Depot, which are different
facts) and why (dct:description), and MUST conform to fdts-train:TrainWithdrawalShape. A Depot
MUST go on serving a withdrawn train’s description, bytes, submission and signature, so that a past
run stays checkable; what changes is that nobody new may take it (409), and a station stops a new
visit to it at PEP 1. Withdrawal does not undo a signature.
6. The Train Depot
A Train Depot is the authority for the trains it serves. It is described in RDF by
its catalogue — an fdt-o:DepotCatalog listing its trains as dcat:resource and holding no
datasets (fdts-onto:DepotCatalogShape) — whose publisher it names (dct:publisher) and which a Depot
service serves (dcat:service): a dcat:DataService whose dct:conformsTo is
https://w3id.org/fdt/train-depot/v1 and which names its key set (fdts-catalog:DepotCatalogShape,
fdts-catalog:DepotServiceShape, station-catalog.shapes.ttl). FDT-O defines no class for the Depot
itself: it is the service that serves the catalogue.
A Depot has a signing key, and signs nothing a party is bound by (ADR-061, amending ADR-045 and
ADR-060). A Depot verifies the creator’s signature at publication and both sides of a take, and is
never a side of an agreement and never signs a train’s code. What it does sign is every request it
makes to a creator’s Gateway — today POST /creator/signatures, asking for the creator’s side of a
take — as the wrapper {depot, gateway, sentAt, request, signature}
(schemas/depot-request.schema.json): the request body, its own IRI, the Gateway it is addressed to
and the time, signed over their RFC 8785 form. The Gateway accepts it only from a Depot whose key it
holds for that creator, out of band, addressed to itself and within five minutes of its clock either
way; otherwise it signs nothing and answers 401 DepotRequestRefused with one of the seven words of
depot-request-reason.schema.json — RequestUnsigned, RequestWrongParty, RequestWrongDigest,
RequestUnknownDepot, RequestDoesNotVerify, RequestMisaddressed, RequestStale
(individual-gateway-api.yaml; tools/descriptor.py sign_depot_request, verify_depot_request).
The Depot’s signature authenticates the question; it binds nobody. A Depot’s key set therefore holds
that key. It MUST NOT publish a creator’s keys — a creator’s keys are published by the creator’s own
Gateway, and a Depot republishing them would present one party’s keys under another’s name.
Route (train-depot-api.yaml)
| Serves |
|---|---|
GET /
| DepotDescription, the JSON view: the Depot’s IRI, its catalogues, how many trains it serves, the contracts version, the protocol and its keySet.
|
GET /catalogue
| Its catalogues, as RDF — what a registry harvests. |
GET /trains, GET /trains/{train}
| Every train it serves; one train’s description, as RDF. |
GET /trains/{train}/submission, /signature
| What the creator signed, unchanged (§ 5.3 The creator’s signature). |
GET /trains/{train}/payload, /output-schema, /input-shapes
| The bytes; the declared output’s JSON Schema; the input requirement’s shapes. |
GET /keys
| Its key set: the key it signs its requests to creators' Gateways with. |
keys/depot.example.org.jwks.json: the Depot as its party, and the one key it signs its requests to creators' Gateways with.
{ "party" : "https://depot.example.org/fdt/v1" , "note" : "Published by this Depot at https://depot.example.org/fdt/v1/keys (fictional). Since ADR-061 (v0.92.0) a Depot has a signing key: it signs the requests it makes to a creator's Gateway, and nothing a party is bound by — never a side of an agreement, never a train's code. A creator's keys are published by the creator's own Gateway, not here. Published for discovery, never for trust (ADR-060)." , "keys" : [ { "kty" : "OKP" , "crv" : "Ed25519" , "alg" : "EdDSA" , "use" : "sig" , "kid" : "https://depot.example.org/fdt/v1/keys/1" , "x" : "8wzDwaXp7U7tGG7IqBOxdZanc6_0WLBONLeJ4e4d5XM" } ] }
7. The Train Handler
A Train Handler describes itself as an fdt-o:TrainHandler — a dcat:DataService
(FDT-O 4.1.0) — conforming to fdts-catalog:HandlerSelfDescriptionShape (station-catalog.shapes.ttl): a
title; dct:conformsTo https://w3id.org/fdt/handler-api/v1; the networks it serves, as
fdt-net:memberOf memberships (fdts-catalog:MembershipShape) in the Handler role, because it visits
stations under its own network credential (ADR-017); exactly one fdt-p:keySet; and, where it offers
poll dispatch, its station-facing API as one dct:hasPart dcat:DataService conforming to the visit
protocol, with its endpoint.
A Handler serves its description at GET / — the JSON view HandlerDescription
(handler-api.yaml) by default, and the RDF description for Accept: text/turtle or
application/ld+json — and its key set at GET /keys. The JSON view’s operatorKeyId names the key
it signs descriptors with: a convenience for a consumer composing a run authorisation, not a key
distribution — a station verifies a descriptor only against the key it holds for the Handler.
GET / and GET /keys are the only operations of handler-api.yaml open to an anonymous reader
(security: []); a Handler’s runs are read only under the dispatch credential they were dispatched
under, and another dispatcher’s run answers 404 as if absent (Q169).
handlers.ttl — and the JSON view of the first, protocol/handler-description-cardionet.json, which states the same facts.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix dct: <http://purl.org/dc/terms/> . @prefix dcat: <http://www.w3.org/ns/dcat#> . @prefix fdt-o: <https://w3id.org/fdt/fdt-o#> . @prefix fdt-p: <https://w3id.org/fdt/profile#> . @prefix fdt-net: <https://w3id.org/fdt/network#> . @prefix ex: <https://example.org/fdt/> . # v0.88.0 (WP-6.8): the corpus's two Train Handlers, describing themselves as a Data Station does — # `fdts-catalog:HandlerSelfDescriptionShape`; `handler-api.yaml` `HandlerDescription` is the same facts as JSON at # `GET /` (examples/protocol/handler-description-cardionet.json). A Handler is a dcat:DataService with two # surfaces: the consumer's API (dct:conformsTo the Handler API) and, where it offers poll dispatch, the # stations' API (dct:hasPart, conforming to the visit protocol). It names the networks it visits stations # in, under its own credential (ADR-017), and the key set it signs with (ADR-060 — for discovery, never # trust). Fictional, as every party in this corpus. <https://handler.cardionet.example/fdt/v1> a fdt-o : TrainHandler ; dct : title "CardioNet consortium Handler (fictional)" ; dcat : endpointURL <https://handler.cardionet.example/fdt/v1> ; dct : conformsTo <https://w3id.org/fdt/handler-api/v1> ; dct : hasPart <https://handler.cardionet.example/fdt/station-api> ; fdt-net : memberOf [ a fdt-net : Membership ; fdt-net : network ex : net\/health-research-nl ; fdt-net : admittedBy ex : auth\/hri-like ; fdt-net : role fdt-net : HandlerRole ; fdt-net : credential ex : cred\/handler-cardionet-hri ] ; fdt-p : keySet <https://handler.cardionet.example/fdt/v1/keys> . <https://handler.cardionet.example/fdt/station-api> a dcat : DataService ; dct : title "CardioNet Handler — station-facing API (poll dispatch)" ; dcat : endpointURL <https://handler.cardionet.example/fdt/station-api> ; dct : conformsTo <https://w3id.org/fdt/visit-protocol/v1> . <https://handler.stroke-oost.example/fdt/v1> a fdt-o : TrainHandler ; dct : title "Stroke network Oost Handler (fictional)" ; dcat : endpointURL <https://handler.stroke-oost.example/fdt/v1> ; dct : conformsTo <https://w3id.org/fdt/handler-api/v1> ; fdt-net : memberOf [ a fdt-net : Membership ; fdt-net : network ex : net\/stroke-oost ; fdt-net : admittedBy ex : auth\/roaz-oost ; fdt-net : role fdt-net : HandlerRole ; fdt-net : credential ex : cred\/handler-stroke-oost ] ; fdt-p : keySet <https://handler.stroke-oost.example/fdt/v1/keys> .
{ "handler" : "https://handler.cardionet.example/fdt/v1" , "title" : "CardioNet consortium Handler (fictional)" , "version" : "0.12.0" , "contracts" : "0.88.0" , "protocol" : "https://w3id.org/fdt/handler-api/v1" , "runs" : 3 , "operatorKeyId" : "https://handler.cardionet.example/fdt/v1/keys/operator-1" , "keySet" : "https://handler.cardionet.example/fdt/v1/keys" , "stationApi" : "https://handler.cardionet.example/fdt/station-api" , "networks" : [ "https://example.org/fdt/net/health-research-nl" ] }
8. The Data Station
8.1. Self-description
A Data Station describes itself at GET / as an fdt-o:DataStation — a
dcat:DataService — conforming to fdts-catalog:StationSelfDescriptionShape (station-catalog.shapes.ttl)
and the ontology tier’s fdts-onto:DataStationShape and fdts-onto:StationOwnerShape. On the station itself, not
through its catalogue, it states:
-
its network memberships, at least one (
fdt-net:memberOf, each conforming tofdts-catalog:MembershipShape: the network, the governance authority that admitted it, its role and its credential) — a station may belong to several networks (ADR-017); -
its jurisdiction of processing (
fdt-p:processingLocation, an IRI) and, optionally, a capacity class; -
its dispatch endpoint (
dcat:endpointURL, the base URL of its Station API) anddct:conformsTohttps://w3id.org/fdt/visit-protocol/v1; -
its dispatch mode (
fdt-p:dispatchMode):fdt-p:Push,fdt-p:Poll, or both as two values (ADR-004); -
exactly one key set (
fdt-p:keySet); -
where its public metadata is not served from its dispatch endpoint, its publication base (
fdt-p:publicationBase).
8.2. Where a station publishes
A station’s public metadata — GET / (the self-description), GET /catalogue, GET /shapes and
GET /keys (station-visit-api.yaml) — is served beneath its publication base
(fdt-p:publicationBase), which its operator designates and a registry harvests from. For a
push-dispatch station it is by default the base of its visit API. A poll-dispatch station has no
inbound port, so it publishes metadata only from a publication base of its own, and the
self-description of a station given its visits only by poll MUST name one
(fdts-catalog:PollStationPublicationShape). A poll-dispatch station with no publication base
publishes no metadata at all and is known only through a registry entry; where anything answers at its
visit API, the four routes answer 404 with a Problem saying that it publishes no metadata there and
naming the publication base where there is one. How an operator registers a station a registry cannot
harvest is not specified (Q95; protocol/visit-protocol.md §3.1).
The four routes are open (security: []): a registry harvesting them, or an auditor checking a
signature, needs no account. Every other operation of the station’s visit API falls under the
document’s oidc security: the caller’s OpenID Connect credential ([FDT-VISIT-PROTOCOL]).
A station’s catalogue graph also carries the station’s own self-description statements — its
memberships, mechanisms, processing location, dispatch endpoint and protocol, dispatch modes, key set
and, where it has one, its publication base — about the subject the catalogue’s dct:publisher
names, conforming to fdts-catalog:StationSelfDescriptionShape (station-visit-api.yaml
GET /catalogue). A registry harvests /catalogue and /shapes and nothing else, so what it lists
about a station is what that graph says.
A station that hosts an identifier-translation service is also typed fdt-o:LinkageStation, a label
that lets a registry find it by what it hosts: its mechanism is identifier translation between at
least two pseudonym spaces (fdts-onto:LinkageStationShape), and it publishes a catalogue whose service is
that translation (fdts-catalog:LinkageStationServiceShape).
8.3. Catalogue, datasets and parts
A station publishes its catalogue at GET /catalogue: an fdt-o:StationCatalog
(fdts-catalog:StationCatalogShape) published by the station, serving at least one data service, listing
the data an offer may target — hosted datasets and parts — and no trains.
-
A hosted dataset (
fdt-o:HostedDataset;fdts-catalog:DatasetShape,fdts-onto:HostedDatasetShape,fdts-onto:GovernedDataShape) carries at least one offer, at least one distribution — one per interaction mechanism — its data controller, the join keys it supports, and what its data conforms to: a SHACL shape, served atGET /shapes, against which a train’s input requirement is matched by structural coverage (ADR-030). Itsdcat:themeis a concept IRI, never a literal (fdts-catalog:GovernedDataThemeShape). Where its data is not natively RDF it declares the mapping the shape is generated from (fdts-onto:MappedDataDeclaresAShape,fdts-onto:MappingShape). -
A part (
fdt-o:DatasetPart;fdts-catalog:DatasetPartShape,fdts-onto:DatasetPartShape) is a view of exactly one hosted dataset, one level below it, offered in its own right with its own offer and naming its own controller (ADR-033). -
Each offer conforms to
fdts-policy:OfferShapeand is unique to its dataset (fdts-catalog:OfferUniqueToDatasetShape); its assigner is the data controller, never the station owner (ADR-011): where the offer’s target names a controller (fdt-o:hasDataController), the assigner MUST equal it (fdts-policy:OfferAssignedByTheControllerShape).
Publishing a catalogue entry grants nothing: every access is negotiated on arrival, per visit ([FDT-VISIT-PROTOCOL]).
8.4. Mechanisms
Each distribution of a dataset or part is one interaction mechanism — a named individual of
fdt-inst: (SPARQL, SQL, FHIR, a container runtime, identifier translation, …) — conforming to
fdts-catalog:MechanismDistributionShape, so that a Handler can tell from the catalogue whether a train’s
mechanism can reach the data.
8.5. Networks
A network a station names states whether natural persons may participate and whether a station in
it may conclude a negotiation without a person (fdts-catalog:NetworkShape, ADR-018, ADR-032).
8.6. FAIR Data Point metadata
A station’s metadata records follow the FAIR Data Point specification [FDP] for structure and
navigation, and conform to the ontology tier’s fdp:MetadataRecordShape and fdp:AgentShape.
9. Criteria
9.1. Key sets
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| MD-KS-1 | Every party that signs MUST publish a key set conforming to key-set.schema.json: party its own IRI, and only public Ed25519 keys, each kid the IRI a signature names as keyId. A key set MUST NOT contain a private half.
| § 4 Key sets | Schema — key-set.schema.json over every examples/keys/*.jwks.json, refusing the two mutations of tests/validate_protocol.py (a set that names no party; a set publishing a private half).
|
| MD-KS-2 | Every keyId a party’s signature names MUST be a key in that party’s published set; every key’s kid MUST begin with the URL of the set that publishes it, followed by / or #; and no key MUST be published as two parties'.
| § 4 Key sets, § 4.1 Where a key set is published | Rule — descriptor.py check: every key the fixture signatures name is in its signer’s published set, every key id begins with the URL of its set, and no key is in two parties' sets.
|
| MD-KS-3 | A Data Station, a Train Handler and a Train Depot MUST serve their key set at GET /keys, and an Individual Gateway each party’s set at GET /keys/{party}, {party} the party’s IRI as unpadded base64url, never merged; all unauthenticated, as application/jwk-set+json. A party’s description MUST link its own set with fdt-p:keySet.
| § 4.1 Where a key set is published | Schema — the four OpenAPI documents. Rule — descriptor.py check: every key-set link in a fixture names a published set of the party that links to it. Harness for the routes.
|
| MD-KS-4 | A party MUST keep a key it stopped signing with in its set, marked with exp, until nothing it signed is expected to be checked again.
| § 4.3 Retired keys | Schema — the retired-key control of tests/validate_protocol.py. Harness for retention.
|
| MD-KS-5 | A verifier MUST NOT trust a key because it is published; it MUST trust a key only because it holds it out of band (or, once Q61 is answered, because a trust anchor it holds vouches for it). | § 4.2 Discovery, never trust | Harness. |
| MD-KS-6 | A verifier MUST accept a signature by a retired key only over a document whose own time, as § 4.3 Retired keys defines it, is before the key’s exp, answering a later document with the UnknownKey word of that document’s vocabulary; a retired key MUST NOT verify a document with no time of its own.
| § 4.3 Retired keys | Rule — descriptor.py check: a descriptor, an envelope, a creator’s signature and a Depot’s request each under a key retired before and after its time — refused with UnknownKey, CreatorUnknownKey or RequestUnknownDepot, and accepted; a submission with no recorded publication time refused CreatorUnknownKey. derivation.py check: each of take-gd-cardionet’s three signatures under a key retired before the take’s dspace:timestamp refused, retired after it accepted.
|
9.2. A train description
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| MD-TR-1 | A train description MUST type the train with one concrete train class and never dcat:Dataset, MUST give it no dcat:distribution, and MUST declare a payload delivered by URL or inline, and an input requirement carrying a SHACL model.
| § 5.1 The train description, § 5.2 Payload and digest | Schema — fdts-onto:TrainShape, fdts-onto:PayloadShape, fdts-onto:InputRequirementShape, fdts-onto:RequiredDatasetShape over examples/ontology/ and the trains of trains-and-plans.ttl, refusing examples/ontology/invalid/: train-typed-as-dataset.ttl, train-without-concrete-type.ttl, train-family-only-type.ttl, concrete-train-without-payload.ttl, payload-without-url-or-content.ttl, train-without-input-requirement.ttl, input-requirement-that-names-no-shape.ttl; and examples/invalid/train-typed-as-dataset.ttl.
|
| MD-TR-2 | A train description MUST name its creator (dct:creator, one IRI), its attribution, its controller and its version; MUST declare its payload’s media type and fdt-o:artifactDigest (sha256: and 64 hex digits), its parameters, its coordination styles, and each declared output’s dct:conformsTo; and MUST carry at least one offer whose assigner is its creator.
| § 5.1 The train description, § 5.4 The creator’s offer | Schema — fdts-train:TrainOfferShape, fdts-train:TrainPayloadShape, fdts-train:ParameterShape, fdts-train:TrainOutputShape, fdts-policy:OfferShape over the trains of trains-and-plans.ttl, refusing train-that-names-no-creator.ttl, train-offer-assigned-by-its-depot.ttl.
|
| MD-TR-3 | A query or API train MUST support orchestrated coordination only. | § 5.1 The train description | Schema — fdts-train:QueryTrainCoordinationShape (ontology tier), refusing examples/ontology/invalid/query-train-choreographed.ttl.
|
| MD-TR-4 | A train description MUST link both fdt-p:submission and fdt-p:creatorSignature, or neither. The signature linked MUST be the creator’s DetachedSignature over the submission digest of train-publication.md §1, signedBy the train’s dct:creator, with a key in the creator’s published set.
| § 5.3 The creator’s signature | Schema — fdts-train:TrainSignatureLinksShape refusing train-linking-a-signature-but-no-submission.ttl; DetachedSignature (train-depot-api.yaml). Rule — descriptor.py check: trains/gene-disease.* and trains/time-to-groin.* verify against their creators' published keys; variant-burden, published before signatures were kept, links neither.
|
| MD-TR-5 | A withdrawal MUST say when, who and why, as PROV’s invalidation of the train. | § 5.6 Withdrawal | Schema — fdts-train:TrainWithdrawalShape over train-withdrawn.ttl, refusing train-withdrawn-by-nobody.ttl, train-withdrawn-without-saying-why.ttl.
|
| MD-TR-6 | A take MUST be an agreement conforming to fdts-policy:AgreementShape, derived from the creator’s offer and pinning it, the request and the payload; its assigner’s side MUST be signed by the creator and its assignee’s by the owner in their own name; it MAY carry one carrier’s record, made on nobody’s behalf; no Depot signs either side.
| § 5.5 Takes and their pins | Schema — fdts-policy:AgreementShape, fdts-train:TrainOfferShape, fdts-policy:CarrierRecordShape, fdts-policy:CarrierRecordNamesNoPrincipalShape over train-taken.ttl, refusing train-taken-from-someone-who-did-not-write-it.ttl, carrier-record-on-a-visit-agreement.ttl, take-whose-carrier-record-names-a-principal.ttl. Rule — derivation.py check refusing depot-signed-the-creators-side.ttl, take-signed-by-the-handler-as-its-owner.ttl, carrier-record-presented-as-the-owners.ttl.
|
9.3. A Train Depot
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| MD-DP-1 | A Depot MUST publish an fdt-o:DepotCatalog listing its trains as dcat:resource and no datasets, naming one publisher, and served by a dcat:DataService conforming to https://w3id.org/fdt/train-depot/v1 that names exactly one key set.
| § 6 The Train Depot | Schema — fdts-onto:DepotCatalogShape, fdts-catalog:DepotCatalogShape, fdts-catalog:DepotServiceShape over the two Depots of trains-and-plans.ttl, refusing depot-catalogue-served-by-nothing.ttl, depot-served-under-another-protocol.ttl.
|
| MD-DP-2 | A Depot MUST serve the routes of § 6 The Train Depot as train-depot-api.yaml defines them, and every train description it serves MUST meet MD-TR-1 to MD-TR-5.
| § 6 The Train Depot | Schema — train-depot-api.yaml (DepotDescription). Harness.
|
| MD-DP-3 | A Depot MUST keep each train’s submission and the creator’s signature, MUST serve both unchanged and unauthenticated, MUST answer 404 NotKept for a train published before signatures were kept, MUST NOT sign or re-sign a train, and MUST go on serving a withdrawn train’s description, bytes, submission and signature.
| § 5.3 The creator’s signature, § 5.6 Withdrawal | Schema — NotKept (train-depot-api.yaml). Harness.
|
| MD-DP-4 | A Depot’s key set MUST name the Depot as its party and hold the key it signs its requests to creators' Gateways with; a Depot MUST NOT publish another party’s keys. Every request a Depot makes to a creator’s Gateway MUST be the signed wrapper of depot-request.schema.json, addressed to that Gateway, and a Depot MUST NOT sign anything a party is bound by (ADR-061).
| § 6 The Train Depot | Schema — key-set.schema.json over keys/depot.example.org.jwks.json and keys/depot.stroke-oost.example.jwks.json; depot-request.schema.json over examples/protocol/depot-request-take-gene-disease.json. Rule — descriptor.py check: that request accepted by its Gateway, and the six counter-examples of examples/protocol/invalid/depot-request/ refused — request-unsigned.json (RequestUnsigned), request-altered-after-signing.json (RequestWrongDigest), request-from-another-depot.json (RequestUnknownDepot), request-that-does-not-verify.json (RequestDoesNotVerify), request-misaddressed.json (RequestMisaddressed), request-stale.json (RequestStale); derivation.py check refusing depot-signed-the-creators-side.ttl. Harness.
|
| MD-DP-5 | A Depot MUST refuse to canonicalise a graph of more than 200 blank nodes or 2 000 triples, counted before anything else is done with it. | § 5.3 The creator’s signature | Harness (train-publication.md §1.1).
|
9.4. A Train Handler
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| MD-TH-1 | A Handler MUST describe itself as an fdt-o:TrainHandler with a title, dct:conformsTo https://w3id.org/fdt/handler-api/v1, at least one network membership in the Handler role, and exactly one fdt-p:keySet; where it offers poll dispatch, with exactly one dct:hasPart data service conforming to the visit protocol.
| § 7 The Train Handler | Schema — fdts-catalog:HandlerSelfDescriptionShape, fdts-catalog:MembershipShape, fdts-catalog:DataServiceShape over handlers.ttl, refusing handler-naming-no-key-set.ttl, handler-serving-no-network.ttl.
|
| MD-TH-2 | A Handler MUST serve at GET / the HandlerDescription JSON view, and its RDF description for Accept: text/turtle or application/ld+json, the two stating the same facts; and its key set at GET /keys.
| § 7 The Train Handler | Schema — HandlerDescription (handler-api.yaml) over handler-description-cardionet.json; tests/validate_protocol.py holds it and handlers.ttl to the same facts. Harness for the negotiation.
|
9.5. A Data Station
| Id | Requirement | Stated in | Checked by |
|---|---|---|---|
| MD-DS-1 | A station MUST describe itself, on itself, as an fdt-o:DataStation with at least one network membership, its jurisdiction of processing, its dispatch endpoint and dct:conformsTo the visit protocol, at least one fdt-p:dispatchMode (fdt-p:Push, fdt-p:Poll), and exactly one fdt-p:keySet; a station given its visits only by poll MUST name its fdt-p:publicationBase.
| § 8.1 Self-description, § 8.2 Where a station publishes | Schema — fdts-catalog:StationSelfDescriptionShape, fdts-catalog:MembershipShape, fdts-catalog:PollStationPublicationShape, fdts-onto:DataStationShape over the stations of network-and-stations.ttl, refusing station-without-a-dispatch-mode.ttl, station-naming-no-key-set.ttl, poll-station-publishing-from-nowhere.ttl; fdts-onto:DataStationShape also over examples/ontology/data-station.ttl.
|
| MD-DS-2 | A station MUST publish an fdt-o:StationCatalog it is the publisher of, serving at least one data service, listing hosted datasets and parts and no trains.
| § 8.3 Catalogue, datasets and parts | Schema — fdts-catalog:StationCatalogShape over network-and-stations.ttl and m1-gene-disease.ttl, refusing station-catalogue-listing-a-train.ttl, station-catalogue-naming-no-service.ttl.
|
| MD-DS-3 | Every hosted dataset MUST carry an offer, a distribution per interaction mechanism, its controller and what its data conforms to, with any dcat:theme a concept IRI; every part MUST be a view of exactly one hosted dataset, one level below it, with its own offer and controller; data that declares a mapping MUST declare the shape it produces.
| § 8.3 Catalogue, datasets and parts | Schema — fdts-catalog:DatasetShape, fdts-catalog:DatasetPartShape, fdts-catalog:GovernedDataThemeShape, fdts-onto:HostedDatasetShape, fdts-onto:GovernedDataShape, fdts-onto:DatasetPartShape, fdts-onto:MappedDataDeclaresAShape, refusing dataset-without-offer.ttl, dataset-part-without-offer.ttl, dataset-without-a-shape.ttl, theme-written-as-a-keyword.ttl, and examples/ontology/invalid/: dataset-part-without-a-whole.ttl, hosted-dataset-without-controller.ttl, mapped-data-without-a-shape.ttl.
|
| MD-DS-4 | Every offer a station publishes MUST conform to fdts-policy:OfferShape, be unique to its dataset, and name the data controller as its assigner.
| § 8.3 Catalogue, datasets and parts | Schema — fdts-policy:OfferShape, fdts-catalog:OfferUniqueToDatasetShape and fdts-policy:OfferAssignedByTheControllerShape over policies.ttl and network-and-stations.ttl, refusing offer-shared-by-two-datasets.ttl, offer-assigned-by-the-station-owner.ttl.
|
| MD-DS-5 | Each distribution MUST be one interaction mechanism. | § 8.4 Mechanisms | Schema — fdts-catalog:MechanismDistributionShape over network-and-stations.ttl, refusing distribution-of-two-mechanisms.ttl.
|
| MD-DS-6 | A network a station names MUST state whether natural persons may participate and whether a station in it may conclude a negotiation without a person. | § 8.5 Networks | Schema — fdts-catalog:NetworkShape, refusing network-that-does-not-say-who-may-decide.ttl.
|
| MD-DS-7 | A station hosting an identifier-translation service MUST type itself fdt-o:LinkageStation, declare identifier translation between at least two pseudonym spaces, and publish a catalogue whose service is that translation.
| § 8.1 Self-description | Schema — fdts-onto:LinkageStationShape, fdts-catalog:LinkageStationServiceShape over network-and-stations.ttl (and fdts-onto:LinkageStationShape over examples/ontology/linkage-station.ttl), refusing linkage-station-that-publishes-no-catalogue.ttl, linkage-station-that-publishes-no-translation-service.ttl.
|
| MD-DS-8 | A station that publishes metadata MUST serve, beneath its publication base and unauthenticated, its self-description at GET /, its catalogue — carrying its own self-description statements — at GET /catalogue and its data shapes at GET /shapes, each as Turtle or JSON-LD by Accept, and its key set at GET /keys; where it publishes none at its visit API, those routes MUST answer 404 saying so.
| § 8.2 Where a station publishes | Schema — station-visit-api.yaml (security: [] on the four routes, and their 404). Harness.
|
| MD-DS-9 | A station’s FAIR Data Point metadata records MUST conform to fdp:MetadataRecordShape.
| § 8.6 FAIR Data Point metadata | Schema — fdp:MetadataRecordShape (ontology tier) over examples/ontology/data-station.ttl.
|
9.6. Conformance statement
An implementation claims conformance by stating the class or classes claimed, the fdt-commons
version and commit it was validated against, and, for each criterion, that it accepts the fixtures
named and refuses the counter-examples named with their recorded messages — or the evidence it
offers where only a harness can decide.
10. Security considerations
This section is non-normative.
-
A published description is a claim. Nothing in a station’s self-description, a Handler’s or a Depot’s catalogue is evidence of who operates it or whether it may be trusted; a registry that harvests them is an index and not a trust anchor ([FDT-ARCHITECTURE]). Trust comes from keys held out of band and credentials issued by a network.
-
A published key is not a trusted key (§ 4.2 Discovery, never trust). A man in the middle, or whoever controls a host, controls what is served at its
GET /keys. -
The Depot is not trusted for a train’s code once creators are verified. The digest a Depot states proves nothing it could not rewrite with the bytes; the creator’s signature, recomputed by the verifier, is what binds them.
-
Every route that publishes metadata or keys is public. Nothing in a description, a catalogue or a key set should be something its party is not willing to show anybody.
-
A Depot’s key authenticates a question, not an answer (ADR-061). A Gateway that holds a Depot’s key for a creator will answer that Depot’s requests for the creator’s side of a take; what it signs is still checked against the licence the creator published. A Depot whose signing key is compromised can ask, and can be refused by the licence; it cannot sign a side of anything.
11. Open points
This section is non-normative.
-
Q61 — whether a network’s trust anchors may vouch for keys, instead of out-of-band configuration. Open. Until it is answered every verifier is configured with every key it needs — every station with the key of every creator whose trains it may run.
-
Q1 — the
https://w3id.org/fdt/…identifiers are not yet redirected, so contexts and vocabularies are taken fromfdt-commons, not fetched from their names. -
Q95 — how an operator registers a station a registry cannot harvest — a poll-dispatch station with no publication base. The reference registry has no such route, and the contracts promise none (§ 8.2 Where a station publishes).
Appendix A: Examples
This appendix is non-normative.
The examples shown are published fixtures of fdt-commons, copied verbatim from the version named
in Appendix B: Normative artefacts. Besides those: the two Depots in trains-and-plans.ttl; the stations of
network-and-stations.ttl (Westerlicht is the poll-dispatch station); the ontology tier’s
instances in examples/ontology/; every party’s key set in examples/keys/; the second train’s
submission and signature in examples/trains/; and the counter-examples named in § 9 Criteria.
Appendix B: Normative artefacts
The following artefacts in fdt-commons [FDT-COMMONS] are normative for this version. **This
version is pinned to commit
abf0e3d432d1ee000530747f17ca79bec0460c18
(VERSION 0.92.1).** Where this document and an artefact disagree, the artefact governs and this
document has an error to be reported.
| Artefact | Location in fdt-commons
|
|---|---|
| Ontology-tier shapes | shapes/ontology.shapes.ttl
|
| Profile shapes: stations, catalogues, Depot and Handler services, networks | shapes/station-catalog.shapes.ttl
|
| Profile shapes: trains, withdrawal, signature links | shapes/train-offer.shapes.ttl
|
| Profile shapes: offers, agreements, takes | shapes/policy.shapes.ttl
|
| The FDT profile vocabulary | vocab/fdt-profile.ttl
|
| Key set | schemas/key-set.schema.json
|
| A Depot’s signed request to a creator’s Gateway, and its refusal words | schemas/depot-request.schema.json, schemas/depot-request-reason.schema.json
|
| Submission digest; publication, take and withdrawal | protocol/train-publication.md
|
| Depot, Handler, station and Gateway routes | protocol/openapi/train-depot-api.yaml, handler-api.yaml, station-visit-api.yaml, individual-gateway-api.yaml
|
| Verification of the creator’s signature, of a Depot’s requests and of key sets, retired keys included | tools/descriptor.py; for agreements and takes, tools/derivation.py
|
| Fixtures | examples/, examples/ontology/, examples/trains/, examples/keys/, and their invalid/ directories
|
FDT-O [FDT-O] 4.1.0, commit
473dc54 on branch fdt-o-v2, is
the ontology these shapes use; it carries no shapes.
Appendix C: Change history
This appendix is non-normative.
- 30 November 2026 — first publication (release 0.3.0)
-
Written against
fdt-commons0.90.0 (ADR-020, ADR-029, ADR-036 to ADR-038, ADR-059, ADR-060; findings 156 to 159): every signing party publishes a key set, for discovery and never for trust; every party describes itself, the Handler included; the Depot serves what the creator signed; every shape is infdt-commons, in an ontology tier and a profile.Pinned to
fdt-commonsabf0e3d(0.92.1) and FDT-O473dc54(4.1.0), bringing in findings 160 to 162, ADR-061, Q169 and Q170: shapes are named with one prefix per namespace (fdts-onto:,fdts-catalog:,fdts-train:,fdts-policy:); a Depot has a signing key and signs its requests to creators' Gateways, and nothing a party is bound by (MD-DP-4 changed); a retired key verifies only documents dated before itsexp(MD-KS-6 added); every key id is within its set, and a Gateway’s per-party set is addressed by the party’s base64url handle (MD-KS-2, MD-KS-3 changed); a station publishes from its publication base, a poll-only station must name one, the four metadata routes are open and answer404where nothing is published (MD-DS-1, MD-DS-8 changed); an offer’s assigner is enforced as its controller, and MD-DS-2, MD-DS-4 and MD-DS-5 gain counter-examples. The open points on poll-station metadata, metadata-route authentication and the reference station’s creator check are closed.