Skip to content

Get the RDF representation of what a request path on an organization's catalog names

GET
/public/catalog/{orgSlug}/rdf
curl --request GET \
--url 'https://api.modeldesk.io/public/catalog/example/rdf?host=example&path=example'

The RDF branch of an identity address. The path is resolved exactly as the resolve operation resolves it (the organization’s namespaces, custom hosting by host, the public contract on every request), and the answer is chosen from Accept by one matrix. For a model (a canonical-IRI hit) it is the released artifact when the model’s family offers the requested media type, as the document endpoint serves it, else the model’s DCAT description in that serialization. For an element it is the element’s description: for an RDF family the concise bounded description of its subject taken from the released artifact, for any other a label, a type and the model it is defined by. For a document IRI with hash terms under it the whole artifact is served, else the model’s description. Only concrete RDF media ranges (text/turtle, application/ld+json, application/rdf+xml, application/n-triples, and the family’s RDF formats) with a quality above zero select; text/html, */* or no Accept is refused with the list of what the address offers. Never a page. Needs no sign-in.

orgSlug
required
string
host
required
string

The host the catalog received the request on.

path
required
string

The request path relative to the organization’s catalog base, without a leading slash, exactly as the client received it: still percent-encoded. Encoded once more to travel in the query; the server takes that layer off.

version
string

The snapshot of the model to serve, URL-encoded: the name of one of its releases, or @working (exactly, case-sensitive) for its working version, the head of its main branch, when its owner publishes it. Absent, its default snapshot: the latest release, or the working version for a model without a release that publishes it. A pin that matches nothing the model offers answers the same 404 as a model that is not publicly visible. On the resolve operation it names a snapshot the hit’s model has to offer, while the hit itself is found at the latest release.

If-None-Match
string

The representation chosen. Carries the chosen Content-Type, Cache-Control: public, max-age=300 (max-age=60 when the snapshot served is the working version), Vary: Accept, Content-Security-Policy: sandbox; default-src 'none', X-Content-Type-Options: nosniff and an ETag over the content and the representation.

string
Cache-Control
string
ETag
string
Vary
string

If-None-Match names the representation the caller holds and the address still resolves; the contract is checked before any 304. Carries the same ETag, Cache-Control and Vary.

Nothing publicly visible answers: the path is absent, private, unreleased or under no registered namespace, or no organization carries the slug; the cases are indistinguishable and the body is the catalog’s shared one. Carries Cache-Control: public, max-age=60, Vary: Accept and the sandbox and nosniff of a hit.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}
Cache-Control
string
Vary
string

Accept names no RDF media type the address can be served as. The problem’s detail and its available property list the media types that would have answered, the artifact’s first. Carries Cache-Control: public, max-age=60, Vary: Accept and the sandbox and nosniff of a hit.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}
Cache-Control
string
Vary
string

Encoding or parsing the release would take a permit and every one is in use. Refused at once rather than queued; the same request succeeds once running work ends. Carries Retry-After in seconds and Cache-Control: no-store.

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}
Retry-After
integer
Cache-Control
string

Error

Media typeapplication/problem+json

An RFC 9457 problem document, always sent as application/problem+json.

object
type

Present only on a typed refusal, whose own schema requires it and fixes its value. An untyped problem omits it, which RFC 9457 defines as about:blank: the status and title are all there is to branch on.

string format: uri
title
required
string
status
required
integer
detail
required
string
instance

The path of the request that was refused. Absent when the request was refused before it reached the application’s handlers: a 401 for a missing or unusable access token, and a 403 for a service account whose scopes do not reach the route.

string
violations

Present on a 400 raised by request-body validation, and on a 422 that refuses named fields (a malformed slug or namespace prefix). Each entry names the rejected property, so a client can attach the message to the field that caused it rather than showing one error for the whole form.

Array<object>
object
property
required
string
message
required
string

Example generated

{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"violations": [
{
"property": "example",
"message": "example"
}
]
}