- 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>
369 lines
8.6 KiB
JSON
369 lines
8.6 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://paperspec.scient.ing/schemas/digitization.schema.json",
|
|
"title": "Digitization",
|
|
"description": "scienting-digitization/1: how values were read off a figure panel; spec/16-digitization.md.",
|
|
"type": "object",
|
|
"properties": {
|
|
"format": {
|
|
"const": "scienting-digitization/1"
|
|
},
|
|
"id": {
|
|
"$ref": "common.schema.json#/$defs/recordId"
|
|
},
|
|
"doc": {
|
|
"$ref": "common.schema.json#/$defs/qualifiedKey"
|
|
},
|
|
"target": {
|
|
"type": "object",
|
|
"properties": {
|
|
"anchor": {
|
|
"$ref": "anchor.schema.json"
|
|
},
|
|
"page_fp": {
|
|
"$ref": "common.schema.json#/$defs/hash"
|
|
},
|
|
"region": {
|
|
"$ref": "common.schema.json#/$defs/box"
|
|
},
|
|
"witness": {
|
|
"$ref": "common.schema.json#/$defs/hash"
|
|
},
|
|
"image": {
|
|
"$ref": "common.schema.json#/$defs/hash"
|
|
}
|
|
},
|
|
"required": [
|
|
"anchor",
|
|
"region"
|
|
],
|
|
"additionalProperties": false,
|
|
"oneOf": [
|
|
{
|
|
"required": [
|
|
"page_fp",
|
|
"witness"
|
|
],
|
|
"not": {
|
|
"required": [
|
|
"image"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"required": [
|
|
"image"
|
|
],
|
|
"not": {
|
|
"required": [
|
|
"page_fp"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"axes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"enum": [
|
|
"x",
|
|
"y",
|
|
"y2",
|
|
"x2"
|
|
]
|
|
},
|
|
"scale": {
|
|
"enum": [
|
|
"linear",
|
|
"log",
|
|
"reciprocal",
|
|
"date"
|
|
]
|
|
},
|
|
"unit": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"calibration": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"at": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
},
|
|
"value": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"at",
|
|
"value"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 2
|
|
},
|
|
"check": {
|
|
"type": "object",
|
|
"properties": {
|
|
"at": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
},
|
|
"value": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"at",
|
|
"value"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"label": {
|
|
"type": "object",
|
|
"properties": {
|
|
"panel": {
|
|
"$ref": "common.schema.json#/$defs/nodeId"
|
|
},
|
|
"figure_text": {
|
|
"$ref": "common.schema.json#/$defs/nodeId"
|
|
}
|
|
},
|
|
"required": [
|
|
"panel",
|
|
"figure_text"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"scale",
|
|
"calibration"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"series": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"$ref": "common.schema.json#/$defs/key"
|
|
},
|
|
"legend": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"mark": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "string",
|
|
"pattern": "^#[0-9a-f]{6}$"
|
|
},
|
|
"marker": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"line": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [],
|
|
"additionalProperties": false
|
|
},
|
|
"kind": {
|
|
"enum": [
|
|
"points",
|
|
"line",
|
|
"bars",
|
|
"error-bars",
|
|
"region"
|
|
]
|
|
},
|
|
"values": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"at": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
},
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
},
|
|
"value": {
|
|
"type": "object",
|
|
"properties": {
|
|
"x": {
|
|
"$ref": "common.schema.json#/$defs/decimal"
|
|
},
|
|
"y": {
|
|
"$ref": "common.schema.json#/$defs/decimal"
|
|
}
|
|
},
|
|
"required": [
|
|
"x",
|
|
"y"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"uncertainty": {
|
|
"type": "object",
|
|
"properties": {
|
|
"x": {
|
|
"$ref": "common.schema.json#/$defs/decimal"
|
|
},
|
|
"y": {
|
|
"$ref": "common.schema.json#/$defs/decimal"
|
|
},
|
|
"resolution": {
|
|
"$ref": "common.schema.json#/$defs/decimal"
|
|
},
|
|
"marker": {
|
|
"$ref": "common.schema.json#/$defs/decimal"
|
|
},
|
|
"calibration": {
|
|
"$ref": "common.schema.json#/$defs/decimal"
|
|
}
|
|
},
|
|
"required": [
|
|
"x",
|
|
"y"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"required": [
|
|
"at",
|
|
"value",
|
|
"uncertainty"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"id",
|
|
"kind",
|
|
"values"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"minItems": 1
|
|
},
|
|
"method": {
|
|
"type": "object",
|
|
"properties": {
|
|
"kind": {
|
|
"enum": [
|
|
"manual",
|
|
"traced",
|
|
"proposed"
|
|
]
|
|
},
|
|
"tool": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"version"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"model": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"kind",
|
|
"tool"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"verification": {
|
|
"type": "object",
|
|
"properties": {
|
|
"image": {
|
|
"$ref": "common.schema.json#/$defs/hash"
|
|
},
|
|
"residual": {
|
|
"$ref": "common.schema.json#/$defs/decimal"
|
|
},
|
|
"max_residual": {
|
|
"$ref": "common.schema.json#/$defs/decimal"
|
|
}
|
|
},
|
|
"required": [
|
|
"image",
|
|
"residual",
|
|
"max_residual"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"confirmation": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "common.schema.json#/$defs/recordId"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"dataset": {
|
|
"$ref": "common.schema.json#/$defs/datasetId"
|
|
},
|
|
"rev": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
},
|
|
"required": [
|
|
"format",
|
|
"id",
|
|
"doc",
|
|
"target",
|
|
"axes",
|
|
"series",
|
|
"method",
|
|
"verification",
|
|
"confirmation",
|
|
"rev"
|
|
],
|
|
"additionalProperties": false
|
|
}
|