Lewati ke konten
The Consortium

Intelligence APIOperational

shared_risk_graph_ontology_objects

Find objects

Permintaan

Coba

Available · No credits

https://api.nexustandards.com

GET/v1/ontology/objects

curl -s "https://api.nexustandards.com/v1/ontology/objects"
const res = await fetch("https://api.nexustandards.com/v1/ontology/objects");
const { data, meta } = await res.json();
import json, urllib.request

req = urllib.request.Request("https://api.nexustandards.com/v1/ontology/objects")
with urllib.request.urlopen(req) as res:
    answer = json.load(res)

200 OKapplication/json

{
  "data": [
    {
      "id": "string",
      "type": "string",
      "label": "string",
      "realm": "string",
      "provenance": {
        "ref": "…",
        "source": "…",
        "licence": "…",
        "attribution": "…",
        "date": "…"
      }
    }
  ],
  "meta": {
    "service": "string",
    "version": "string",
    "authority": "string",
    "state": "string",
    "untrusted": [
      "string"
    ]
  }
}

Objects of the ontology, filtered by type (with its subtypes), realm, a bounding box, an ADM unit (with the units within it), an H3 cell (resolution 5 to 9) and a date the object is valid at; q ranks by BM25. Every object names its provenance, epistemic state and confidence. Objects of networks outside this graph are never listed.

Parameters

Parameters

  • qopsional

    query · string

    Search words (1 to 200 characters)

  • typeopsional

    query · string

    Type id; its subtypes are included

  • realmopsional

    query · string

    Nexus, public-reference or open-data

  • bboxopsional

    query · string

    west,south,east,north in degrees (WGS 84)

  • withinopsional

    query · string

    Jurisdiction object id, for example jurisdiction:CAN or jurisdiction:CAN.ontario

  • h3opsional

    query · string

    H3 cell index at resolution 5 to 9

  • atopsional

    query · string

    Date YYYY, YYYY-MM or YYYY-MM-DD the object must be valid at

  • limitopsional

    query · integer

    Records per page, 1 to 200 (default 50)

  • offsetopsional

    query · integer

    Records to skip (default 0); bounded snapshot only

Answers

Responses

  • 200

    Records with provenance

  • 304

    Not modified: If-None-Match matched the strong ETag

  • 400Problem, RFC 9457

    BAD_PAGE, BAD_QUERY, BAD_DIMENSION, BAD_REL, BAD_CURSOR, BAD_ID, BAD_JSON or BAD_BODY

  • 401Problem, RFC 9457

    The Authorization header carries a credential this API does not accept (code INVALID_KEY): not an API key, not an access token, or one that is expired or revoked. Send no Authorization header for the…

  • 402Problem, RFC 9457

    The call carries credits and the account behind the key cannot pay for it (code CREDITS_EXHAUSTED, with reason no_credits or not_linked), or the call is part of a Pro version the account's plan does…

  • 414Problem, RFC 9457

    The request address is longer than 8192 characters (code URI_TOO_LONG). A single query value over 4096 characters, more than 64 parameters or a path segment over 256 characters is refused with 400.

  • 429Problem, RFC 9457

    RATE_LIMITED: open-tier limit; Retry-After says when to retry

  • 500Problem, RFC 9457

    INTERNAL

  • 503Problem, RFC 9457

    ONTOLOGY_OBJECTS_OFF: the object ontology is not loaded on this instance

Mulai

Get a key with a free account, or choose who the account is for, its seats and any council, and see your workstation first.