---
title: "Search the graph"
method: POST
path: "/api/search"
tags: ["dataset"]
---

# Search the graph

`POST /api/search`

## Request

- The document declares no server URL.
- Auth: none declared

Searches the given graph for a specific query

## Query parameters

- `query` string, required

## Headers

- `Origin` string

## Request body

- SearchFilter: The scope where the search is performed.
  - `packageUUID` string
  - `schemaName` string
  - `workspaceName` string

## Response `200`

OK

- SearchResults
  - `externalSearchResults` SearchResult[]
    - `label` RDFSLabel
      - `lang` string
      - `value` string
    - `packageLabel` RDFSLabel
      - `lang` string
      - `value` string
    - `packageUUID` string, uuid
    - `parentClassUUID` string, uuid
    - `parentClassUri` URI: When deserializing (parsing json to object), it is possible to alternatively only put a String containing the whole uri. For serializing (parsing object to json), the object structure ist always used.
      - `prefix` string
      - `suffix` string
    - `schemaName` string
    - `type` 'CLASS' | 'PACKAGE' | 'ATTRIBUTE' | 'ASSOCIATION' | 'ENUMTYPE'
    - `uri` URI: When deserializing (parsing json to object), it is possible to alternatively only put a String containing the whole uri. For serializing (parsing object to json), the object structure ist always used.
      - `prefix` string
      - `suffix` string
    - `uuid` string, uuid
    - `workspaceName` string
  - `internalSearchResults` SearchResult[]
    - `label` RDFSLabel
      - `lang` string
      - `value` string
    - `packageLabel` RDFSLabel
      - `lang` string
      - `value` string
    - `packageUUID` string, uuid
    - `parentClassUUID` string, uuid
    - `parentClassUri` URI: When deserializing (parsing json to object), it is possible to alternatively only put a String containing the whole uri. For serializing (parsing object to json), the object structure ist always used.
      - `prefix` string
      - `suffix` string
    - `schemaName` string
    - `type` 'CLASS' | 'PACKAGE' | 'ATTRIBUTE' | 'ASSOCIATION' | 'ENUMTYPE'
    - `uri` URI: When deserializing (parsing json to object), it is possible to alternatively only put a String containing the whole uri. For serializing (parsing object to json), the object structure ist always used.
      - `prefix` string
      - `suffix` string
    - `uuid` string, uuid
    - `workspaceName` string

## Changes

- **2026-11-23** `91d142ef001a`: 6 warning, 6 info
  - removed the request property `datasetName`
  - removed the request property `graphUri`
  - removed the optional property `externalSearchResults/items/datasetName` from the response with the `200` status
  - removed the optional property `externalSearchResults/items/graphUri` from the response with the `200` status
  - …8 more

[Operation history](https://skmtc.dev/soptim/apis/rdfarchitect-backend/changes/api/search/post.md)

---

[API](https://skmtc.dev/soptim/apis/rdfarchitect-backend.md) - [All operations](https://skmtc.dev/soptim/apis/rdfarchitect-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/soptim/apis/rdfarchitect-backend/revisions/21e6477d8dd8?raw)
