Skip to content

Core concepts

A handful of ideas explain almost everything Core does.

flowchart TB
    subgraph space["Space: neuroscience"]
        a["Instance<br/>type: Dataset"]
        b["Instance<br/>type: Person"]
    end
    subgraph other["Space: common"]
        c["Instance<br/>type: Organization"]
    end
    a -- "author (link)" --> b
    b -- "affiliation (link)" --> c

Instance

An instance is one metadata record, written as a JSON-LD document. It has a UUID assigned by Core, or chosen by you when you create it.

{
  "@id": "b1b6e3a2-6e2a-4a1a-9d57-1f4f0a3c2e10",
  "@type": "https://example.org/types/Person",
  "https://example.org/properties/name": "Ada Lovelace",
  "_space": "common"
}

Property names are full IRIs, so that data from different sources can be combined without name clashes. Properties starting with _ are not part of your data. Core adds them to responses.

Identifiers

Besides its UUID, an instance can carry any number of identifiers: the values of http://schema.org/identifier, and any @id you send when you create it. Links can point to either a UUID or an identifier, and you can look up instances by identifier. This makes it easy to import data that already has its own IDs.

Identifiers are kept: updating an instance never drops one. You can remove an identifier explicitly, as long as no link points to it.

Space

A space is a container for instances, comparable to a namespace or project. Permissions are typically granted per space, for example "editor in neuroscience".

Every user also has a private space, addressed as myspace, in which they are always administrator.

See Spaces.

Type and property

Every instance has a type. You don't need to define a type or property up front: Core registers them when data using them arrives, and keeps statistics on how they are used. You can add a specification later to give them a display name, a color or a label property.

Stage

Every instance can exist in up to two stages:

Stage Meaning
IN_PROGRESS The working draft. All writes go here.
RELEASED The published version. Only changes when someone releases the instance.

Read endpoints take a stage parameter that selects which of the two you get. See Release workflow.

Contribution

Several people can write to the same instance. Each user has their own contribution, and Core merges all contributions into the instance that everybody sees: for each property, the most recent value wins. Nothing another person entered is overwritten in their contribution, and you can see the competing values with returnAlternatives.

flowchart LR
    A["Contribution by Alice<br/>name: 'Ada' (Monday)<br/>birth: 1815 (Monday)"] --> M(("merge:<br/>latest value<br/>per property"))
    B["Contribution by Bob<br/>name: 'Ada Lovelace' (Tuesday)"] --> M
    M --> R["Instance<br/>name: 'Ada Lovelace'<br/>birth: 1815"]

Core calls this merging step inference or reconciliation.

A property's value can refer to another instance or be nested within the instance:

{
  "@type": "https://example.org/types/Dataset",
  "https://example.org/properties/author": {
    "@id": "b1b6e3a2-6e2a-4a1a-9d57-1f4f0a3c2e10"
  },
  "https://example.org/properties/license": {
    "@type": "https://example.org/types/License",
    "https://example.org/properties/name": "CC BY 4.0"
  }
}
  • A link is an object containing only @id. Its target may not exist yet. It is resolved as soon as the target appears.
  • An embedded instance is an object with an @type and no @id. It belongs to the instance hosting it, but it is reported in the type statistics as if it were a standalone type.

Roles and functionalities

What a user may do is defined by roles, which each bundle functionalities such as READ or RELEASE. A role applies either globally or to one space. An invitation grants someone without a role limited access to specific instances. See Roles and permissions.

Scope

A scope names the instances related to an instance for a specific purpose, such as "a dataset with its authors and their affiliations". Scopes are defined per type, and are used for invitations and to assess the release status of a whole subgraph. See Scopes.

Query

A query describes which type to start from, which relations to follow and what the result should look like. You can run it once or store it in a space. See Queries.