class

PatternMatching::QueryBuilder

Inherits Reference < Object

Query builder for more complex patterns

Constructors

Instance methods

atomspace
Source
constrain_equal(left : String | AtomSpace::Atom, right : String | AtomSpace::Atom)

Add equality constraint between variables or atoms

Source
constrain_greater_than(left : String | AtomSpace::Atom, right : String | AtomSpace::Atom)

Add greater than constraint for numeric comparisons

Source
constrain_type(var_name : String, atom_type : AtomSpace::AtomType)

Add a type constraint

Source
constraints
Source
evaluation(predicate : String | AtomSpace::Atom, subject : String | AtomSpace::Atom, object : String | AtomSpace::Atom) : AtomSpace::Atom

Build an evaluation pattern

Source
execute(template : AtomSpace::Atom) : Array(MatchResult)

Execute the query with the given pattern

Source
execute_fuzzy(template : AtomSpace::Atom, similarity_threshold : Float64 = 0.8) : Array(Advanced::StatisticalMatcher::ProbabilisticMatch)

Advanced: Execute with fuzzy matching

Source
execute_probabilistic(template : AtomSpace::Atom, threshold : Float64 = 0.7) : Array(Advanced::StatisticalMatcher::ProbabilisticMatch)

Advanced: Execute with probabilistic matching

Source
inheritance(child : String | AtomSpace::Atom, parent : String | AtomSpace::Atom) : AtomSpace::Atom

Build an inheritance pattern

Source
require_absent(atoms : Array(AtomSpace::Atom))

Require atoms to be absent

Source
require_present(atoms : Array(AtomSpace::Atom))

Require atoms to be present

Source
variable(name : String) : AtomSpace::Atom

Add a variable to the query

Source
variables
Source