{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://aips.kivanura.org/spec/aips/geairm/0.1/geairm-0.1.profile.schema.json",
  "title": "GEAIRM 0.1 Profile / Extension Schema",
  "description": "Structural schema for governed GEAIRM 0.1 Profile and Extension declarations. Profiles may select/contextualize canonical semantics, make selected elements or relationships mandatory within scope, add stricter local constraints, establish mappings, reference or compose external specifications, and require additional evidence. Extensions may add local semantics in a distinct namespace while preserving GEAIRM core authority. A Profile/Extension Schema PASS establishes structural validity only and does not prove semantic preservation, applicability, AIPS Product qualification, SHACL conformance, governance approval, architecture conformance, or complete GEAIRM conformance.",
  "$comment": "Derived from GEAIRM-A1 through GEAIRM-A7. The frozen human-readable M01-M17 specification remains the normative semantic authority.",
  "x-geairm-artifactStage": "GEAIRM-A8",
  "x-geairm-artifactVersion": "0.1.0-draft",
  "x-geairm-status": "draft-machine-artifact",
  "x-geairm-specificationVersion": "0.1",
  "x-geairm-normativeSource": "docs/geairm/0.1/geairm-0.1-specification.md",
  "x-geairm-dependencies": [
    "geairm-0.1.concept-registry.yaml",
    "geairm-0.1.relationship-registry.yaml",
    "geairm-0.1.invariant-catalogue.yaml",
    "geairm-0.1.ttl",
    "geairm-0.1.context.jsonld",
    "geairm-0.1.shacl.ttl",
    "geairm-0.1.schema.json"
  ],
  "x-geairm-counts": {
    "ownedElements": 39,
    "canonicalRelationships": 41,
    "semanticInvariants": 36,
    "coreInvariantRequirementLevels": {
      "SHALL": 36
    }
  },
  "x-geairm-corePreservationRule": "A Profile or Extension MAY select, contextualize, specialize, tighten local constraints, map, extend and add requirements, but SHALL NOT weaken, override or redefine applicable GEAIRM core semantics while claiming GEAIRM alignment/conformance.",
  "x-geairm-invariantRule": "All 36 GEAIRM 0.1 canonical invariants are SHALL where applicable. A8 therefore provides no invariant-downgrade or invariant-tightening field; Profiles may only add additional requirements or declare scoped applicability with rationale.",
  "x-geairm-namespaceRule": "Profile and Extension namespaces must remain outside the canonical GEAIRM 0.1 namespace. External/extension identifiers must not use the geairm: prefix or canonical GEAIRM IRI space.",
  "x-geairm-deviationRule": "A8 intentionally exposes no Profile-level deviations/waiver field. Deviations remain separately representable under A7 and do not make violated mandatory GEAIRM semantics conformant.",
  "x-geairm-conformanceBoundary": "A Profile/Extension Schema PASS establishes structural validity only. It does not prove core-semantic preservation, mapping correctness, applicability justification, extension compatibility, external-specification conformance, A6 SHACL conformance, AIPS Product qualification, governance approval, GEAIRA architecture conformance, or complete GEAIRM conformance.",
  "oneOf": [
    {
      "$ref": "#/$defs/ProfileDeclaration"
    },
    {
      "$ref": "#/$defs/ExtensionDocument"
    }
  ],
  "$defs": {
    "JsonLdContext": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "object"
        },
        {
          "type": "array",
          "minItems": 1,
          "items": {
            "oneOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "object"
              }
            ]
          }
        }
      ]
    },
    "ResourceIdentifier": {
      "type": "string",
      "minLength": 1,
      "format": "uri-reference"
    },
    "CanonicalElementReference": {
      "type": "string",
      "enum": [
        "GEAIRM-C-001",
        "ArtificialIntelligence",
        "geairm:ArtificialIntelligence",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/ArtificialIntelligence",
        "GEAIRM-C-002",
        "AIExecution",
        "geairm:AIExecution",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/AIExecution",
        "GEAIRM-C-003",
        "KnowledgeResource",
        "geairm:KnowledgeResource",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/KnowledgeResource",
        "GEAIRM-C-004",
        "Rule",
        "geairm:Rule",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Rule",
        "GEAIRM-C-005",
        "AIContext",
        "geairm:AIContext",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/AIContext",
        "GEAIRM-C-006",
        "Instruction",
        "geairm:Instruction",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Instruction",
        "GEAIRM-C-007",
        "Prompt",
        "geairm:Prompt",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Prompt",
        "GEAIRM-C-008",
        "Retrieval",
        "geairm:Retrieval",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Retrieval",
        "GEAIRM-C-009",
        "Memory",
        "geairm:Memory",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Memory",
        "GEAIRM-C-010",
        "DelegatedAuthority",
        "geairm:DelegatedAuthority",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/DelegatedAuthority",
        "GEAIRM-C-011",
        "Environment",
        "geairm:Environment",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Environment",
        "GEAIRM-C-012",
        "Sensing",
        "geairm:Sensing",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Sensing",
        "GEAIRM-C-013",
        "Actuation",
        "geairm:Actuation",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Actuation",
        "GEAIRM-C-014",
        "ControlLoop",
        "geairm:ControlLoop",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/ControlLoop",
        "GEAIRM-C-015",
        "DecisionFormation",
        "geairm:DecisionFormation",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/DecisionFormation",
        "GEAIRM-C-016",
        "Authorization",
        "geairm:Authorization",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Authorization",
        "GEAIRM-C-017",
        "DependencyPath",
        "geairm:DependencyPath",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/DependencyPath",
        "GEAIRM-C-018",
        "Composition",
        "geairm:Composition",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Composition",
        "GEAIRM-C-019",
        "Federation",
        "geairm:Federation",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Federation",
        "GEAIRM-C-020",
        "Orchestration",
        "geairm:Orchestration",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Orchestration",
        "GEAIRM-C-021",
        "Evaluation",
        "geairm:Evaluation",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Evaluation",
        "GEAIRM-C-022",
        "EvaluationCriterion",
        "geairm:EvaluationCriterion",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/EvaluationCriterion",
        "GEAIRM-C-023",
        "EvaluationResult",
        "geairm:EvaluationResult",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/EvaluationResult",
        "GEAIRM-C-024",
        "AssuranceAssessment",
        "geairm:AssuranceAssessment",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/AssuranceAssessment",
        "GEAIRM-C-025",
        "AssuranceFinding",
        "geairm:AssuranceFinding",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/AssuranceFinding",
        "GEAIRM-C-026",
        "VersionIdentifier",
        "geairm:VersionIdentifier",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/VersionIdentifier",
        "GEAIRM-C-027",
        "CurrentnessAssessment",
        "geairm:CurrentnessAssessment",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/CurrentnessAssessment",
        "GEAIRM-C-028",
        "SemanticChangeEvent",
        "geairm:SemanticChangeEvent",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/SemanticChangeEvent",
        "GEAIRM-RL-001",
        "AIContextResource",
        "geairm:AIContextResource",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/AIContextResource",
        "GEAIRM-RL-002",
        "GroundingSource",
        "geairm:GroundingSource",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/GroundingSource",
        "GEAIRM-RL-003",
        "Tool",
        "geairm:Tool",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Tool",
        "GEAIRM-RL-004",
        "EvaluationTarget",
        "geairm:EvaluationTarget",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/EvaluationTarget",
        "GEAIRM-RL-005",
        "Evidence",
        "geairm:Evidence",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/Evidence",
        "GEAIRM-RL-006",
        "VersionedResource",
        "geairm:VersionedResource",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/VersionedResource",
        "GEAIRM-ST-001",
        "LifecycleState",
        "geairm:LifecycleState",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/LifecycleState",
        "GEAIRM-CL-001",
        "EnvironmentKind",
        "geairm:EnvironmentKind",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/EnvironmentKind",
        "GEAIRM-CV-001",
        "PhysicalEnvironment",
        "geairm:PhysicalEnvironment",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/PhysicalEnvironment",
        "GEAIRM-CV-002",
        "DigitalEnvironment",
        "geairm:DigitalEnvironment",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/DigitalEnvironment",
        "GEAIRM-CV-003",
        "MixedEnvironment",
        "geairm:MixedEnvironment",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/MixedEnvironment"
      ]
    },
    "CanonicalRelationshipReference": {
      "type": "string",
      "enum": [
        "GEAIRM-REL-001",
        "contributesToIntelligenceCapability",
        "geairm:contributesToIntelligenceCapability",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/contributesToIntelligenceCapability",
        "GEAIRM-REL-002",
        "classifiedAsPrimitiveType",
        "geairm:classifiedAsPrimitiveType",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/classifiedAsPrimitiveType",
        "GEAIRM-REL-003",
        "involvesAIPrimitive",
        "geairm:involvesAIPrimitive",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/involvesAIPrimitive",
        "GEAIRM-REL-004",
        "exercisesIntelligenceCapability",
        "geairm:exercisesIntelligenceCapability",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/exercisesIntelligenceCapability",
        "GEAIRM-REL-005",
        "operatesInExecutionMode",
        "geairm:operatesInExecutionMode",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/operatesInExecutionMode",
        "GEAIRM-REL-006",
        "producesOrCausesIntelligenceEffect",
        "geairm:producesOrCausesIntelligenceEffect",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/producesOrCausesIntelligenceEffect",
        "GEAIRM-REL-007",
        "hasAIContext",
        "geairm:hasAIContext",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/hasAIContext",
        "GEAIRM-REL-008",
        "includesContextResource",
        "geairm:includesContextResource",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/includesContextResource",
        "GEAIRM-REL-009",
        "containsInstruction",
        "geairm:containsInstruction",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/containsInstruction",
        "GEAIRM-REL-010",
        "groundsAIContext",
        "geairm:groundsAIContext",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/groundsAIContext",
        "GEAIRM-REL-011",
        "retrievesResource",
        "geairm:retrievesResource",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/retrievesResource",
        "GEAIRM-REL-012",
        "suppliesToAIContext",
        "geairm:suppliesToAIContext",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/suppliesToAIContext",
        "GEAIRM-REL-013",
        "memoryContributesToAIContext",
        "geairm:memoryContributesToAIContext",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/memoryContributesToAIContext",
        "GEAIRM-REL-014",
        "participatesInAIExecution",
        "geairm:participatesInAIExecution",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/participatesInAIExecution",
        "GEAIRM-REL-015",
        "operatesUnderDelegatedAuthority",
        "geairm:operatesUnderDelegatedAuthority",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/operatesUnderDelegatedAuthority",
        "GEAIRM-REL-016",
        "usesTool",
        "geairm:usesTool",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/usesTool",
        "GEAIRM-REL-017",
        "occursInEnvironment",
        "geairm:occursInEnvironment",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/occursInEnvironment",
        "GEAIRM-REL-018",
        "sensesEnvironment",
        "geairm:sensesEnvironment",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/sensesEnvironment",
        "GEAIRM-REL-019",
        "actsUponEnvironment",
        "geairm:actsUponEnvironment",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/actsUponEnvironment",
        "GEAIRM-REL-020",
        "participatesInControlLoop",
        "geairm:participatesInControlLoop",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/participatesInControlLoop",
        "GEAIRM-REL-021",
        "participatesInDecisionFormation",
        "geairm:participatesInDecisionFormation",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/participatesInDecisionFormation",
        "GEAIRM-REL-022",
        "informsDecisionFormation",
        "geairm:informsDecisionFormation",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/informsDecisionFormation",
        "GEAIRM-REL-023",
        "authorizedBy",
        "geairm:authorizedBy",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/authorizedBy",
        "GEAIRM-REL-024",
        "withinDelegatedAuthority",
        "geairm:withinDelegatedAuthority",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/withinDelegatedAuthority",
        "GEAIRM-REL-025",
        "participatesInComposition",
        "geairm:participatesInComposition",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/participatesInComposition",
        "GEAIRM-REL-026",
        "participatesInFederation",
        "geairm:participatesInFederation",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/participatesInFederation",
        "GEAIRM-REL-027",
        "participatesInOrchestration",
        "geairm:participatesInOrchestration",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/participatesInOrchestration",
        "GEAIRM-REL-028",
        "evaluatesTarget",
        "geairm:evaluatesTarget",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/evaluatesTarget",
        "GEAIRM-REL-029",
        "usesEvaluationCriterion",
        "geairm:usesEvaluationCriterion",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/usesEvaluationCriterion",
        "GEAIRM-REL-030",
        "producesEvaluationResult",
        "geairm:producesEvaluationResult",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/producesEvaluationResult",
        "GEAIRM-REL-031",
        "recordedInEvaluationReport",
        "geairm:recordedInEvaluationReport",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/recordedInEvaluationReport",
        "GEAIRM-REL-032",
        "usesEvidence",
        "geairm:usesEvidence",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/usesEvidence",
        "GEAIRM-REL-033",
        "assessesAssuranceOf",
        "geairm:assessesAssuranceOf",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/assessesAssuranceOf",
        "GEAIRM-REL-034",
        "producesAssuranceFinding",
        "geairm:producesAssuranceFinding",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/producesAssuranceFinding",
        "GEAIRM-REL-035",
        "identifiedByVersion",
        "geairm:identifiedByVersion",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/identifiedByVersion",
        "GEAIRM-REL-036",
        "hasLifecycleState",
        "geairm:hasLifecycleState",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/hasLifecycleState",
        "GEAIRM-REL-037",
        "assessesCurrentnessOf",
        "geairm:assessesCurrentnessOf",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/assessesCurrentnessOf",
        "GEAIRM-REL-038",
        "hasCurrentnessConcern",
        "geairm:hasCurrentnessConcern",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/hasCurrentnessConcern",
        "GEAIRM-REL-039",
        "hasCurrentnessStatus",
        "geairm:hasCurrentnessStatus",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/hasCurrentnessStatus",
        "GEAIRM-REL-040",
        "supersedes",
        "geairm:supersedes",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/supersedes",
        "GEAIRM-REL-041",
        "affectsSemanticTarget",
        "geairm:affectsSemanticTarget",
        "https://aips.kivanura.org/spec/aips/geairm/0.1/affectsSemanticTarget"
      ]
    },
    "InvariantReference": {
      "type": "string",
      "enum": [
        "GEAIRM-INV-001",
        "GEAIRM-INV-002",
        "GEAIRM-INV-003",
        "GEAIRM-INV-004",
        "GEAIRM-INV-005",
        "GEAIRM-INV-006",
        "GEAIRM-INV-007",
        "GEAIRM-INV-008",
        "GEAIRM-INV-009",
        "GEAIRM-INV-010",
        "GEAIRM-INV-011",
        "GEAIRM-INV-012",
        "GEAIRM-INV-013",
        "GEAIRM-INV-014",
        "GEAIRM-INV-015",
        "GEAIRM-INV-016",
        "GEAIRM-INV-017",
        "GEAIRM-INV-018",
        "GEAIRM-INV-019",
        "GEAIRM-INV-020",
        "GEAIRM-INV-021",
        "GEAIRM-INV-022",
        "GEAIRM-INV-023",
        "GEAIRM-INV-024",
        "GEAIRM-INV-025",
        "GEAIRM-INV-026",
        "GEAIRM-INV-027",
        "GEAIRM-INV-028",
        "GEAIRM-INV-029",
        "GEAIRM-INV-030",
        "GEAIRM-INV-031",
        "GEAIRM-INV-032",
        "GEAIRM-INV-033",
        "GEAIRM-INV-034",
        "GEAIRM-INV-035",
        "GEAIRM-INV-036"
      ]
    },
    "ExternalOrExtensionIdentifier": {
      "type": "string",
      "pattern": "^(?!geairm:)(?!https://aips\\.kivanura\\.org/spec/aips/geairm/0\\.1(?:/.*)?$)(?:[A-Za-z_][A-Za-z0-9._-]*:[^\\s]+|https?://[^\\s]+|urn:[^\\s]+)$"
    },
    "NamespaceIdentifier": {
      "type": "string",
      "format": "uri",
      "not": {
        "pattern": "^https://aips\\.kivanura\\.org/spec/aips/geairm/0\\.1(?:/.*)?$"
      },
      "description": "Namespace controlled by the Profile/Extension authority; canonical GEAIRM 0.1 namespace and descendants are reserved."
    },
    "NodeReference": {
      "oneOf": [
        {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        {
          "type": "object",
          "required": [
            "id"
          ],
          "properties": {
            "id": {
              "$ref": "#/$defs/ResourceIdentifier"
            },
            "label": {
              "type": "string",
              "minLength": 1
            },
            "type": {
              "oneOf": [
                {
                  "$ref": "#/$defs/CanonicalElementReference"
                },
                {
                  "$ref": "#/$defs/ExternalOrExtensionIdentifier"
                }
              ]
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "ProfileTargetReference": {
      "oneOf": [
        {
          "$ref": "#/$defs/CanonicalElementReference"
        },
        {
          "$ref": "#/$defs/CanonicalRelationshipReference"
        },
        {
          "$ref": "#/$defs/InvariantReference"
        },
        {
          "$ref": "#/$defs/ExternalOrExtensionIdentifier"
        }
      ]
    },
    "ProfileScope": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "scopeType": {
          "type": "string",
          "minLength": 1
        },
        "elements": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalElementReference"
          }
        },
        "relationships": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalRelationshipReference"
          }
        },
        "invariants": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/InvariantReference"
          }
        },
        "externalTerms": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/ExternalOrExtensionIdentifier"
          }
        }
      },
      "additionalProperties": false
    },
    "ApplicabilityRule": {
      "type": "object",
      "required": [
        "target",
        "status"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "target": {
          "$ref": "#/$defs/ProfileTargetReference"
        },
        "status": {
          "type": "string",
          "enum": [
            "Applicable",
            "NotApplicable",
            "Conditional",
            "AssessmentIncomplete"
          ]
        },
        "rationale": {
          "type": "string",
          "minLength": 1
        },
        "condition": {
          "type": "string",
          "minLength": 1
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        }
      },
      "allOf": [
        {
          "if": {
            "properties": {
              "status": {
                "const": "NotApplicable"
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "required": [
              "rationale"
            ]
          }
        },
        {
          "if": {
            "properties": {
              "status": {
                "const": "Conditional"
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "required": [
              "condition"
            ]
          }
        }
      ],
      "additionalProperties": false
    },
    "CardinalityConstraint": {
      "type": "object",
      "required": [
        "id",
        "relationship",
        "rationale"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "subject": {
          "oneOf": [
            {
              "$ref": "#/$defs/CanonicalElementReference"
            },
            {
              "$ref": "#/$defs/ExternalOrExtensionIdentifier"
            }
          ]
        },
        "relationship": {
          "$ref": "#/$defs/CanonicalRelationshipReference"
        },
        "minCount": {
          "type": "integer",
          "minimum": 0
        },
        "maxCount": {
          "type": "integer",
          "minimum": 0
        },
        "rationale": {
          "type": "string",
          "minLength": 1
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        },
        "validationClass": {
          "type": "string",
          "enum": [
            "machine-executable",
            "hybrid-assessment",
            "assessment-only"
          ]
        }
      },
      "anyOf": [
        {
          "required": [
            "minCount"
          ]
        },
        {
          "required": [
            "maxCount"
          ]
        }
      ],
      "additionalProperties": false
    },
    "AdditionalConstraint": {
      "type": "object",
      "required": [
        "id",
        "statement",
        "requirementLevel",
        "validationClass"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "statement": {
          "type": "string",
          "minLength": 1
        },
        "target": {
          "$ref": "#/$defs/ProfileTargetReference"
        },
        "requirementLevel": {
          "type": "string",
          "enum": [
            "SHALL",
            "SHOULD"
          ]
        },
        "validationClass": {
          "type": "string",
          "enum": [
            "machine-executable",
            "hybrid-assessment",
            "assessment-only"
          ]
        },
        "machineConstraintReference": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "rationale": {
          "type": "string",
          "minLength": 1
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        }
      },
      "additionalProperties": false
    },
    "TerminologyMapping": {
      "type": "object",
      "required": [
        "id",
        "localTerm",
        "targetElement",
        "mappingType"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "localTerm": {
          "type": "string",
          "minLength": 1
        },
        "localIdentifier": {
          "$ref": "#/$defs/ExternalOrExtensionIdentifier"
        },
        "targetElement": {
          "$ref": "#/$defs/CanonicalElementReference"
        },
        "mappingType": {
          "type": "string",
          "enum": [
            "equivalentTo",
            "specializes",
            "broaderThan",
            "narrowerThan",
            "relatedTo"
          ]
        },
        "authority": {
          "type": "string",
          "minLength": 1
        },
        "rationale": {
          "type": "string",
          "minLength": 1
        },
        "evidence": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceIdentifier"
          }
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        },
        "notes": {
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "RelationshipMapping": {
      "type": "object",
      "required": [
        "id",
        "localRelationship",
        "targetRelationship",
        "mappingType"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "localRelationship": {
          "$ref": "#/$defs/ExternalOrExtensionIdentifier"
        },
        "targetRelationship": {
          "$ref": "#/$defs/CanonicalRelationshipReference"
        },
        "mappingType": {
          "type": "string",
          "enum": [
            "equivalentTo",
            "specializes",
            "broaderThan",
            "narrowerThan",
            "relatedTo"
          ]
        },
        "authority": {
          "type": "string",
          "minLength": 1
        },
        "rationale": {
          "type": "string",
          "minLength": 1
        },
        "evidence": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ResourceIdentifier"
          }
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        }
      },
      "additionalProperties": false
    },
    "ExternalSpecificationReference": {
      "type": "object",
      "required": [
        "id",
        "name",
        "version",
        "conformanceMode"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "version": {
          "type": "string",
          "minLength": 1
        },
        "semanticAuthority": {
          "type": "string",
          "minLength": 1
        },
        "conformanceMode": {
          "type": "string",
          "enum": [
            "ReferencedOnly",
            "Composed"
          ],
          "description": "ReferencedOnly preserves independent conformance. Composed adds the external specification to Profile/Extension conformance requirements but does not absorb it into GEAIRM core."
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        },
        "notes": {
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "AdditionalConformanceRequirement": {
      "type": "object",
      "required": [
        "id",
        "statement",
        "requirementLevel",
        "validationClass"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "statement": {
          "type": "string",
          "minLength": 1
        },
        "requirementLevel": {
          "type": "string",
          "enum": [
            "SHALL",
            "SHOULD"
          ]
        },
        "validationClass": {
          "type": "string",
          "enum": [
            "machine-executable",
            "hybrid-assessment",
            "assessment-only"
          ]
        },
        "appliesTo": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/ProfileTargetReference"
          }
        },
        "rationale": {
          "type": "string",
          "minLength": 1
        },
        "evidenceRequired": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "EvidenceRequirement": {
      "type": "object",
      "required": [
        "id",
        "statement"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "statement": {
          "type": "string",
          "minLength": 1
        },
        "supports": {
          "type": "array",
          "minItems": 1,
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/ProfileTargetReference"
          }
        },
        "evidenceType": {
          "type": "string",
          "minLength": 1
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        }
      },
      "additionalProperties": false
    },
    "ExtensionTermDeclaration": {
      "type": "object",
      "required": [
        "id",
        "localName",
        "label",
        "termKind",
        "definition",
        "semanticAuthority"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ExternalOrExtensionIdentifier"
        },
        "localName": {
          "type": "string",
          "pattern": "^[A-Za-z_][A-Za-z0-9._-]*$"
        },
        "label": {
          "type": "string",
          "minLength": 1
        },
        "termKind": {
          "type": "string",
          "enum": [
            "Concept",
            "Role",
            "State",
            "Classification",
            "ClassificationValue",
            "Other"
          ]
        },
        "definition": {
          "type": "string",
          "minLength": 1
        },
        "semanticAuthority": {
          "type": "string",
          "minLength": 1
        },
        "specializesElement": {
          "$ref": "#/$defs/CanonicalElementReference"
        },
        "relatedElements": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalElementReference"
          }
        },
        "status": {
          "type": "string",
          "minLength": 1
        },
        "notes": {
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "ExtensionRelationshipDeclaration": {
      "type": "object",
      "required": [
        "id",
        "localName",
        "label",
        "definition",
        "semanticAuthority"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ExternalOrExtensionIdentifier"
        },
        "localName": {
          "type": "string",
          "pattern": "^[A-Za-z_][A-Za-z0-9._-]*$"
        },
        "label": {
          "type": "string",
          "minLength": 1
        },
        "definition": {
          "type": "string",
          "minLength": 1
        },
        "semanticAuthority": {
          "type": "string",
          "minLength": 1
        },
        "specializesRelationship": {
          "$ref": "#/$defs/CanonicalRelationshipReference"
        },
        "subjectExpectation": {
          "type": "string",
          "minLength": 1
        },
        "objectExpectation": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "type": "string",
          "minLength": 1
        },
        "notes": {
          "type": "string",
          "minLength": 1
        }
      },
      "additionalProperties": false
    },
    "ExtensionDescriptor": {
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "scope",
        "authority",
        "namespace"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "version": {
          "type": "string",
          "minLength": 1
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        },
        "authority": {
          "type": "string",
          "minLength": 1
        },
        "namespace": {
          "$ref": "#/$defs/NamespaceIdentifier"
        },
        "status": {
          "type": "string",
          "minLength": 1
        },
        "extendsElements": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalElementReference"
          }
        },
        "extendsRelationships": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalRelationshipReference"
          }
        },
        "artifactReferences": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/ResourceIdentifier"
          }
        }
      },
      "additionalProperties": false
    },
    "ProfileDeclaration": {
      "type": "object",
      "required": [
        "id",
        "type",
        "name",
        "version",
        "geairmVersion",
        "profiles",
        "scope",
        "authority",
        "status"
      ],
      "properties": {
        "@context": {
          "$ref": "#/$defs/JsonLdContext"
        },
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "type": {
          "const": "GEAIRMProfile"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "version": {
          "type": "string",
          "minLength": 1
        },
        "geairmVersion": {
          "const": "0.1"
        },
        "profiles": {
          "const": "https://aips.kivanura.org/spec/aips/geairm/0.1"
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        },
        "authority": {
          "type": "string",
          "minLength": 1
        },
        "namespace": {
          "$ref": "#/$defs/NamespaceIdentifier"
        },
        "status": {
          "type": "string",
          "minLength": 1
        },
        "effectiveFrom": {
          "type": "string",
          "format": "date"
        },
        "specializesProfiles": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/ResourceIdentifier"
          }
        },
        "supersedesProfile": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "selectedElements": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalElementReference"
          },
          "description": "Canonical GEAIRM elements selected/emphasized by the Profile. Omission does not weaken core semantics."
        },
        "selectedRelationships": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalRelationshipReference"
          }
        },
        "requiredElements": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalElementReference"
          },
          "description": "Canonical GEAIRM elements made mandatory within declared Profile scope."
        },
        "requiredRelationships": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalRelationshipReference"
          }
        },
        "applicability": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ApplicabilityRule"
          }
        },
        "cardinalityConstraints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CardinalityConstraint"
          }
        },
        "additionalConstraints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdditionalConstraint"
          }
        },
        "terminologyMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TerminologyMapping"
          }
        },
        "relationshipMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RelationshipMapping"
          }
        },
        "extensions": {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/ResourceIdentifier"
              },
              {
                "$ref": "#/$defs/ExtensionDescriptor"
              }
            ]
          }
        },
        "externalSpecifications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExternalSpecificationReference"
          }
        },
        "additionalConformanceRequirements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdditionalConformanceRequirement"
          }
        },
        "evidenceRequirements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvidenceRequirement"
          }
        },
        "notes": {
          "type": "string",
          "minLength": 1
        }
      },
      "patternProperties": {
        "^(?!geairm:)[A-Za-z_][A-Za-z0-9._-]*:.+$": {}
      },
      "additionalProperties": false
    },
    "ExtensionDocument": {
      "type": "object",
      "required": [
        "id",
        "type",
        "name",
        "description",
        "version",
        "geairmVersion",
        "extends",
        "scope",
        "authority",
        "namespace",
        "status"
      ],
      "properties": {
        "@context": {
          "$ref": "#/$defs/JsonLdContext"
        },
        "id": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "type": {
          "const": "GEAIRMExtension"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "description": {
          "type": "string",
          "minLength": 1
        },
        "version": {
          "type": "string",
          "minLength": 1
        },
        "geairmVersion": {
          "const": "0.1"
        },
        "extends": {
          "const": "https://aips.kivanura.org/spec/aips/geairm/0.1"
        },
        "scope": {
          "$ref": "#/$defs/ProfileScope"
        },
        "authority": {
          "type": "string",
          "minLength": 1
        },
        "namespace": {
          "$ref": "#/$defs/NamespaceIdentifier"
        },
        "status": {
          "type": "string",
          "minLength": 1
        },
        "effectiveFrom": {
          "type": "string",
          "format": "date"
        },
        "supersedesExtension": {
          "$ref": "#/$defs/ResourceIdentifier"
        },
        "extendsElements": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalElementReference"
          }
        },
        "extendsRelationships": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/CanonicalRelationshipReference"
          }
        },
        "extensionElements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExtensionTermDeclaration"
          }
        },
        "extensionRelationships": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExtensionRelationshipDeclaration"
          }
        },
        "additionalConstraints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AdditionalConstraint"
          }
        },
        "terminologyMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TerminologyMapping"
          }
        },
        "relationshipMappings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RelationshipMapping"
          }
        },
        "externalSpecifications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExternalSpecificationReference"
          }
        },
        "evidenceRequirements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvidenceRequirement"
          }
        },
        "artifactReferences": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/ResourceIdentifier"
          }
        },
        "notes": {
          "type": "string",
          "minLength": 1
        }
      },
      "patternProperties": {
        "^(?!geairm:)[A-Za-z_][A-Za-z0-9._-]*:.+$": {}
      },
      "additionalProperties": false
    }
  }
}
