Skip to content

Links between instances

flowchart LR
    I["Instance A"] -- "outgoing link" --> T["Instance B"]
    O["Instance C"] -- "incoming link" --> I

A link can point to a UUID or to any identifier. It may also refer to something that doesn't exist yet, and is connected as soon as the target appears.

With returnSummaryOfOutgoingLinks=true, each link in a response is enriched with details about its target. Clients can therefore show a list of linked items without loading them individually.

{
  "https://example.org/properties/author": {
    "@id": "https://example.org/people/ada",
    "_resolvedId": "b1b6e3a2-6e2a-4a1a-9d57-1f4f0a3c2e10",
    "@type": "https://example.org/types/Person",
    "_label": "Ada Lovelace",
    "_additionalLabel": "Mathematician",
    "_space": "common",
    "_hasOutgoingLinks": true,
    "_linkStatus": "resolved"
  }
}

_additionalLabel contains the values of the target type's searchable properties.

_linkStatus Meaning Details
resolved The target exists and you can read it All present
restricted The target exists but you can't read it _label, _additionalLabel, _space and _hasOutgoingLinks are null
unresolved No such target is known All null
GET /v4/instances/{id}/incomingLinks?stage=IN_PROGRESS

Returns the instances pointing at this one, grouped by linking property and then by linking type:

{
  "data": {
    "https://example.org/properties/author": {
      "https://example.org/types/Dataset": {
        "data": [
          {
            "@id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
            "@type": "https://example.org/types/Dataset",
            "_label": "Mouse cortex recordings",
            "_additionalLabel": null,
            "_space": "neuroscience",
            "_hasIncomingLinks": false,
            "_linkStatus": "resolved"
          }
        ],
        "total": 12,
        "size": 50,
        "marker": null,
        "nextMarker": "..."
      }
    }
  }
}
  • property and type narrow the result to one group or a selection of groups.
  • Each group has its own pagination (size defaults to 50). A nextMarker identifies its group, so requesting with a marker returns only that group.
  • Instances you can't read are listed as restricted, with _label, _additionalLabel, _space and _hasIncomingLinks set to null.

Neighbors

GET /v4/instances/{id}/neighbors?stage=IN_PROGRESS

Returns the neighborhood of an instance for a graph view: its incoming links and two levels of outgoing links. It contains only instances you can read.

Links normally resolve automatically when a target appears. If needed, an administrator can re-run the resolution for the whole graph.