Files
paperspec/schemas/rights.schema.json
T
alexmandClaude 76d76353d9 feat: rename to paperspec and add the website
- Rename manuspec to paperspec everywhere outside pixi.toml: prose, the
  tools, provenance tool names and the fixture key derivations, so every
  fixture and vector is rebuilt.
- Move the namespace addresses under the site, mirroring the repository:
  schema $id https://paperspec.scient.ing/schemas/<file>, the JSON-LD
  context https://paperspec.scient.ing/context/scienting-1.jsonld, and
  term IRIs https://paperspec.scient.ing/vocab#<term>. Format
  identifiers (scienting-*) and URNs (urn:scienting:) are unchanged.
- tools/site.py (standard library only) builds _site/: every file of the
  repository at its own path, each Markdown file rendered as a page with
  sidebar navigation, heading anchors matching the forge's, folder
  listings, a vocabulary page for the context's IRIs, a heading search
  and a 404 page; light and dark themes.
- check.py builds the site and checks that every Markdown file has a
  page, every internal link and fragment resolves, no Markdown is left
  unrendered, and every $id, the context address and the vocabulary IRIs
  are files of the site.
- deploy/: a Caddyfile with the media types and CORS the data needs, and
  a guide; .gitea/workflows/site.yml builds on main and publishes with
  rsync when the SITE_* secrets are set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 21:27:21 -04:00

151 lines
3.6 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://paperspec.scient.ing/schemas/rights.schema.json",
"title": "Rights record",
"description": "scienting-rights/1: a witness's license, basis and uses; spec/14-rights.md.",
"type": "object",
"properties": {
"format": {
"const": "scienting-rights/1"
},
"license": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/license"
},
{
"type": "null"
}
]
},
"basis": {
"$ref": "common.schema.json#/$defs/basis"
},
"uses": {
"type": "object",
"properties": {
"read": {
"$ref": "common.schema.json#/$defs/tri"
},
"tdm": {
"$ref": "common.schema.json#/$defs/tri"
},
"redistribute": {
"$ref": "common.schema.json#/$defs/tri"
},
"quote-public": {
"$ref": "common.schema.json#/$defs/tri"
},
"accessible-copy": {
"$ref": "common.schema.json#/$defs/tri"
},
"ai": {
"type": "object",
"properties": {
"internal/local": {
"$ref": "common.schema.json#/$defs/tri"
},
"internal/tenancy": {
"$ref": "common.schema.json#/$defs/tri"
},
"internal/outside-no-retention": {
"$ref": "common.schema.json#/$defs/tri"
},
"internal/outside": {
"$ref": "common.schema.json#/$defs/tri"
},
"external/local": {
"$ref": "common.schema.json#/$defs/tri"
},
"external/tenancy": {
"$ref": "common.schema.json#/$defs/tri"
},
"external/outside-no-retention": {
"$ref": "common.schema.json#/$defs/tri"
},
"external/outside": {
"$ref": "common.schema.json#/$defs/tri"
}
},
"required": [],
"additionalProperties": false
}
},
"required": [],
"additionalProperties": false
},
"asserted_by": {
"type": "object",
"properties": {
"by": {
"type": "string",
"minLength": 1
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"enum": [
"license-url",
"contract",
"crossref-license",
"delivery",
"statement"
]
},
"url": {
"$ref": "common.schema.json#/$defs/url"
},
"sha256": {
"$ref": "common.schema.json#/$defs/hash"
},
"doi": {
"type": "string",
"minLength": 1
},
"note": {
"type": "string",
"minLength": 1
}
},
"required": [
"kind"
],
"additionalProperties": false
}
}
},
"required": [
"by",
"evidence"
],
"additionalProperties": false
},
"at": {
"$ref": "common.schema.json#/$defs/time"
},
"valid_until": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/time"
},
{
"type": "null"
}
]
}
},
"required": [
"format",
"license",
"basis",
"uses",
"asserted_by",
"at",
"valid_until"
],
"additionalProperties": false
}