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

Class rdfAbstract

source code

object --+
         |
        rdfAbstract
Known Subclasses:

Abstract base class for descriptors Descriptors are to map class instance variables to predicates optional cacheName is where to store items range_type is the rdf:type of the range of this predicate
Instance Methods [hide private]
 
__init__(self, pred, cacheName=None, range_type=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__delete__(self, obj)
deletes or removes from the database triples with: obj.resUri as subject and self.pred as predicate if the object of that triple is a Literal that stop if the object of that triple is a BNode then cascade the delete if that BNode has no further references to it i.e.
source code

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

Properties [hide private]
  range_class

Inherited from object: __class__

Method Details [hide private]

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

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

__delete__(self, obj)

source code 
deletes or removes from the database triples with: obj.resUri as subject and self.pred as predicate if the object of that triple is a Literal that stop if the object of that triple is a BNode then cascade the delete if that BNode has no further references to it i.e. it is not the object in any other triples.

Property Details [hide private]

range_class

Get Method:
unreachable.range_class(self) - return the class that this descriptor is mapped to through the range_type