-
To run these examples, you must first set the
PYTHONPATH
to the atomspace python install directory, after installing atomspace. Tun the following command from your shell,export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3/dist-packages/
-
From the python prompt, the following should list the opencog python modules
help('opencog')
-
The contents of a single module can be viewed by using
dir
function. For example,import opencog.atomspace print dir(opencog.atomspace)
-
You can run the examples from your shell. For example,
python create_atoms_by_type.py
Simple examples of how to create atoms in an atomspace. These demonstrate two different ways in which the API can be used; one creates atoms according to their types, the other creates them directly.
A simple example of a "behavior tree" implemented in the AtomSpace.
The following examples show how to use the scheme bindings through python
Example of how to obtain atom type names and atom type IDs.
Example of how to use the pattern matcher BindLink functionality.
Simple measurement of the performance of invoking the scheme (guile) interpreter.