{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "NVO987 Knowledge Domain Schema",
  "description": "Schema describing the structure of the NVO987 machine-readable research corpus.",
  "type": "object",
  "properties": {

    "corpus_id": {
      "type": "string",
      "description": "Unique identifier for the research corpus"
    },

    "title": {
      "type": "string",
      "description": "Title of the research corpus"
    },

    "author": {
      "type": "string",
      "description": "Author of the corpus"
    },

    "identifier": {
      "type": "string",
      "description": "Decentralized identity reference (DID)"
    },

    "version": {
      "type": "string",
      "description": "Version of the corpus"
    },

    "publication_year": {
      "type": "string",
      "description": "Year of publication"
    },

    "domain": {
      "type": "string",
      "description": "Canonical domain hosting the corpus"
    },

    "sections": {
      "type": "array",
      "description": "Research sections included in the corpus",
      "items": {
        "type": "object",
        "properties": {

          "id": {
            "type": "string"
          },

          "title": {
            "type": "string"
          },

          "path": {
            "type": "string"
          }

        },
        "required": ["id", "title", "path"]
      }
    },

    "related_documents": {
      "type": "array",
      "description": "Associated research documents",
      "items": {
        "type": "object",
        "properties": {

          "title": {
            "type": "string"
          },

          "path": {
            "type": "string"
          }

        },
        "required": ["title", "path"]
      }
    }

  },

  "required": [
    "corpus_id",
    "title",
    "author",
    "identifier",
    "version",
    "domain",
    "sections"
  ]
}
