Esempio n. 1
0
    def dag_node(self, key, term):
        dn = DagNode()
        dn._node_key = key
        dn._object_key = key

        vt = VocTerm()
        vt.term = term

        dn.vocterm = vt
        return dn
Esempio n. 2
0
 def dag_node(self, key, term):
     dn = DagNode()
     dn._node_key = key
     dn._object_key = key
     
     vt = VocTerm()
     vt.term = term
     
     dn.vocterm = vt
     return dn
Esempio n. 3
0
    def tree_node(self, key, term):
        dn = DagNode()
        dn._object_key = key

        vt = VocTerm()
        vt.term = term

        dn.vocterm = vt

        tn = TreeNode(dn)
        return tn
Esempio n. 4
0
 def tree_node(self, key, term):
     dn = DagNode()
     dn._object_key = key
     
     vt = VocTerm()
     vt.term = term
     
     dn.vocterm = vt
     
     tn = TreeNode(dn)
     return tn