---
title: "GET /?view=constraints"
method: GET
path: "/?view=constraints"
---

# GET /?view=constraints

`GET /?view=constraints`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/tetherless-world/apis/whyis/docs/%3Fview=constraints/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `uri` string, uri, required

## Response `200`

Lists OWL property restrictions on the specified class and its properties.

- object[]
  - `class` string, url: The URI of the queried class.
  - `property` string, url: The URL of the property that this restriction is on.
  - `propertyLabel` string: A human-readable label for the property that this restriction is on
  - `propertyType` string, url: The `rdf:type` of this property; or else whichever of `owl:DatatypeProperty` or `owl:ObjectProperty` is most applicable
  - `range` string, url: The URI of the range of the constraint.
  - `rangeLabel` string: A human-readable label for the range of this restriction.
  - `superClass` string, url: The URI of the class that is the domain of the constraint.
  - `extent` string, url: The URI of an OWL property describing the extent of this constraint. For example, whether a range constraint is `owl:someValuesFrom` or `owl:allValuesFrom`, or whether a cardinality constraint is `owl:minCardinality`, `owl:maxCardinality`, or `owl:exactCardinality`.
  - `cardinality` unknown

## Changes

- **2019-12-18** `de67ef0df46f`: 1 breaking
  - the `items/extent` response's property type changed from no type to `string`, and format from no format to `url` for status `200`
- **2019-12-18** `b0a20f88a298`: 1 breaking
  - the `items/extent` response's property type changed from `string` to no type, and format from `url` to no format for status `200`
- **2019-12-16** `0693369a3c5e`: 1 breaking
  - the `items/extent` response's property type changed from no type to `string`, and format from no format to `url` for status `200`
- **2019-12-05** `bc4045d9aea4`: 1 breaking, 1 warning
  - added the new path request parameter `uri`
  - deleted the `query` request parameter `uri`
- **2019-12-04** `2361777ee44a`: 2 info
  - added the optional property `items/cardinality` to the response with the `200` status
  - added the optional property `items/extent` to the response with the `200` status

[Operation history](https://skmtc.dev/tetherless-world/apis/whyis/changes/%3Fview=constraints/get.md)

---

[API](https://skmtc.dev/tetherless-world/apis/whyis.md) - [All operations](https://skmtc.dev/tetherless-world/apis/whyis/llms.txt) - [OpenAPI document](https://skmtc.dev/tetherless-world/apis/whyis/revisions/45280f4d6152?raw)
