{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://vocab.danielberanek.cz/metadata/research-genealogy.schema.json",
  "title": "DIO/ODI Research Genealogy Registry",
  "type": "object",
  "required": [
    "registry_version",
    "schema_version",
    "uri",
    "generated_on",
    "title",
    "description",
    "maintainer",
    "scope",
    "research_objects",
    "research_processes",
    "milestones",
    "source_collections",
    "artefacts",
    "inventory_leads",
    "relations",
    "research_clusters",
    "intellectual_threads"
  ],
  "properties": {
    "registry_version": {
      "type": "string",
      "pattern": "^\\d+\\.\\d+\\.\\d+$"
    },
    "schema_version": {
      "type": "string",
      "pattern": "^\\d+\\.\\d+\\.\\d+$"
    },
    "uri": {
      "type": "string",
      "format": "uri"
    },
    "generated_on": {
      "type": "string",
      "format": "date"
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": "string",
      "minLength": 1
    },
    "scope": {
      "type": "string",
      "minLength": 1
    },
    "maintainer": {
      "type": "object",
      "required": [
        "name",
        "person_uri",
        "orcid"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "person_uri": {
          "type": "string",
          "format": "uri"
        },
        "orcid": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "research_objects": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "uri",
          "object_type",
          "description",
          "components",
          "role_in_genealogy"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "title": {
            "type": "string",
            "minLength": 1
          },
          "uri": {
            "type": "string",
            "format": "uri"
          },
          "object_type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "components": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "role_in_genealogy": {
            "type": "string"
          },
          "publication_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "publication_date_basis": {
            "type": "string"
          },
          "last_updated_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "last_updated_date_basis": {
            "type": "string"
          },
          "conceptual_themes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "theme",
                "description"
              ],
              "properties": {
                "theme": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              }
            }
          },
          "date_evidence": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "title",
                "url",
                "role"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "role": {
                  "type": "string"
                }
              }
            }
          },
          "first_known_online_by": {
            "type": "string",
            "format": "date"
          },
          "first_known_online_basis": {
            "type": "string"
          },
          "earliest_archived_capture": {
            "type": "object",
            "required": [
              "captured_at",
              "archive",
              "url"
            ],
            "properties": {
              "captured_at": {
                "type": "string",
                "format": "date-time"
              },
              "archive": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "corroborating_archives": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "archive",
                "url",
                "captured_at",
                "role"
              ],
              "properties": {
                "archive": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "captured_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "role": {
                  "type": "string"
                }
              }
            }
          },
          "publication_records": {
            "type": "array",
            "description": "Bibliographic and repository pages that identify or expose the same underlying research object. Multiple records do not create multiple research outputs.",
            "items": {
              "type": "object",
              "required": [
                "record_type",
                "title",
                "url",
                "role"
              ],
              "properties": {
                "record_type": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "role": {
                  "type": "string"
                },
                "repository_file_date": {
                  "type": "string",
                  "format": "date"
                },
                "content_review_status": {
                  "type": "string"
                },
                "relationship_status": {
                  "type": "string"
                }
              }
            }
          },
          "identifiers": {
            "type": "array",
            "description": "Persistent identifiers associated with the research object. Identifiers are not separate research outputs.",
            "items": {
              "type": "object",
              "required": [
                "scheme",
                "value",
                "uri",
                "provider",
                "role"
              ],
              "properties": {
                "scheme": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                },
                "provider": {
                  "type": "string"
                },
                "role": {
                  "type": "string"
                },
                "version_id": {
                  "type": "string",
                  "description": "Optional ID of the specific version identified by this persistent identifier."
                }
              }
            }
          },
          "institutional_record_status": {
            "type": "object",
            "description": "Availability of a public institutional or national thesis-catalogue page; absence may be recorded when author-confirmed.",
            "required": [
              "status",
              "basis",
              "note"
            ],
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "public-record-available",
                  "no-public-record",
                  "not-assessed"
                ]
              },
              "basis": {
                "type": "string",
                "enum": [
                  "directly-verified",
                  "author-confirmed",
                  "not-assessed"
                ]
              },
              "note": {
                "type": "string"
              }
            }
          },
          "versions": {
            "type": "array",
            "description": "Explicitly documented versions or successive submission attempts belonging to one research-object lineage.",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title",
                "record_uri",
                "submission_attempt",
                "status"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "record_uri": {
                  "type": "string",
                  "format": "uri"
                },
                "submission_attempt": {
                  "type": "integer",
                  "minimum": 0,
                  "description": "Ordinal thesis attempt when known. Zero may be used for a pre-submission archived working file."
                },
                "status": {
                  "type": "string"
                },
                "defended_on": {
                  "type": "string",
                  "format": "date"
                },
                "similarity_to_previous_version_percent": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "revision_extent_percent": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "doi": {
                  "type": "string"
                },
                "full_text_uri": {
                  "type": "string",
                  "format": "uri",
                  "description": "Direct PDF, repository, or full-text URL for this version."
                },
                "notes": {
                  "type": "string"
                },
                "catalogue_title": {
                  "type": "string"
                },
                "defense_status": {
                  "type": "string"
                },
                "bibliography_items_before": {
                  "type": "integer",
                  "minimum": 0
                },
                "bibliography_items_after": {
                  "type": "integer",
                  "minimum": 0
                },
                "footnotes_before": {
                  "type": "integer",
                  "minimum": 0
                },
                "footnotes_after": {
                  "type": "integer",
                  "minimum": 0
                },
                "source_file_uri": {
                  "type": "string",
                  "format": "uri"
                },
                "front_matter_uri": {
                  "type": "string",
                  "format": "uri"
                },
                "repository_file_date": {
                  "type": "string",
                  "format": "date"
                },
                "front_matter_file_date": {
                  "type": "string",
                  "format": "date"
                },
                "pages": {
                  "type": "integer",
                  "minimum": 1
                },
                "content_review_status": {
                  "type": "string"
                },
                "relationship_status": {
                  "type": "string"
                }
              },
              "description": "Version records may describe a thesis submission or a separately archived earlier file whose relationship to the submission is still being reconciled."
            }
          },
          "professional_timeline": {
            "type": "array",
            "description": "Author-confirmed chronology of professional, intellectual, and business milestones. Year precision is retained without inventing month or day.",
            "items": {
              "type": "object",
              "required": [
                "year",
                "milestone",
                "basis"
              ],
              "properties": {
                "year": {
                  "type": "integer",
                  "minimum": 1900,
                  "maximum": 2100
                },
                "year_end": {
                  "type": "integer",
                  "minimum": 1900,
                  "maximum": 2100
                },
                "milestone": {
                  "type": "string",
                  "minLength": 1
                },
                "basis": {
                  "type": "string",
                  "minLength": 1
                }
              }
            }
          },
          "interpretive_refs": {
            "type": "array",
            "description": "Navigation links from a research object or intellectual thread to the relevant interpretive section(s) in the Genealogical Foundations page. These are navigational references, not provenance relations.",
            "items": {
              "type": "object",
              "required": [
                "section_id",
                "label"
              ],
              "properties": {
                "section_id": {
                  "type": "string",
                  "pattern": "^[a-z0-9-]+$",
                  "description": "Anchor id of a section in research-genealogy/foundations/."
                },
                "label": {
                  "type": "string",
                  "description": "Human-readable label for the interpretive section."
                }
              }
            }
          }
        }
      }
    },
    "research_processes": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "status",
          "research_object_ids",
          "summary",
          "process_characteristics",
          "methods",
          "roles",
          "concept_outcomes"
        ],
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "temporal_scope": {
            "type": "object",
            "required": [
              "start",
              "end",
              "basis"
            ],
            "properties": {
              "start": {
                "type": "string",
                "format": "date"
              },
              "end": {
                "type": "string",
                "format": "date"
              },
              "basis": {
                "type": "string"
              }
            }
          },
          "research_object_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "string"
          },
          "process_characteristics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "methods": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "roles": {
            "type": "object"
          },
          "concept_outcomes": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "label",
                "uri",
                "articulated_on",
                "relation"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                },
                "articulated_on": {
                  "type": "string",
                  "format": "date"
                },
                "relation": {
                  "type": "string"
                }
              }
            }
          },
          "subsequent_research": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "title",
                "uri",
                "relation"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                },
                "uri": {
                  "type": "string",
                  "format": "uri"
                },
                "relation": {
                  "type": "string"
                }
              }
            }
          },
          "preceding_context_object_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "milestones": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "id",
          "date",
          "date_basis",
          "title",
          "summary",
          "research_object_ids",
          "process_ids",
          "source"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "date_end": {
            "type": "string",
            "format": "date"
          },
          "date_basis": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "research_object_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "process_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "concept_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source": {
            "type": "object",
            "required": [
              "title",
              "url"
            ],
            "properties": {
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    },
    "source_collections": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "platform",
          "title",
          "url",
          "collection_role",
          "attribution",
          "curation_status"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "profile_display_name": {
            "type": "string"
          },
          "collection_role": {
            "type": "string"
          },
          "content_scope": {
            "type": "string"
          },
          "attribution": {
            "type": "object",
            "required": [
              "status",
              "person_uri",
              "basis"
            ],
            "properties": {
              "status": {
                "type": "string"
              },
              "person_uri": {
                "type": "string",
                "format": "uri"
              },
              "basis": {
                "type": "string"
              }
            }
          },
          "curation_status": {
            "type": "string"
          },
          "representations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "platform",
                "url",
                "representation_type",
                "relation",
                "status"
              ],
              "properties": {
                "platform": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "representation_type": {
                  "type": "string"
                },
                "relation": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "artefacts": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "url",
          "platform",
          "artefact_type",
          "content_origin",
          "research_role",
          "summary",
          "provenance",
          "review_status"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "platform": {
            "type": "string"
          },
          "source_collection_id": {
            "type": "string"
          },
          "artefact_type": {
            "type": "string"
          },
          "content_origin": {
            "type": "string"
          },
          "model_attribution": {
            "type": "object"
          },
          "uploader_attribution": {
            "type": "string"
          },
          "research_object_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "process_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "related_work_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "research_role": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "provenance": {
            "type": "object",
            "required": [
              "basis",
              "source_description_url"
            ],
            "properties": {
              "basis": {
                "type": "string"
              },
              "source_description_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "review_status": {
            "type": "string"
          },
          "source_object_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "source_material": {
            "type": "object",
            "required": [
              "title",
              "url",
              "publication_date",
              "publication_date_basis",
              "last_updated_date",
              "last_updated_date_basis"
            ],
            "properties": {
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "publication_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "publication_date_basis": {
                "type": "string"
              },
              "last_updated_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "last_updated_date_basis": {
                "type": "string"
              },
              "date_evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "title",
                    "url",
                    "role"
                  ],
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "role": {
                      "type": "string"
                    }
                  }
                }
              },
              "first_known_online_by": {
                "type": "string",
                "format": "date"
              },
              "first_known_online_basis": {
                "type": "string"
              },
              "earliest_archived_capture": {
                "type": "object",
                "required": [
                  "captured_at",
                  "archive",
                  "url"
                ],
                "properties": {
                  "captured_at": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "archive": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              },
              "corroborating_archives": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "archive",
                    "url",
                    "captured_at",
                    "role"
                  ],
                  "properties": {
                    "archive": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "captured_at": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "date-time"
                    },
                    "role": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "temporal_metadata": {
            "type": "object",
            "required": [
              "source_article_publication_date_basis",
              "source_article_first_known_online_by",
              "source_article_earliest_archived_capture_at",
              "source_article_last_updated_date",
              "source_article_last_updated_date_basis",
              "corroborating_archive_url",
              "slideshare_upload_date",
              "slideshare_last_modified",
              "timestamp_note"
            ],
            "properties": {
              "source_article_last_updated_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "source_article_last_updated_date_basis": {
                "type": "string"
              },
              "slideshare_upload_date": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "slideshare_last_modified": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date"
              },
              "timestamp_note": {
                "type": "string"
              },
              "source_article_first_known_online_by": {
                "type": "string",
                "format": "date"
              },
              "source_article_earliest_archived_capture_at": {
                "type": "string",
                "format": "date-time"
              },
              "corroborating_archive_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "archive_captures": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "url",
                "archive_service",
                "captured_at",
                "timestamp_basis",
                "target_url",
                "capture_status",
                "note"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "archive_service": {
                  "type": "string"
                },
                "captured_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time"
                },
                "timestamp_basis": {
                  "type": "string"
                },
                "timestamp_source_value": {
                  "type": "string"
                },
                "timestamp_source_timezone": {
                  "type": "string"
                },
                "target_url": {
                  "type": "string",
                  "format": "uri"
                },
                "capture_status": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "representations": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "id",
                "platform",
                "representation_type",
                "url",
                "relation",
                "relationship_status",
                "evidence_basis",
                "archive_captures"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "platform": {
                  "type": "string"
                },
                "representation_type": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "title": {
                  "type": "string"
                },
                "relation": {
                  "type": "string"
                },
                "relationship_status": {
                  "type": "string"
                },
                "evidence_basis": {
                  "type": "string"
                },
                "archive_captures": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "url",
                      "archive_service",
                      "captured_at",
                      "timestamp_basis",
                      "target_url",
                      "capture_status",
                      "note"
                    ],
                    "properties": {
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "archive_service": {
                        "type": "string"
                      },
                      "captured_at": {
                        "type": [
                          "string",
                          "null"
                        ],
                        "format": "date-time"
                      },
                      "timestamp_basis": {
                        "type": "string"
                      },
                      "timestamp_source_value": {
                        "type": "string"
                      },
                      "timestamp_source_timezone": {
                        "type": "string"
                      },
                      "target_url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "capture_status": {
                        "type": "string"
                      },
                      "note": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "research_cluster_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "curation_note": {
            "type": "string"
          }
        }
      }
    },
    "inventory_leads": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "title",
          "artefact_type",
          "discovery_status",
          "summary"
        ],
        "properties": {
          "title": {
            "type": "string"
          },
          "source_collection_id": {
            "type": "string"
          },
          "artefact_type": {
            "type": "string"
          },
          "discovery_status": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "platform": {
            "type": "string"
          },
          "candidate_related_object_ids": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "relations": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "subject_id",
          "relation",
          "object_id",
          "evidence_url"
        ],
        "properties": {
          "subject_id": {
            "type": "string"
          },
          "relation": {
            "type": "string"
          },
          "object_id": {
            "type": "string"
          },
          "evidence_url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "research_clusters": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "cluster_type",
          "description",
          "membership_basis",
          "members"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "cluster_type": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "membership_basis": {
            "type": "string"
          },
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "artefact_id",
                "relationship",
                "status"
              ],
              "properties": {
                "artefact_id": {
                  "type": "string"
                },
                "relationship": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "intellectual_threads": {
      "type": "array",
      "description": "Cross-cutting intellectual traditions that recur across multiple research objects, with object-specific expressions and an explicit scope of continuity.",
      "items": {
        "type": "object",
        "required": [
          "id",
          "title",
          "description",
          "research_object_ids",
          "expressions"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "research_object_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "expressions": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "research_object_id",
                "expression"
              ],
              "properties": {
                "research_object_id": {
                  "type": "string"
                },
                "expression": {
                  "type": "string"
                }
              }
            }
          },
          "interpretive_refs": {
            "type": "array",
            "description": "Navigation links from a research object or intellectual thread to the relevant interpretive section(s) in the Genealogical Foundations page. These are navigational references, not provenance relations.",
            "items": {
              "type": "object",
              "required": [
                "section_id",
                "label"
              ],
              "properties": {
                "section_id": {
                  "type": "string",
                  "pattern": "^[a-z0-9-]+$",
                  "description": "Anchor id of a section in research-genealogy/foundations/."
                },
                "label": {
                  "type": "string",
                  "description": "Human-readable label for the interpretive section."
                }
              }
            }
          }
        }
      }
    }
  }
}
