TDM Reservation Protocol (TDMRep)
TDMRep is a W3C Community Group specification for stating, in machine-readable form, whether text and data mining (TDM) rights over a web resource are reserved, and where a TDM licensing policy can be found. It answers the "appropriate manner, such as machine-readable means" condition of Article 4 of the EU CDSM Directive. With this skill the agent publishes reservations for a site or files, or detects and applies them in a crawler or AI pipeline.
Follow the workflow below step by step. Every rule here comes from a source in Sources. Section names refer to the Final Community Group Report of 10 May 2024. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
TDMRep is a Community Group report, "not a W3C Standard nor ... on the W3C Standards Track" (Status of This Document). It states a rights reservation; it does not block retrieval. This skill describes the protocol, not the law.
Inputs (fill in, or ask before starting)
- Role: publisher or rightsholder (declares), TDM agent (crawler or pipeline that reads and applies), or both.
- Technique: the well-known file, HTTP headers, HTML meta, or EPUB/PDF metadata (Protocol).
- Policy: whether to offer a TDM Policy, and its terms (contact, consent, compensation, purpose).
- Target version: TDMRep Final Report 2024 (default). No legacy line or preview exists. See
references/versions.md. - Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources, compare the editor's draft with the Final Report, check the Community Group for a newer report, and update the pins.
Invariants
- Two properties.
tdm-reservation(1reserved,0not reserved) and optionaltdm-policy(a URL) (Declaring the reservation of TDM Rights). - Anything other than
1or0is a protocol error and means unset (tdm-reservation). - The Article 4 opt-out is
tdm-reservation: 1(tdm-reservation). - A policy beside
0is not an error, but agents SHOULD NOT process it (tdm-policy). - Unreachable or unparsable policies are not errors; the agent then has no way to know the conditions for processing (tdm-policy).
- The well-known file is
/.well-known/tdmrep.json, a JSON array of rules with requiredlocationandtdm-reservationand optionaltdm-policy; the brackets are mandatory even for one rule (TDM File on the Origin Server). - The first matching rule wins; matching is case-sensitive with
*and$as in robots.txt; no match means unset (TDM File on the Origin Server). - Agents check the well-known file before scraping a server, then headers on every response, then HTML meta, then EPUB/PDF metadata, each later value superseding earlier ones, and an absent property never resets a value (Processing priority).
- Publishers SHOULD use only one technique (Processing priority).
- Policies are ODRL 2.2 Offers with the two-value
@context, auid,profilehttp://www.w3.org/ns/tdmrep, oneassignerand apermissionarray whose action istdm:mine(Expressing a TDM Policy).
Workflow
- Pick the version. Use the 2024 Final Report.
->
references/versions.md✓ The target is recorded. - Decide the reservation (publisher). Choose
1or0per path or file, and whether to offer a policy. ->references/declaring.md✓ Every path the rightsholder cares about has an explicit value. - Publish it (publisher). Write
tdmrep.jsonrules most-specific first, or send headers, or add HTML meta or EPUB/PDF metadata, using one technique where possible. ->references/declaring.md✓ For sample URLs the first matching rule, header or meta tag yields the intended value. - Write the policy (optional). Build an ODRL Offer with assigner contact details and permissions with duties or constraints.
->
references/policies.md✓ The policy is served asapplication/jsonorapplication/ld+jsonand has every MUST property. - Apply reservations (agent). Fetch and cache the well-known file, match the URL, then let headers, HTML meta and file metadata supersede in order, and treat unset as unknown, not permission.
->
references/declaring.md✓ Each mined resource has a recorded value and the technique it came from.
Verify before done
-
/.well-known/tdmrep.jsonis a JSON array, each rule haslocationandtdm-reservation, and specific rules come before general ones (TDM File on the Origin Server). - Every
tdm-reservationvalue is the integer1or0(tdm-reservation). - Header names are
tdm-reservationandtdm-policy; HTML meta names match; EPUB and PDF usetdm:reservationandtdm:policy(Protocol). - The agent never treats unset as "not reserved" and never lets a missing property reset a value (Processing priority).
- Policies have
@typeOffer, the tdmrepprofile, oneassignerandtdm:minepermissions (Expressing a TDM Policy). - PDF/A files do not carry TDMRep XMP properties, which a PDF/A validator rejects (TDM Metadata in PDF files).
- Documentation does not present TDMRep as access control.
Reference index
references/versions.md: the single line, the editor's draft relationship and what to watch. Load for step 1.references/declaring.md: the two properties, every technique with examples, pattern matching, processing priority and the legal context. Load for steps 2, 3 and 5.references/policies.md: the ODRL TDM Policy profile: context, type, profile, assigner, permissions, duties and constraints. Load for step 4.
Related skills
robots-txtfor crawl access, which TDMRep does not control:npx skills add ScaleDockHQ/scaledock-skills --skill robots-txt.aipref,content-signalsandrslfor other AI usage and licensing signals:npx skills add ScaleDockHQ/scaledock-skills --skill aipref,--skill content-signals,--skill rsl.odrlfor the ODRL 2.2 model TDM Policies profile:npx skills add ScaleDockHQ/scaledock-skills --skill odrl.eu-ai-actfor general-purpose AI provider obligations:npx skills add ScaleDockHQ/scaledock-skills --skill eu-ai-act.well-known-urisfor the/.well-known/namespace:npx skills add ScaleDockHQ/scaledock-skills --skill well-known-uris.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- TDM Reservation Protocol (TDMRep), Final Community Group Report: Final Community Group Report (W3C TDMRep CG), 10 May 2024, checked 2026-10-09.
- TDM Reservation Protocol (TDMRep), editor's draft: Editor's Draft, unchanged in substance from the Final Report, checked 2026-10-09.
- Directive (EU) 2019/790 (CDSM Directive): EU Directive, OJ L 130 of 17.5.2019, Article 4, checked 2026-10-09.
- AI Act Article 53: Obligations for providers of general-purpose AI models: European Commission AI Act Service Desk, Regulation (EU) 2024/1689 Article 53(1)(c), checked 2026-10-09.