The predicate assumes that File designates a PLP object program, which is consulted and transformed into an equivalent standard prolog program. The predicate then samples Query either a fixed number of times or until a confidence value (as detailed in Riguzzi 2013, p. 6) reaches a configured threshold and returns the sampled Probability of the query being true.
Non-ground queries are treated as existential queries, unless the per_grounding option flag has explicitly been set to true (value != 0).
Options is a list configuring the sampling process. Available options:
standard
or gibbs
. When using Gibbs sampling, a second
parameter controls the block size of variables sampled together.