{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/frontier-system-lineage-graph",
    "title": "Frontier System Lineage Graph",
    "type": "object",
    "required": [
        "root_system_doi",
        "node_dois",
        "graph_hash",
        "snapshot_date"
    ],
    "properties": {
        "root_system_doi": {
            "title": "Root system ID",
            "type": "string",
            "format": "doi",
            "description": "A Taxonmark ID (for example TM.AI.2026.7KQ2X) or a DOI registered elsewhere"
        },
        "node_dois": {
            "title": "Lineage node IDs",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        },
        "graph_format": {
            "title": "Graph format",
            "type": "string",
            "enum": [
                "json-ld",
                "prov-o",
                "graphml"
            ]
        },
        "graph_hash": {
            "title": "Graph hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "graph_url": {
            "title": "Graph URL",
            "type": "string",
            "format": "uri"
        },
        "snapshot_date": {
            "title": "Snapshot date",
            "type": "string",
            "format": "date"
        }
    },
    "additionalProperties": true
}