Package bw :: Package poseidon :: Module neurons :: Class L
[frames] | no frames]

Class L

object --+    
         |    
         N --+
             |
            L

This class represents Links between Neurons. Links are lazy loaded. The basic version does not contain the subject, verb or object Neurons - but instead just contains their raw ids. These neurons are loaded at the time of first-access.

Instance Methods
 
get_s_id(self)
Returns the 32 character hex representation of the id of the subject prefixed with a '!'
 
get_raw_s_id(self)
Returns the raw 16 byte representation of the id of the subject
 
get_v_id(self)
Returns the 32 character hex representation of the id of the verb prefixed with a '!'
 
get_raw_v_id(self)
Returns the raw 16 byte representation of the id of the verb
 
get_o_id(self)
Returns the 32 character hex representation of the id of the object prefixed with a '!'
 
get_raw_o_id(self)
Returns the raw 16 byte representation of the id of the object
 
__getstate__(self)
 
__setstate__(self, d)
 
__init__(self, neurons, i, s, v, o, c, d)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__str__(self)
str(x)
 
__repr__(self)
repr(x)
 
contains(self, uid)
Returns: Returns True if this link contains uid.
 
__cmp__(self, x)
 
json(self)

Inherited from N: __hash__, dictionary, getCurrentData, get_id, get_raw_id, modify

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables
  s = property(fget= __GetS, fset= None, fdel= None, doc= "The s...
  v = property(fget= __GetV, fset= None, fdel= None, doc= "The v...
  o = property(fget= __GetO, fset= None, fdel= None, doc= "The o...
  name = property(fget= __GetName, fset= None, fdel= None, doc= ...

Inherited from N: createdOn, currentData, id, modified

Properties

Inherited from object: __class__

Method Details

__init__(self, neurons, i, s, v, o, c, d)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

contains(self, uid)

 
Returns:
Returns True if this link contains uid. The checking is done recursively. @warning: Can be slow.

json(self)

 

Deprecated: Use the fmap.FunctionMap.select method instead


Class Variable Details

s

Value:
property(fget= __GetS, fset= None, fdel= None, doc= "The subject of th\
e link")

v

Value:
property(fget= __GetV, fset= None, fdel= None, doc= "The verb of the l\
ink")

o

Value:
property(fget= __GetO, fset= None, fdel= None, doc= "The object of the\
 link")

name

Value:
property(fget= __GetName, fset= None, fdel= None, doc= """The name of 
	the link. This is created by combining the names of the subject-verb-\
object.
	@warning: This will load all three neurons and can be slow. It should\
 never
	be used - except for debugging. If you wish to directly access a link\
, create
	an alias for it first via L{poseidon.Poseidon.addAlias}""")