protocol
problog_protocol
Process-backed ProbLog exact inference, source generation, and collected query probabilities.
logtalk_load(problog(loader))staticPublic predicates
solve/2
Runs exact inference with default options. Valid sources are object(Object), terms(Statements), codes(Codes), and file(Path). Returns a ground collected result after cleanup.
staticsolve(Source,Result)solve(+compound,-compound) - one_or_errorSource is not ground:instantiation_errorSource is ground but invalid:domain_error(problog_source,Source)existence_error(command,Command)problog_transport(Stage,Status,Details)problog_solver_error(Formal,Status,Diagnostics,SourceMap)solve/3
Runs exact inference with the given options options. Repeated options use the first occurrence.
staticsolve(Source,Result,Options)solve(+compound,-compound,+list(compound)) - one_or_errorSource is not ground:instantiation_errorSource is ground but invalid:domain_error(problog_source,Source)Options is a variable:instantiation_errorOptions is neither a variable nor a list:type_error(list,Options)Option of the list Options is a variable:instantiation_errorOption of the list Options is neither a variable nor a compound term:type_error(compound,Option)Option of the list Options is a compound term but not a valid option:domain_error(option,Option)existence_error(command,Command)problog_transport(Stage,Status,Details)problog_solver_error(Formal,Status,Diagnostics,SourceMap)program/1
Prints source to the current output without invoking ProbLog.
staticprogram(Source)program(+compound) - one_or_errorSource is not ground:instantiation_errorSource is ground but invalid:domain_error(problog_source,Source)program/2
Returns source character codes without invoking ProbLog. Native file and codes sources are not parsed.
staticprogram(Source,Codes)program(+compound,-list(integer)) - one_or_errorSource is not ground:instantiation_errorSource is ground but invalid:domain_error(problog_source,Source)print_program/1
Prints character codes to the current output without adding a newline.
staticprint_program(Codes)print_program(+list(integer)) - one_or_errorCodes is a partial list or a list with an element Element which is a variable:instantiation_errorCodes is is neither a partial list nor a list:type_error(codes,Codes)Element of the Codes list is neither a variable nor an integer:type_error(integer,Element)Element of the Codes list is an integer but not a valid character code:domain_error(character_code,Element)probability/3
Enumerates ground query terms and numeric probabilities in a collected result. Query order follows the CLI, not a sorting contract.
staticprobability(Result,Query,Probability)probability(+compound,?callable,?number) - zero_or_moreResult is not ground:instantiation_errorResult is ground but invalid:domain_error(problog_result,Result)result_property/2
Enumerates raw_status/1, process_status/1, and diagnostics/1 properties. Diagnostics are captured stderr character codes.
staticresult_property(Result,Property)result_property(+compound,?compound) - zero_or_moreprint_result/1
Prints the collected query probabilities without invoking ProbLog.
staticprint_result(Result)print_result(+compound) - one_or_errorResult is not ground:instantiation_errorResult is ground but invalid:domain_error(problog_result,Result)Protected predicates
(none)
Private predicates
(none)
Operators
(none)