TNO

TNO knowledge interaction life cycle API

The knowledge interaction life cycle API from TNO — 1 operation(s) for knowledge interaction life cycle.

GitHub OpenAPI

Operations 3

GET /sc/ki Get all KnowledgeInteractions for a given Knowledge-Base-Id #
POST /sc/ki Register a Knowledge Interaction with the Smart Connector of the given… #
DELETE /sc/ki Unregister the given Knowledge Interaction with the Smart Connector of the… #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tno:tno-knowledge-interaction-life-cycle-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tno-knowledge-interaction-life-cycle-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tno knowledge interaction life cycle API
  version: 1.5.1-SNAPSHOT
  description: 'Operations tagged knowledge interaction life cycle across 2 of this provider''s published API definitions: tno-knowledge-engine-openapi-sc.yaml, tno-knowledge-engine-smart-connector-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://{host}:{port}/rest
  description: Self-hosted Knowledge Engine runtime (TNO open-source software, github.com/TNO/knowledge-engine); no TNO-hosted instance
  variables:
    host:
      default: localhost
    port:
      default: '8280'
tags:
- name: knowledge interaction life cycle
paths:
  /sc/ki:
    get:
      summary: Get all KnowledgeInteractions for a given Knowledge-Base-Id
      tags:
      - knowledge interaction life cycle
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: true
        description: The Knowledge Base Id that is registering a Knowledge Interaction.
        schema:
          type: string
      responses:
        '200':
          description: If the Knowledge Interactions were successfully returned.
          content:
            application/json; charset=UTF-8:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/KnowledgeInteractionWithId'
      operationId: getScKi
      x-operation-id-source: derived
    post:
      summary: Register a Knowledge Interaction with the Smart Connector of the given…
      tags:
      - knowledge interaction life cycle
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: true
        description: The Knowledge Base Id that is registering a Knowledge Interaction.
        schema:
          type: string
      requestBody:
        required: true
        description: 'The body of the ASK can contain the option "knowledgeGapEnabled" (See the example "ASK with knowledge gaps enabled"). This option is disabled by default. If enabled, each activation of the knowledge interaction will provide a set of knowledge gaps as part of the result. If this set is empty, the binding set of the result contains the answer. If the set of knowledge gaps is not empty, this contains one or more knowledge gaps that need to be fixed for the knowledge interaction to produce an answer.

          The body of a KI can also contain the option "includeMetaKIs" (see example ''ASK with meta KIs included''). This options is disabled by defauilt and when enabled will take meta knowledge interactions of other Smart Connector into account. This means that meta data of the knowledge network can be requested such as KB id, names, descriptions, knowledge interactions, etc. For more information see https://www.knowledge-engine.eu/ontology'
        content:
          application/json; charset=UTF-8:
            schema:
              $ref: '#/components/schemas/KnowledgeInteractionBase'
            examples:
              ASK without prefixes:
                value:
                  knowledgeInteractionType: AskKnowledgeInteraction
                  graphPattern: ?a <http://example.org/isRelatedTo> ?b .
              ASK with prefixes:
                value:
                  knowledgeInteractionType: AskKnowledgeInteraction
                  graphPattern: ?a rdf:type ex:Something .
                  prefixes:
                    rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
                    ex: http://example.org/
              REACT with prefixes:
                value:
                  knowledgeInteractionType: ReactKnowledgeInteraction
                  argumentGraphPattern: ?a rdf:type ex:Measurement . ?a ex:hasValueInMeters ?b .
                  resultGraphPattern: ?a rdf:type ex:Measurement . ?a ex:hasValueInYards ?b .
                  prefixes:
                    rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
                    ex: http://example.org/
              ASK with name and prefixes:
                value:
                  knowledgeInteractionType: AskKnowledgeInteraction
                  knowledgeInteractionName: books-by-shakespeare
                  graphPattern: ?a rdf:type ex:Book . ?a ex:hasAuthor ex:Shakespeare
                  prefixes:
                    rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
                    ex: http://example.org/
              ASK with knowledge gaps enabled:
                value:
                  knowledgeInteractionType: AskKnowledgeInteraction
                  graphPattern: ?a <http://example.org/isRelatedTo> ?b .
                  knowledgeGapsEnabled: 'true'
              ASK with meta KIs included:
                value:
                  knowledgeInteractionType: AskKnowledgeInteraction
                  graphPattern: ?a <http://example.org/isRelatedTo> ?b .
                  includeMetaKIs: true
      responses:
        '200':
          description: If the Knowledge Interaction is successfully registered, it returns the KnowledgeInteractionId object.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/KnowledgeInteractionId'
              example:
                knowledgeInteractionId: https://www.interconnectproject.eu/knowledge-engine/knowledgebase/example/a-reacting-kb/42
        '400':
          description: If the Knowledge Interaction is not successfully registered.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '404':
          description: If a Smart Connector for the given Knowledge-Base-Id cannot be found.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      operationId: postScKi
      x-operation-id-source: derived
    delete:
      summary: Unregister the given Knowledge Interaction with the Smart Connector of the…
      tags:
      - knowledge interaction life cycle
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: true
        description: The Knowledge Base id of the Knowledge Interaction that should be deleted.
        schema:
          type: string
      - name: Knowledge-Interaction-Id
        in: header
        required: true
        description: The Knowledge Interaction id of the Knowledge Interaction that should be deleted.
        schema:
          type: string
      responses:
        '200':
          description: If the Knowledge Interaction is successfully unregistered.
        '400':
          description: If unregistering the Knowledge Interaction failed.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '404':
          description: If a Knowledge Interaction or Knowledge Interaction for the given Knowledge-Base-Id and Knowledge-Interaction-Id cannot be found.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      operationId: deleteScKi
      x-operation-id-source: derived
