Skip to main content
Ctrl+K
geodesic-python-api main documentation - Home geodesic-python-api main documentation - Home
  • Getting Started
  • Learn
  • API Reference
  • Blog
  • GitHub
  • PyPI
  • LinkedIn
  • Slack
  • Getting Started
  • Learn
  • API Reference
  • Blog
  • GitHub
  • PyPI
  • LinkedIn
  • Slack

Section Navigation

  • Object
  • Observable
  • Entity
  • Event
  • Property
  • Link
  • Model
  • Concept
  • Predicate
  • Connection
  • get_objects
  • add_objects
  • delete_objects
  • add_connections
  • delete_connections
  • get_traits
  • get_predicates
  • add_predicates
  • Graph
  • Link

Link#

class geodesic.entanglement.object.Link(**obj)[source]#

Attributes

alias

(str) - a short name/description for this object - doesn't need to be unique

category

(str) - the category of this object

description

(str) - a text description of this object

domain

(str) - the domain of this object

full_name

Full name for an object.

geometry

(str, dict, bytes, BaseGeometry) - a geometry for this object.

graph

If this object belongs to a graph, will return that parent graph.

href

(str) - a link to an external resource

item

(dict) - an arbitrary dictionary of info about this object.

media_type

(str) - media type of the link

name

(str) - the name of this object, unique to the project

object_class

(str) - the class of this object (e.g. Observable, Entity, Dataset...).

project

the project/subgraph this object belongs to

type

(str) - the type of this object

uid

Get the object's UID, if set, None otherwise.

xid

(str) - An external reference id to another graph or system that references this object.

Methods

clear()

clone([project])

Returns a new Object that is a copy of this Object.

connect_with(predicate, object)

Adds a connection from this Object to another using the specified Predicate.

copy()

create()

Create a new Object in Entanglement.

delete([hard, show_prompt])

Deletes this object from Entanglement.

fromkeys([value])

Create a new dictionary with keys from iterable and values set to value.

get(key[, default])

Return the value for key if key is in the dictionary, else default.

get_connections([version_datetime])

Returns nearest neighbor connections to this object.

items()

keys()

load([uid])

Load an object given a UID.

pop(k[,d])

If the key is not found, return the default if given; otherwise, raise a KeyError.

popitem()

Remove and return a (key, value) pair as a 2-tuple.

save()

Updates an existing Object in Entanglement.

setdefault(key[, default])

Insert key with a value of default if key is not in the dictionary.

update(*mapping, **kwargs)

values()

On this page
  • Link

This Page

  • Show Source

© Copyright 2024, SeerAI.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.