Package rdfalchemy :: Module descriptors :: Class rdfBest
[hide private]
[frames] | no frames]

Class rdfBest

source code

 object --+        
          |        
rdfAbstract --+    
              |    
      rdfSingle --+
                  |
                 rdfBest
Known Subclasses:

This is a Discriptor that returns one value that is the "best" result out of possible multiple matches

returns a single value or None

It is the responsibility of the select_fun to return a default like choices[0] if no "Best" is found

Instance Methods [hide private]
 
__init__(self, pred, select_fun=None, cacheName=None, range_type=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__get__(self, obj, cls) source code

Inherited from rdfSingle: __set__

Inherited from rdfAbstract: __delete__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from rdfAbstract: range_class

Inherited from object: __class__

Method Details [hide private]

__init__(self, pred, select_fun=None, cacheName=None, range_type=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__get__(self, obj, cls)

source code 
Overrides: rdfSingle.__get__