Pular para o conteúdo
The Consortium

Intelligence APIOperational

shared_risk_graph_ontology_get_term

One ontology term with its relationships

Solicitação

Experimente

Available · No credits

https://api.nexustandards.com

GET/v1/ontology/terms/{id}

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

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

200 OKapplication/json

{
  "data": {
    "id": "string",
    "kind": "string",
    "label": "string",
    "relationships": {
      "out": [
        "…"
      ],
      "in": [
        "…"
      ]
    },
    "synonyms": [
      "string"
    ]
  },
  "meta": {
    "service": "string",
    "version": "string",
    "authority": "string",
    "state": "string",
    "untrusted": [
      "string"
    ]
  }
}

A term by id (for example hazard:atmo.thermal.heatwave or indicator:nis:IND.MAC.output.gdp.usd), with its metric (unit, measure type, polarity; composite components and weights) and its relationships both ways: broader, trigger, amplify, compound-with, reduces, measures, component-of, covers-domain, crosswalk, uses-hazard.

Parameters

Parameters

  • idobrigatório

    path · string

    Term id in the ontology register::, where the record id is an NHS-1 or NIS-1 id, a Nexus Standards id or an Index series code

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…

  • 404Problem, RFC 9457

    NOT_FOUND, VERSION_NOT_IN_SNAPSHOT or NOT_YET_PUBLISHED

  • 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

Começar

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