OpenCog Framework  Branch: master, revision 6f0b7fc776b08468cf1b74aa9db028f387b4f0c0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
create_atoms_by_type.py File Reference

Go to the source code of this file.

Namespaces

 python.create_atoms_by_type
 

Variables

tuple python.create_atoms_by_type.a = AtomSpace()
 
tuple python.create_atoms_by_type.TV = TruthValue(1, 0.8)
 
 python.create_atoms_by_type.concept_type = types.ConceptNode
 
tuple python.create_atoms_by_type.A = a.add_node(concept_type, 'Apple', TV)
 
tuple python.create_atoms_by_type.B = a.add_node(concept_type, 'Berry', TruthValue(0.5, 0.75))
 
tuple python.create_atoms_by_type.C = a.add_node(concept_type, 'Comestible', TV)
 
 python.create_atoms_by_type.inh_type = types.InheritanceLink
 
tuple python.create_atoms_by_type.AB = a.add_link(inh_type, [A, B], TV)
 
tuple python.create_atoms_by_type.BC = a.add_link(inh_type, [B, C], TV)
 
tuple python.create_atoms_by_type.AC = a.add_link(inh_type, [A, C])