hestia_earth.utils.api.node_exists

hestia_earth.utils.api.node_exists(node_id, node_type=<SchemaType.TERM: 'Term'>)[source]

Checks if a node exists on the Hestia Database.

Parameters
  • node_id (str) – The @id of the Node.

  • node_type – The @type of the Node.

Returns

True if the node exists, False otherwise.

Return type

bool