{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artwaste.land/data/canvas-proportions/schema.json",
  "title": "The measured dimensions of catalogued paintings",
  "description": "One row per catalogued painting whose picture-surface dimensions could be read out of the catalogue's own prose. The dimensions are the catalogue's numbers; deciding WHICH numbers in a dimension string are the picture surface is this project's parse. Rows carry no identifier and cannot be joined back to a catalogue record.",
  "type": "object",
  "required": [
    "catalogue",
    "height",
    "width",
    "unit",
    "ratio",
    "in_tool",
    "frame_height",
    "frame_width",
    "canvas_height",
    "canvas_width",
    "year_from",
    "year_to",
    "department"
  ],
  "additionalProperties": false,
  "properties": {
    "catalogue": {
      "type": "string",
      "enum": [
        "aic",
        "met",
        "nga",
        "wd"
      ],
      "description": "Which catalogue: aic Art Institute of Chicago, met The Metropolitan Museum of Art, nga National Gallery of Art Washington, wd Wikidata. THREE OF THESE ARE SINGLE MUSEUMS AND THE FOURTH IS A CROWD-SOURCED DATABASE that supplies 97.8 per cent of the rows. Never pool them.",
      "x-origin": "built",
      "x-source": "src:aw-dimension-parse"
    },
    "height": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Picture-surface height, in `unit`, as the catalogue printed it.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    },
    "width": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Picture-surface width, in `unit`.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    },
    "unit": {
      "type": [
        "string",
        "null"
      ],
      "description": "cm or in. Null on every Wikidata row: the query returns truthy values without the unit qualifier, so 704,119 rows have no recorded unit and their absolute sizes are not comparable across rows.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    },
    "ratio": {
      "type": "number",
      "minimum": 1,
      "description": "Long side divided by short side, so a portrait and a landscape of the same proportions are one shape. Ours, and unit-free, which is why it is the only field comparable across all four catalogues.",
      "x-origin": "built",
      "x-source": "src:aw-dimension-parse"
    },
    "in_tool": {
      "type": "boolean",
      "description": "Whether this row is inside the 1:1 to 3:1 window the /tools/canvas-ratio/ payload encodes. False on the 8,592 rows longer than 3:1, which the instrument never searches.",
      "x-origin": "built",
      "x-source": "src:aw-dimension-parse"
    },
    "frame_height": {
      "type": [
        "number",
        "null"
      ],
      "description": "Framed height where the catalogue printed one separately.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    },
    "frame_width": {
      "type": [
        "number",
        "null"
      ],
      "description": "Framed width where printed separately.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    },
    "canvas_height": {
      "type": [
        "number",
        "null"
      ],
      "description": "Canvas or support height where printed separately from the picture surface.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    },
    "canvas_width": {
      "type": [
        "number",
        "null"
      ],
      "description": "Canvas or support width where printed separately.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    },
    "year_from": {
      "type": [
        "number",
        "null"
      ],
      "description": "Earliest year of the catalogue's date range for the work.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    },
    "year_to": {
      "type": [
        "number",
        "null"
      ],
      "description": "Latest year of that range.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    },
    "department": {
      "type": [
        "string",
        "null"
      ],
      "description": "The museum's own department label, where it has one. Null throughout Wikidata.",
      "x-origin": "redistributed",
      "x-source": "src:aw-dimension-parse"
    }
  }
}
