Entity#
- class geodesic.entanglement.object.Entity(**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_nameFull name for an object.
geometry(str, dict, bytes,
BaseGeometry) - a geometry for this object.graphIf this object belongs to a graph, will return that parent graph.
item(dict) - an arbitrary dictionary of info about this object.
name(str) - the name of this object, unique to the project
object_class(str) - the class of this object (e.g. Observable, Entity, Dataset...).
projectthe project/subgraph this object belongs to
type(str) - the type of this object
uidGet 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()