components:
  schemas:
    ReactKnowledgeInteraction:
      required:
      - argumentGraphPattern
      allOf:
      - $ref: '#/components/schemas/KnowledgeInteractionBase'
      - type: object
        properties:
          argumentGraphPattern:
            type: string
          resultGraphPattern:
            type: string
    ResponseMessage:
      type: object
      properties:
        messageType:
          type: string
        message:
          type: string
    KnowledgeInteractionId:
      type: object
      properties:
        knowledgeInteractionId:
          type: string
    KnowledgeInteractionWithId:
      allOf:
      - anyOf:
        - $ref: '#/components/schemas/AskKnowledgeInteraction'
        - $ref: '#/components/schemas/AnswerKnowledgeInteraction'
        - $ref: '#/components/schemas/PostKnowledgeInteraction'
        - $ref: '#/components/schemas/ReactKnowledgeInteraction'
      - type: object
        properties:
          knowledgeInteractionId:
            type: string
    CommunicativeAct:
      type: object
      required:
      - requiredPurposes
      - satisfiedPurposes
      properties:
        requiredPurposes:
          type: array
          items:
            type: string
        satisfiedPurposes:
          type: array
          items:
            type: string
    AnswerKnowledgeInteraction:
      required:
      - graphPattern
      allOf:
      - $ref: '#/components/schemas/KnowledgeInteractionBase'
      - type: object
        properties:
          graphPattern:
            type: string
    AskKnowledgeInteraction:
      required:
      - graphPattern
      allOf:
      - $ref: '#/components/schemas/KnowledgeInteractionBase'
      - type: object
        properties:
          graphPattern:
            type: string
    KnowledgeInteractionBase:
      type: object
      required:
      - knowledgeInteractionType
      discriminator:
        propertyName: knowledgeInteractionType
        mapping:
          AskKnowledgeInteraction: '#/components/schemas/AskKnowledgeInteraction'
          AnswerKnowledgeInteraction: '#/components/schemas/AnswerKnowledgeInteraction'
          PostKnowledgeInteraction: '#/components/schemas/PostKnowledgeInteraction'
          ReactKnowledgeInteraction: '#/components/schemas/ReactKnowledgeInteraction'
      properties:
        knowledgeInteractionType:
          type: string
        knowledgeInteractionName:
          type: string
          pattern: ^[a-zA-Z0-9-]*$
        knowledgeGapsEnabled:
          type: boolean
        includeMetaKIs:
          type: boolean
        communicativeAct:
          $ref: '#/components/schemas/CommunicativeAct'
        prefixes:
          $ref: '#/components/schemas/Prefixes'
    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.
    PostKnowledgeInteraction:
      required:
      - argumentGraphPattern
      allOf:
      - $ref: '#/components/schemas/KnowledgeInteractionBase'
      - type: object
        properties:
          argumentGraphPattern:
            type: string
          resultGraphPattern:
            type: string
x-refined-from:
- tno-knowledge-engine-openapi-sc.yaml
- tno-knowledge-engine-smart-connector-openapi.yml