TNO

TNO smart connector life cycle API

The smart connector life cycle API from TNO — 2 operation(s) for smart connector life cycle.

GitHub OpenAPI

Operations 4

GET /sc Either get all available Smart Connectors or a specific one if the… #
POST /sc Create a new Smart Connector for the given Knowledge Base #
DELETE /sc Delete the Smart Connector belonging to the given Knowledge Base #
POST /sc/knowledge Use the specified domain knowledge for the given knowledge base during… #

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-smart-connector-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-smart-connector-life-cycle-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tno smart connector life cycle API
  version: 1.5.1-SNAPSHOT
  description: 'Operations tagged smart connector 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: smart connector life cycle
paths:
  /sc:
    get:
      summary: Either get all available Smart Connectors or a specific one if the…
      tags:
      - smart connector life cycle
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: false
        description: The knowledge base id who's Smart Connector information you would like to have.
        schema:
          type: string
      responses:
        '200':
          description: A list of Smart Connectors. It will have only a single element if the Knowledge-Base-Id was provided.
          content:
            application/json; charset=UTF-8:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SmartConnector'
        '404':
          description: If there is no Smart Connector for the given Knowledge-Base-Id.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '500':
          description: If a problem occurred.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      operationId: getSc
      x-operation-id-source: derived
    post:
      summary: Create a new Smart Connector for the given Knowledge Base
      tags:
      - smart connector life cycle
      requestBody:
        required: true
        content:
          application/json; charset=UTF-8:
            schema:
              $ref: '#/components/schemas/SmartConnector'
            examples:
              without lease:
                value:
                  knowledgeBaseId: http://example.org/a-knowledge-base-id
                  knowledgeBaseName: Example Knowledge Base
                  knowledgeBaseDescription: This is a detailed description
              with 60 seconds lease:
                value:
                  knowledgeBaseId: http://example.org/a-knowledge-base-id
                  knowledgeBaseName: Example Knowledge Base
                  knowledgeBaseDescription: This is a detailed description
                  leaseRenewalTime: 60
                description: The created smart connector will be cleaned up automatically after about 60 seconds. To postpone the cleanup, your knowledge base has to call /sc/lease/renew to extend the lease by 60 seconds.
              with reasoner level:
                value:
                  knowledgeBaseId: http://example.org/a-knowledge-base-id
                  knowledgeBaseName: Example Knowledge Base
                  knowledgeBaseDescription: This is a detailed description
                  reasonerLevel: 4
                description: The reasoner is always enabled, but can operate at different reasoner levels. The smart connector uses a reasoner to infer new data and orchestrate the data exchange. Higher reasoner levels increase the flexibility and power, but can decrease the performance and can cause unexpected behaviour.
      responses:
        '200':
          description: If the Smart Connector for the given Knowledge Base is successfully created.
        '400':
          description: If the creation of the Smart Connector for the given Knowledge Base failed.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      operationId: postSc
      x-operation-id-source: derived
    delete:
      summary: Delete the Smart Connector belonging to the given Knowledge Base
      tags:
      - smart connector life cycle
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: true
        description: The knowledge base id who's smart connector should be deleted.
        schema:
          type: string
      responses:
        '200':
          description: If the Smart Connector for the given Knowledge Base is successfully deleted.
        '404':
          description: If there is no Smart Connector for the given Knowledge-Base-Id.
          content:
            application/json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      operationId: deleteSc
      x-operation-id-source: derived
  /sc/knowledge:
    post:
      summary: Use the specified domain knowledge for the given knowledge base during…
      tags:
      - smart connector life cycle
      parameters:
      - name: Knowledge-Base-Id
        in: header
        required: true
        description: The id of the knowledge base whose smart connector should be loaded with the given domain knowledge.
        schema:
          type: string
      requestBody:
        required: true
        description: The actual domain knowledge (both facts and rules) in the form of plain text according to the <a href="https://jena.apache.org/documentation/inference/#RULEsyntax">Apache Jena Rules specification</a>. Note that it replaces/overrides all previously loaded domain knowledge for the particular smart connector.
        content:
          text/plain; charset=UTF-8:
            schema:
              type: string
            example: '#domain facts

              -> ( saref:Sensor rdfs:subClassOf saref:Device ) .


              #domain rules

              (?x rdfs:subClassOf ?y), (?a rdf:type ?x) -> (?a rdf:type ?y) .

              '
      responses:
        '200':
          description: If the provided domain knowledge is succesfully loaded into the smart connector of the given knowledge base.
        '400':
          description: If the provided domain knowledge could not be loaded into the smart connector of the given knowledge base. More info about the problem is provided in the response message.
          content:
            application:json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
        '404':
          description: If the given Knowledge-Base-Id could not be found.
          content:
            application:json; charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ResponseMessage'
      operationId: postScKnowledge
      x-operation-id-source: derived
components:
  schemas:
    ResponseMessage:
      type: object
      properties:
        messageType:
          type: string
        message:
          type: string
    SmartConnector:
      type: object
      required:
      - knowledgeBaseId
      - knowledgeBaseName
      - knowledgeBaseDescription
      properties:
        knowledgeBaseId:
          type: string
        knowledgeBaseName:
          type: string
        knowledgeBaseDescription:
          type: string
        leaseRenewalTime:
          type: integer
          minimum: 30
          maximum: 3600
          description: Include this property if you want to have your knowledge base automatically unregistered when you don't renew your lease. Expiry is checked periodically, so your knowledge base may actually be valid for longer than the given time.
        reasonerLevel:
          type: integer
          description: Include this optional property if you want to specify which reasoner level (1-5) this smart connector should use to infer new data and orchestrate data exchange. In general a higher reasoner level increases the flexibility and power, but decreases the performance. A lower reasoner level decreases the flexibility and power, but increases the performance. The default reasoner level is 2 and can be configured via the configuration options.
x-refined-from:
- tno-knowledge-engine-openapi-sc.yaml
- tno-knowledge-engine-smart-connector-openapi.yml