Skip to content

List datasets

GET
/datasets
curl --request GET \
--url https://api.modeldesk.io/datasets \
--header 'Authorization: Bearer <token>'

Lists the datasets the caller may see. Scoped like models are: an organization’s datasets are visible to members holding a seat on the backing model’s metamodel, and a dataset created as INDIVIDUAL only to its creator. Narrowed as the model list is: by owning organization (one the caller is not a member of lists nothing; a dataset is always owned by an organization), and by the backing model’s metamodel. Narrowed further by backing model, and optionally by data entity type, the response also counts each dataset’s entries at the head of its main branch.

ownerId
string format: uuid
metamodel
string format: uuid
backingModelId
string format: uuid

Only datasets backed by this model; the response then carries entryCounts.

dataEntityTypeId
string format: uuid

Only datasets holding this data entity type. Requires backingModelId (400 without it).

OK

Media typeapplication/json
object
items
Array<object>
object
id
required
string format: uuid
name
required
string
owner
object
id
required
string format: uuid
type
required

USER is a person, MACHINE a service account, and SYSTEM the platform itself, whose commits (metamodel seeding and re-pins) the commit log hides unless asked for them.

string
Allowed values: USER ORGANIZATION SYSTEM MACHINE
name

The display name, where one is known: a person’s from their account, a service account’s as stored with what it wrote. Left out for the platform and for a person whose account holds no name.

string
accessMode

Who inside the owning organization may reach a model. Optional on creation and update: a creation that omits it takes the owner organization’s default access mode (falling back to SHARED).

string
Allowed values: SHARED INDIVIDUAL
createdBy
object
id
required
string format: uuid
name
string
createdAt
required
string format: date-time
metamodelId
required

The backing model’s metamodel, denormalized; a seat is held per metamodel.

string format: uuid
backingModelRef
required

The state of a model a dataset takes its shape from: a release, or a snapshot of the model’s working copy at a commit. The name is what an author picks; the version and commit are what it resolved to when the pin was written.

object
modelId
required
string format: uuid
versionName
required

A release name, or @HEAD for a snapshot of the working copy.

string
versionId

The release the name resolved to; absent for a snapshot of the working copy.

string format: uuid
commitId
required
string format: uuid
dataEntityTypeId
required

The data entity type of the backing release’s schema whose entries this dataset holds.

string format: uuid
namedBy

The text property of the data entity type, declared on it or a supertype, that names an entry wherever it is shown from outside its own row. Absent when none is set.

string format: uuid
recordBaseIri

The absolute IRI the entries are given IRIs under when they are written as RDF. Absent when none is set, in which case they are given IRIs under urn:modeldesk:dataset:{id}/.

string
recordIriPropertyId

The text property of the data entity type, declared on it or a supertype, whose value an entry’s IRI is made from. Absent to make it from the type’s identity. Kept when the dataset moves to a release that no longer declares it, whose entries are then given the IRIs made from the identity.

string format: uuid
publicRecords

Whether the dataset and its entries are shown in the organization’s public catalog. Alone it publishes nothing: a dataset is publicly visible once it also has a release, is shared, and its organization publishes (a slug, an active subscription and the catalog feature).

boolean
resourceKind

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.

string
Allowed values: VALUE_LIST METADATA_RECORDS
summaryPropertyId

The text property that sums up an entry on the public pages, shown as the definition on a value list’s. Absent to take the default. Kept when the dataset moves to a version that no longer declares it, where the default applies.

string format: uuid
codePropertyId

The value property a value list’s public pages show an entry by as its code. Absent to take the default. Kept when the dataset moves to a version that no longer declares it, where the default applies.

string format: uuid
base

What a dataset made from a begrippenkader or another concept model was made from: a scope its binding offers and the element picked for it. The release is the dataset’s backing pin. Absent on a dataset made from no base.

object
scopeClassifierId
required
string format: uuid
scopeElementId
required
string format: uuid
levels

Which rows a value may point at, unless a row says otherwise.

string
Allowed values: ALL MOST_SPECIFIC
namespaces

The namespaces the release the dataset is pinned to declares, by which a value that is an IRI in one of them is shown as prefix:localName. Taken when the dataset is made and again when it moves; the values themselves stay full IRIs.

Array<object>
object
prefix
required
string
uri
required
string
dependencies
Array<object>

A dataset this dataset’s rows may reference, pinned as @HEAD or a release name. The version and commit are what the selector resolved to when the pin was written; versionId is absent for a @HEAD pin, because a working head is not a release.

object
datasetId
required
string format: uuid
versionRef
required
string
versionId
string format: uuid
commitId
required
string format: uuid
behindDependencies

The @HEAD dependencies, by dataset id, whose target has written or removed an entry on its main since the commit pinned, so that moving the pin would take those changes in. Said only by the read of one dataset, and absent when no pin is behind.

Array<string>
modelDependencies

The models this dataset’s rows may point into, each at the state a reference to it or to one of its elements is read at. Absent when none is declared.

Array<object>

A model this dataset’s rows may point into, pinned as @HEAD (a snapshot of its working copy) or a release name. The version and commit are what the selector resolved to when the pin was written; versionId is absent for a @HEAD pin.

object
modelId
required
string format: uuid
versionRef
required
string
versionId
string format: uuid
commitId
required
string format: uuid
behindModelDependencies

The model dependencies, by model id, that a newer state of their model has passed: a release made after the one pinned, or for a @HEAD pin a head moved since or a release cut where the pin stands. Said only by the read of one dataset, and absent when no pin is behind.

Array<string>
entriesToCheck

Whether the entries of the branch read are still to be judged against the pins it stands on: a change of its dependencies or of its backing release was recorded, by a change of either or by a merge, and the judging after it did not finish, or judged pins that had moved on by its end. A branch made from such a branch says so too, and a release made while main does records no backing version. POST /datasets/{datasetId}/rows:check judges them. Said only by the read of one dataset, and absent when every entry stands judged.

boolean
partsEnabled

Whether the backend that answered writes the parts an entry holds inside itself; where it does not, a client shows such a property as references. Every current backend writes them, so the read of one dataset always says true. Said only by the read of one dataset.

boolean
entriesChecked

What judging the entries of the branch again found, on the answer to a change of a dataset or a model its entries refer to: how many no longer fit, and which of those fitted before. A change that left the versions as they were and judged nothing answers with nothing found. Absent everywhere else, and from a backend that does not answer it.

object
rowsValidated
required
integer format: int64
rowsWithViolations
required
integer format: int64
flaggedRows

The first few rows that do not conform, at most twenty of them.

Array<string>
rowsWithWarnings

How many rows conform but carry warnings, such as a value outside a list that is not strict.

integer format: int64
rowsNewlyFlagged

How many of the rows that do not conform conformed before the pass, or carried no verdict. A row that did not conform before either is not counted, whatever else the pass found wrong with it. Absent from a backend that does not tell them apart.

integer format: int64
newlyFlaggedRows

The first few of the rows counted in rowsNewlyFlagged, at most twenty of them.

Array<string>
entryCounts

Entries per listed dataset at the head of its main branch, keyed by dataset id. Present only on a list filtered by backing model.

object
key
additional properties
integer format: int64
newerBaseReleases

For each listed dataset made from a base whose base has a newer release than the one it is pinned to, that release’s name, keyed by dataset id. Absent when no listed dataset is behind.

object
key
additional properties
string

Example

{
"items": [
{
"owner": {
"type": "USER"
},
"accessMode": "SHARED",
"resourceKind": "VALUE_LIST",
"base": {
"levels": "ALL"
}
}
]
}

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"
}
]
}