Package rdflib :: Package syntax :: Package serializers :: Module RecursiveSerializer :: Class RecursiveSerializer
[show private | hide private]
[frames | no frames]

Type RecursiveSerializer

        object --+    
                 |    
AbstractSerializer --+
                     |
                    RecursiveSerializer

Known Subclasses:
TurtleSerializer

Method Summary
  __init__(self, store)
  addNamespace(self, prefix, uri)
  buildPredicateHash(self, subject)
Build a hash key by predicate to a list of objects for the given subject
  checkSubject(self, subject)
Check to see if the subject should be serialized yet
  indent(self, modifier)
Returns indent string multiplied by the depth
  isDone(self, subject)
Return true if subject is serialized
  orderSubjects(self)
  preprocess(self)
  preprocessTriple(self, (s, p, o))
  refCount(self, node)
Return the number of times this node has been referenced in the object position
  reset(self)
  sortProperties(self, properties)
Take a hash from predicate uris to lists of values.
  subjectDone(self, subject)
Mark a subject as done.
  write(self, text)
Write text in given encoding.
    Inherited from AbstractSerializer
  relativize(self, uri)
  serialize(self, stream, base, encoding)
Abstract method
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
unicode indentString = u'  '
int maxDepth = 10                                                                    
list predicateOrder = [u'http://www.w3.org/1999/02/22-rdf-syn...
list topClasses = [u'http://www.w3.org/2000/01/rdf-schema#Cla...

Method Details

buildPredicateHash(self, subject)

Build a hash key by predicate to a list of objects for the given subject

checkSubject(self, subject)

Check to see if the subject should be serialized yet

indent(self, modifier=0)

Returns indent string multiplied by the depth

isDone(self, subject)

Return true if subject is serialized

refCount(self, node)

Return the number of times this node has been referenced in the object position

sortProperties(self, properties)

Take a hash from predicate uris to lists of values. Sort the lists of values. Return a sorted list of properties.

subjectDone(self, subject)

Mark a subject as done.

write(self, text)

Write text in given encoding.

Class Variable Details

indentString

Type:
unicode
Value:
u'  '                                                                  

maxDepth

Type:
int
Value:
10                                                                    

predicateOrder

Type:
list
Value:
[u'http://www.w3.org/1999/02/22-rdf-syntax-ns#type',
 u'http://www.w3.org/2000/01/rdf-schema#label']                        

topClasses

Type:
list
Value:
[u'http://www.w3.org/2000/01/rdf-schema#Class']                        

Generated by Epydoc 2.1 on Mon Oct 23 14:11:25 2006 http://epydoc.sf.net