Install
Works with Drupal: ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
20.92 KB
MD5: 1a9005dc2a900222d6627c8212250c76
SHA-1: f420628a60ce2d18af6a850ff6d07ce71e2ba679
SHA-256: ea48bc918546e33bbcef57e6e65c44c721e11e3098035582ef5478770ac06d1b
Download zip
31.57 KB
MD5: 456ed5d7a0729e32b5692dd0fdce1fdf
SHA-1: c37227165951f17da28e571bf8343fa69e6e979a
SHA-256: 23032269bf35d8fe653eaca7a55fc36855c59b294bab03974baed83980a350f9
Release notes
First stable release of the Text and Data Mining Reservation Protocol (TDMRep) module.
The module publishes the W3C TDMRep documents, so that text and data mining agents, including AI crawlers, can read whether your site reserves its rights and how to request a licence.
Features
/.well-known/tdmrep.json: the TDM reservation document, with thetdm-policyURL added automatically./tdm-policy.json: the ODRL policy, served as JSON-LD (application/ld+json). The policy UID, assigner name and contact email are filled in from the site configuration when they are not set.- Settings form at Configuration » Web services » TDMRep settings (
/admin/config/services/tdmrep), with JSON validation and an optional contact email override. - New Administer TDMRep permission.
- Public responses cached for one hour, invalidated when the module settings or the site information change.
- The endpoints are never prefixed by language negotiation, on multilingual sites too.
- If the configuration is invalid, the endpoints return an empty 503 response instead of a partial document.
Requirements
- Drupal 11 or Drupal 12.