API Reference#

Complete API documentation for all public NeuroLang modules. Generated automatically from docstrings.

Most users only need the two frontend classes below: NeurolangDL for deterministic Datalog and NeurolangPDL for probabilistic Datalog. Their most used methods are add_tuple_set, add_atlas_set, add_symbol, add_probabilistic_facts_from_tuples, add_probabilistic_choice_from_tuples, add_uniform_probabilistic_choice_over_set, execute_datalog_program, execute_squall_program, query and solve_all.

End-User Frontend#

NeurolangDL

Deterministic Datalog Frontend for Neurolang.

NeurolangPDL

Probabilistic Datalog frontend.

Intermediate Representation Infrastructure#

expressions

Expressions for the intermediate representation and auxiliary functions.

expression_pattern_matching

Module implementing expression pattern matching.

expression_walker

exceptions

Intermediate Language Representations#

logic

datalog

probabilistic

relational_algebra

Module containing the intermediate representation implementation of relational algebra.

relational_algebra_provenance

Command-line Interface & Engine Registry#

utils.cli

Command-line interface for NeuroLang query execution.

utils.engine_registry

Declarative engine registry for the neurolang-query CLI.

utils.engines.base

Shared symbols and utilities for all neuroimaging engines.

Indices and tables#