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

# Filter saved queries

## List and filter queries by category or shared with, if no filters returns all queries

# 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/queries": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Saved Queries"
        ],
        "summary": "Filter saved queries\n",
        "operationId": "findNamedQueries",
        "parameters": [
          {
            "$ref": "#/components/parameters/x-api-key_required"
          },
          {
            "in": "query",
            "name": "filter[category]",
            "description": "Filter by category",
            "example": "integrityCheck",
            "schema": {
              "type": "string"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "filter[shared]",
            "description": "Filter by shared with",
            "schema": {
              "type": "string"
            },
            "required": false
          }
        ],
        "description": "## List and filter queries by category or shared with, if no filters returns all queries\n",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SparqlQueryResponse"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientError"
                }
              }
            }
          },
          "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
      }
    },
    "schemas": {
      "ClientError": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "timestamp": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        ]
      },
      "ServerError": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "timestamp": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        ]
      },
      "SparqlQueryResponse": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "query": {
                "type": "string"
              },
              "category": {
                "type": "string"
              },
              "description": {
                "type": "object",
                "properties": {
                  "@language": {
                    "type": "string",
                    "description": "language"
                  },
                  "@value": {
                    "type": "string",
                    "description": "text"
                  }
                }
              },
              "created": {
                "type": "string",
                "format": "date-time"
              },
              "updated": {
                "type": "string",
                "format": "date-time"
              },
              "sharedWith": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        ]
      }
    }
  },
  "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
  }
}
```