Get a public entry
const url = 'https://api.modeldesk.io/public/catalog/example/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/records/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';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/datasets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/records/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0One entry of a publicly visible dataset of the organization, as the dataset’s latest release holds it: its name, type and IRI, what it holds in the model’s order, its parts as nested fields, the public entries it points at, and the public entries pointing at it, grouped by the dataset they are in and the property they point through. A reference to an entry that is not public, or of another organization, is left out, and so is how many were. JSON unless the request accepts text/turtle, application/ld+json, application/n-triples or application/rdf+xml by name; then the entry as RDF, written as the public export writes it. Needs no sign-in.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The entry. Carries Cache-Control: no-store.
A public entry as its public page shows it, at the latest release of its dataset.
object
An organization as the public catalog names it. The slug is its address on the shared catalog host; the hosting and namespaces are the inputs of its address map, from which a page turns an element’s IRI into the address the organization serves it at.
object
Where an organization’s catalog is served: {"shared": true} on the shared catalog host, or {"shared": false, "primaryDomain": ..., "domains": [...]} on the organization’s own domains.
object
The active domain that carries the organization page; absent when shared.
Every active domain, the primary among them; absent when shared.
The namespaces the organization publishes under, oldest first; empty when it registered none.
A namespace an organization publishes under.
object
An absolute http(s) IRI prefix ending in /, as the administrator registered it.
Whether this namespace’s candidate wins a cross-namespace ambiguity at resolve time.
A release of a model. Every version is a release, so the latest version is the latest release; recency is createdAt, never the name.
object
The IRI the release gives the entry.
The values its dataset names it by, as terms; empty when it holds none.
The type of public entries, as the data schema of the release they are read at names it.
object
The backing-model element the type was derived from.
Its name, by language.
object
What it is, by language; absent where the answer names the type only.
object
The names of the types it specialises, each by language; absent where it specialises none.
object
The public model a public entry’s type is defined in.
object
The name of the release the model’s public page shows; absent where the page shows the model’s working copy, as for a model with no release.
What it holds, property by property, in the model’s order; a property holding nothing is absent.
What a public entry, or a part of one, holds under one property: its values, the public entries it points at, the public models, model elements and datasets it points at, and its parts. A list it holds nothing in is absent.
object
The backing-model element the property was derived from.
The property’s name, by language.
object
The values, as terms.
A public entry another one points at, or that points at another, by name.
object
The values its dataset names it by, as terms; empty when it holds none.
The models, model elements and datasets it points at, in the order it holds them; one that is not public is absent, and nothing says how many were.
A model, an element of a model or a dataset a public entry points at, as the entry’s page names it: only one public under its own contract in the entry’s organization, read as its own public page reads it.
object
The public model, for a model and for an element of one.
The element, where the model’s public page shows it; absent for an element named without a link, which the page shows at no address.
The dataset whose entries are public.
The model’s or dataset’s name, or the element’s label.
For an element, the name of its model.
For a model, what its metadata says it is, by language.
One language-tagged text; lang is null for a text without a language.
object
A language tag such as nl or en.
For a model, who its metadata names as publishing it, else the organization publishing it, as the model’s public page says.
What tells it apart from the others of its field in this answer, and nowhere else: its place among them. Two may read alike, as elements named without a link can.
One part a public entry holds inside itself, with what it holds.
object
The public entries of one dataset that point at an entry through one property.
object
The property’s name, by language, as the entry form names it.
object
The type of public entries, as the data schema of the release they are read at names it.
object
The backing-model element the type was derived from.
Its name, by language.
object
What it is, by language; absent where the answer names the type only.
object
The names of the types it specialises, each by language; absent where it specialises none.
object
The dataset the entries pointing are in, which names the group.
object
The entries, at most 50.
A public entry another one points at, or that points at another, by name.
object
The values its dataset names it by, as terms; empty when it holds none.
Whether more entries point at it this way than are named.
Entries it points at, or that point at it, are left out because the datasets holding them cannot be read right now.
It points at more public models, model elements and datasets than one page names (20 models, 200 elements, 200 datasets); the rest are left out. What is not public is never counted.
Always false; kept for clients of the previous release.
What a dataset is to the public catalog, which picks its public pages: a value list is one table with a page per value; metadata records are descriptions. Absent, or a value a client does not know, reads as VALUE_LIST.
The values of the property its dataset sums its entries up by, as terms (shown as the definition of a value): the dataset’s setting where the release’s schema holds it as text, else the one text property outside the identity and the naming property; empty for none.
The values of the property its dataset shows its entries by as their code, as terms: the dataset’s setting where the release’s schema holds it as a value, else the identity where it is one value property; empty for none.
Another public value of the same value list, by its code and its name.
object
The values of the list’s code, as terms; empty where it holds none or the list has none.
The values the list names it by, as terms; empty where it holds none.
Another public value of the same value list, by its code and its name.
object
The values of the list’s code, as terms; empty where it holds none or the list has none.
The values the list names it by, as terms; empty where it holds none.
The property code is read from, as the propertyId of its field in fields; omitted where its dataset shows its entries by no code.
The property summary is read from, as the propertyId of its field in fields; omitted where its dataset sums its entries up by none.
The property name is read from, as the propertyId of its field in fields; omitted where its dataset names its entries by none.
Example
{ "fields": [ { "things": [ { "kind": "MODEL" } ] } ], "kind": "VALUE_LIST"}Example generated
exampleHeaders
Section titled “Headers”The entry is not public: it does not exist, its dataset is not publicly visible, the dataset’s latest release does not hold it, or it belongs to another dataset or organization; the answer is the same for all of them.
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" } ]}The entry is public but cannot be read right now, or as many public reads run as the platform runs at once, whether it is asked as JSON or as RDF; the answer names nothing of why.
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" } ]}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" } ]}