Query and pattern matching utilities
Class methods
find_facts(atomspace :
AtomSpace, concept :
String) :
Array(
Atom)
Find all facts about a concept
Sourcefind_inheritance(atomspace :
AtomSpace, concept :
String) :
Array(
Atom)
Find all inheritance relationships for a concept
Sourcefind_nodes(atomspace :
AtomSpace, name :
String, type :
AtomType |
Nil = nil) :
Array(
Atom)
Simple query for atoms of a specific type and name
Sourcematch_pattern(atomspace :
AtomSpace, predicate :
String |
Nil, subject :
String |
Nil, object :
String |
Nil) :
Array(
Atom)
Simple pattern matching for [Predicate, Subject, Object] patterns
Source