---
updatedAt: 2025-02-19T22:14:38.000Z
agentTools:
  projectIndex: https://changelog-dzt-kg.readme.io/llms.txt
---

# Search for things

Search for things that contain a `ds:compliesWith` link in the KG based on a set of filters

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Things Service - KG Platform",
    "version": "1.0.0",
    "description": "# General Information\nThe KG Platform API provides a set of services for\n- knowledge management (Create, Update, Delete and Status)\n- knowledge access (Read and Query)\n- graph management (export and delete)\n\nThe Geo Enrichment and Geo Linking Service are currently available as beta status in the pre-production environment\n",
    "termsOfService": "https://onlim.com/en/terms-conditions/",
    "contact": {
      "email": "office@onlim.com",
      "url": "https://onlim.com/en/contact/"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "x-logo": {
      "url": "https://onlim.com/wp-content/uploads/2017/11/logo-header.png"
    }
  },
  "servers": [
    {
      "url": "https://proxy.opendatagermany.io/api/ts/"
    }
  ],
  "paths": {
    "/v1/kg/things": {
      "parameters": [
        {
          "$ref": "#/components/parameters/x-datasource"
        },
        {
          "$ref": "#/components/parameters/x-publisher"
        }
      ],
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Search Things"
        ],
        "summary": "Search for things\n",
        "operationId": "searchThings",
        "description": "Search for things that contain a `ds:compliesWith` link in the KG based on a set of filters\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/x-hop"
          },
          {
            "$ref": "#/components/parameters/page-size"
          },
          {
            "$ref": "#/components/parameters/page"
          },
          {
            "$ref": "#/components/parameters/x-api-key_required"
          },
          {
            "$ref": "#/components/parameters/doTypeCount"
          },
          {
            "$ref": "#/components/parameters/projectionDs"
          },
          {
            "$ref": "#/components/parameters/filterDs"
          },
          {
            "$ref": "#/components/parameters/filterDsList"
          },
          {
            "$ref": "#/components/parameters/sortSeed"
          },
          {
            "$ref": "#/components/parameters/lang"
          },
          {
            "$ref": "#/components/parameters/shapeFilterDs"
          },
          {
            "in": "header",
            "name": "inLang",
            "description": "restrict keyword search to a certain language",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2,
              "example": "de"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "kw",
            "description": "Search only for things that contain the specified value in the schema:name property",
            "required": false,
            "schema": {
              "type": "string",
              "example": "Albertina"
            }
          },
          {
            "in": "query",
            "name": "infer",
            "description": "enable inferencing in the query",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchKgThingResponse"
                },
                "example": {
                  "metaData": {
                    "dsCount": {
                      "https://semantify.it/ds/sloejGAwT": {
                        "count": 1,
                        "name": {
                          "de": "Sehenswürdigkeit"
                        }
                      }
                    },
                    "page-size": 5,
                    "total": 1,
                    "sortSeed": "0eff9e4a-27fc-4f29-9904-706bcda02c31",
                    "current-page": 1
                  },
                  "data": [
                    {
                      "@type": "https://schema.org/LandmarksOrHistoricalBuildings",
                      "https://vocab.sti2.at/ds/compliesWith": {
                        "@id": "https://semantify.it/ds/sloejGAwT"
                      },
                      "...": "..."
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerError"
                }
              }
            }
          },
          "404": {
            "description": "No resources found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerError"
                }
              }
            }
          },
          "406": {
            "description": "Not Acceptable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerError"
                }
              }
            }
          },
          "500": {
            "description": "Unexpected server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "x-api-key_required": {
        "in": "header",
        "name": "X-API-KEY",
        "description": "the api key for authentication and authorization",
        "schema": {
          "type": "string"
        },
        "required": true,
        "x-public": true
      },
      "x-datasource": {
        "in": "header",
        "name": "X-DATASOURCE",
        "description": "the datasource of the graph",
        "schema": {
          "type": "string"
        },
        "required": false
      },
      "x-publisher": {
        "in": "header",
        "name": "X-PUBLISHER",
        "description": "the publisher of the graph",
        "schema": {
          "type": "string"
        },
        "required": false
      },
      "x-hop": {
        "in": "header",
        "name": "X-HOP",
        "description": "return all property-object pairs of N hops for each queried node- Hop=0 returns only rdf:type and ds:compliesWith",
        "schema": {
          "type": "integer",
          "example": 1
        },
        "required": false
      },
      "page-size": {
        "in": "header",
        "name": "page-size",
        "description": "max number of elements per page",
        "schema": {
          "type": "integer",
          "default": 10,
          "maximum": 50,
          "example": 5
        },
        "required": false
      },
      "page": {
        "in": "header",
        "name": "page",
        "description": "page number",
        "schema": {
          "type": "integer",
          "default": 0
        },
        "required": false
      },
      "doTypeCount": {
        "in": "query",
        "name": "doTypeCount",
        "description": "return in addition a type count",
        "required": false,
        "schema": {
          "type": "boolean",
          "default": false
        }
      },
      "projectionDs": {
        "in": "query",
        "name": "projectionDs",
        "description": "The domain specification that defines which attributes should be returned",
        "required": false,
        "schema": {
          "type": "string",
          "format": "uri",
          "example": "https://semantify.it/ds/mhpmBCJJt"
        }
      },
      "filterDs": {
        "in": "query",
        "name": "filterDs",
        "description": "Search only for things with a specific ds:compliesWith value",
        "required": false,
        "schema": {
          "type": "string",
          "format": "uri"
        },
        "example": "https://semantify.it/ds/mhpmBCJJt"
      },
      "filterDsList": {
        "in": "query",
        "name": "filterDsList",
        "description": "Search only for things with a specific ds:compliesWith value",
        "required": false,
        "schema": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uri"
          }
        },
        "example": "https://semantify.it/ds/mhpmBCJJt"
      },
      "sortSeed": {
        "in": "query",
        "name": "sortSeed",
        "description": "seedValue used for random sort (use this for keeping the sort order  pagination)",
        "schema": {
          "type": "string",
          "example": "1234"
        }
      },
      "lang": {
        "in": "query",
        "name": "lang",
        "description": "Specify the return language (2 letter code) for property with langague tagged literals",
        "required": false,
        "schema": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2
          }
        },
        "example": "de"
      },
      "shapeFilterDs": {
        "in": "query",
        "name": "shapeFilterDs",
        "description": "Filter things by the shape defined in the DS (currently only the mandatory properties at level 1 are used). The shapeFilterDs is also used for projection if no projectionDs is specified ",
        "required": false,
        "schema": {
          "type": "string",
          "format": "uri"
        },
        "examples": {
          "directDS": {
            "value": "https://semantify.it/ds/mhpmBCJJt"
          },
          "innerDs": {
            "value": "https://semantify.it/ds/mhpmBCJJt#JKWbR"
          }
        }
      }
    },
    "schemas": {
      "ServerError": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "timestamp": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        ]
      },
      "SearchKgThingResponse": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "metaData": {
                "type": "object",
                "properties": {
                  "dsCount": {
                    "type": "object",
                    "description": "Count of results per DS",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "count": {
                          "type": "integer",
                          "example": 12
                        },
                        "name": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string",
                            "example": "Unterkunft"
                          }
                        }
                      }
                    }
                  },
                  "typeCount": {
                    "type": "object",
                    "description": "Count of results per type",
                    "additionalProperties": {
                      "type": "integer"
                    }
                  },
                  "current-page": {
                    "type": "integer",
                    "description": "the current page",
                    "example": 1
                  },
                  "page-size": {
                    "type": "integer",
                    "description": "number of result itmes",
                    "example": 5
                  },
                  "total": {
                    "type": "integer",
                    "description": "total number of results"
                  },
                  "sortSeed": {
                    "type": "string",
                    "description": "sortSeed used if results are ordered by a random sorting",
                    "example": "e218dfa5-d689-455a-9efb-a7af1b55b7f8"
                  }
                },
                "description": "the metaData of the response"
              },
              "data": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": true
                },
                "description": "the things in JSON-LD that are the result of the search"
              }
            }
          }
        ]
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Knowledge management",
      "description": "Only data import is implemented",
      "tags": [
        "Import",
        "Import Status",
        "Update Thing",
        "Delete Things"
      ]
    },
    {
      "name": "Knowledge access",
      "description": "Read and query data",
      "tags": [
        "Get Thing",
        "Get Meta",
        "Get Ontology",
        "Get representative super type",
        "Saved Queries",
        "SPARQL",
        "Search Things",
        "Search Things V2"
      ]
    },
    {
      "name": "Named graphs",
      "description": "Managing named graphs",
      "tags": [
        "Named Graphs"
      ]
    },
    {
      "name": "Geo Enrichment Service (BETA Status)",
      "description": "(BETA Status)",
      "tags": [
        "Geo Enrichment Config",
        "Geo Enrichment Job"
      ]
    },
    {
      "name": "Geo Linking Service (BETA Status)",
      "description": "(BETA Status)",
      "tags": [
        "Geo Linking Config",
        "Geo Linking Job"
      ]
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```