---
title: "compare schemas"
method: POST
path: "/api/compare"
tags: ["comparison"]
---

# compare schemas

`POST /api/compare`

## Request

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

Compare two given graphs

## Headers

- `Origin` string

## Request body

- object
  - `fileA` string, binary, required: The first graph file.
  - `fileB` string, binary, required: The second graph file.

## Response `200`

OK

- TriplePackageChange[]
  - `changes` TriplePropertyChange[]
    - `from` string
    - `predicate` string
    - `to` string
  - `classes` TripleClassChange[]
    - `associations` TripleResourceChange[]
      - `changes` TriplePropertyChange[]
        - `from` string
        - `predicate` string
        - `to` string
      - `label` string
      - `uri` string
    - `attributes` TripleResourceChange[]
      - `changes` TriplePropertyChange[]
        - `from` string
        - `predicate` string
        - `to` string
      - `label` string
      - `uri` string
    - `changes` TriplePropertyChange[]
      - `from` string
      - `predicate` string
      - `to` string
    - `enumEntries` TripleResourceChange[]
      - `changes` TriplePropertyChange[]
        - `from` string
        - `predicate` string
        - `to` string
      - `label` string
      - `uri` string
    - `label` string
    - `uri` string
  - `external` boolean
  - `label` string
  - `uri` string

---

[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)
