Skip to content

DAS

das-create-context!

Type
(-> String Atom %Undefined%)
Description
Creates a context in the DAS with specified query, determiner schema, and stimulus schema
Parameters
String - Context name (string)
Atom - ExpressionAtom containing schemas: ( (query) (determiner_schema) (stimulus_schema) )
Returns
%Undefined% Result atom from context creation

das-evolution!

Type
(-> Atom Atom %Undefined%)
Description
Performs DAS evolution operation with query, fitness function, correlation queries, replacements, and mappings
Parameters
Atom - ExpressionAtom containing evolution configuration: ( (query) (fitness-function) (correlation-queries) (correlation-replacements) (correlation-mappings) )
Atom - Template atom to be filled with evolution results
Returns
%Undefined% Non-deterministic result: template with bindings from evolution

das-get-params!

Type
(-> (->))
Description
Prints all current DAS parameters
Parameters
Returns
(->) Unit atom

das-helpers!

Type
(-> Atom Atom (->))
Description
Executes helper functions for DAS operations. Currently supports 'sleep' helper
Parameters
Atom - Helper function name (string), e.g., 'sleep'
Atom - Argument for the helper function (string), e.g., '5' for sleep duration in seconds
Returns
(->) Unit atom

das-join-network!

Type
(-> (->))
Description
(re)Joins the DAS network using the configured parameters
Parameters
Returns
(->) Unit atom

Type
%Undefined%
Description
Creates links in the DAS based on a query pattern and one or more templates
Parameters
%Undefined% - Query atom to match against
%Undefined% - Template atoms (one or more) for link creation
Returns
%Undefined% Result atom from link creation

das-service-status!

Type
(-> ServiceName (->))
Description
Checks the status of a specific DAS service by name
Parameters
ServiceName - Service name (string)
Returns
(->) String: 'ServiceAvailable: ' if available, or error if not available or not registered

das-services!

Type
(-> (->))
Description
Prints information about available DAS services
Parameters
Returns
(->) Unit atom

das-set-param!

Type
(-> Atom (->))
Description
Sets a DAS parameter value. The parameter must exist in the DAS configuration
Parameters
Atom - Expression containing key-value pair, e.g., (max_answers 100)
Returns
(->) String: 'DAS Param Updated: ' or error

new-das!

Type
(-> Symbol Symbol SpaceType)
Description
Creates a new Distributed AtomSpace (DAS) instance with specified server and known peer endpoints
Parameters
Symbol - Server endpoint with port range (e.g., 0.0.0.0:42000-42999 or localhost:52000-52099)
Symbol - Known peer endpoint (e.g., 0.0.0.0:40002 or localhost:40002)
Returns
SpaceType A Space instance representing the DAS