Exemplo n.º 1
0
 class Thing(Document):
     words = StringListProperty()
     @property
     def calc(self):
         for i, word in enumerate(self.words):
             log.append(i)
             yield word + '!'
Exemplo n.º 2
0
class RDFEntity(Document):
    g = StringProperty()  # the graph this entity belongs to
    s = StringProperty()  # the one and only subject
    p = StringListProperty()  # list of predicates
    o = StringListProperty()  # list of objects
    o_in = StringListProperty()  # list of back-links (read: 'object in')