Get the RDF representation of what a request path on an organization's catalog names
const url = 'https://api.modeldesk.io/public/catalog/example/rdf?host=example&path=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”The host the catalog received the request on.
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.
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.
Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”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.
Example generated
exampleHeaders
Section titled “Headers”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.
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}Headers
Section titled “Headers”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.
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}Headers
Section titled “Headers”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.
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}Headers
Section titled “Headers”default
Section titled “default”Error
An RFC 9457 problem document, always sent as application/problem+json.
object
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.
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.
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.
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "example", "violations": [ { "property": "example", "message": "example" } ]}