{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tno/json-schema/tno-knowledge-interaction-base-schema.json",
  "title": "KnowledgeInteractionBase",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tno-knowledge-engine-smart-connector-openapi.yml#/components/schemas/KnowledgeInteractionBase",
  "type": "object",
  "required": [
    "knowledgeInteractionType"
  ],
  "properties": {
    "knowledgeInteractionType": {
      "type": "string"
    },
    "knowledgeInteractionName": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9-]*$"
    },
    "knowledgeGapsEnabled": {
      "type": "boolean"
    },
    "includeMetaKIs": {
      "type": "boolean"
    },
    "communicativeAct": {
      "$ref": "#/$defs/CommunicativeAct"
    },
    "prefixes": {
      "$ref": "#/$defs/Prefixes"
    }
  },
  "$defs": {
    "CommunicativeAct": {
      "type": "object",
      "required": [
        "requiredPurposes",
        "satisfiedPurposes"
      ],
      "properties": {
        "requiredPurposes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "satisfiedPurposes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Prefixes": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "pattern": "url"
      },
      "description": "If you include a Prefixes object when registering a knowledge interaction, you are allowed to use those prefixes in the graph pattern(s) that the knowledge interaction contains. Keep in mind that the prefixes can only be used in your graph pattern during registration, and not within bindings."
    }
  }
}