Schemas / Book

rig.book.subject

v0.31.0 · draft 4 fields 1 required

Fields

FieldTypeMeaning
work entity required The book entity
scheme enumthema · bisac · bic · dewey · keyword optional thema / bisac / bic / dewey / keyword
code string optional Notation in that scheme
heading string optional Human heading

One classification heading of a book. Format when present.

Field meanings follow ONIX for Books Subject. This schema is one heading - not a keyword cloud and not rig.meta.tags.

work is required. Emit at least one of scheme, code, or heading.

A second heading is another entity. Free-form labels that are not a subject scheme stay on rig.meta.tags.

JSON Schema

Resolves at https://rig.works/schemas/rig.book.subject.schema.jsonraw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.book.subject.schema.json",
  "title": "rig.book.subject",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "work": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "scheme": {
      "type": "string",
      "enum": [
        "thema",
        "bisac",
        "bic",
        "dewey",
        "keyword"
      ]
    },
    "code": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "heading": {
      "$ref": "./_defs.schema.json#/$defs/string"
    }
  },
  "required": [
    "work"
  ],
  "description": "One classification heading on one work. Field meanings follow ONIX Subject.",
  "minProperties": 2
}

Seen in

book-isbn.json