Predicate#

class geodesic.entanglement.object.Predicate(**pred)[source]#

Attributes

category

(str) - the category of this predicate

domain

(str) - the domain of this predicate

edge_attributes

(dict) - a dictionary of edge attributes.

full_name

Short, readable name for this predicate.

name

(str) - the name of this predicate, describes the relationship very briefly

type

(str) - the type of this predicate

Methods

clear()

copy()

from_full_name(full_name[, edge_attributes])

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.

items()

keys()

pop(k[,d])

If key is not found, default is returned if given, otherwise KeyError is raised

popitem()

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

setdefault(key[, default])

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

update(*mapping, **kwargs)

values()