Result Objects

class jertl.results.Bindings(bindings)

Base class for jertl processing results

property bindings

bindings A dictionary mapping variable identifiers to their bindings

Returns

dictionary

containing a set of variable bindings

Return type

Dict[str, list | dict | str | Number]

class jertl.results.Match(matched, bindings)

Output of a matcher

property matched

matched The result of filling the structure pattern with the variables bound during the match process

Returns

Result of a fill using the structure pattern and variable bindings

Return type

list | dict | str | Number

class jertl.results.Transformation(matched, filled, bindings)

Class describing a tranform result

property matched

matched matching structure with variables replace with their bindings

Returns

Result of a fill using the matching structure pattern and variable bindings

Return type

list | dict | str | Number

property filled

filled transformed structure

Returns

Result of a fill using the target structure pattern and variable bindings

Return type

list | dict | str | Number

class jertl.results.Collation(matchers, bindings)

Output of a collator

property matches

matches The result of filling the targetted match structures with the variables bound during the match process

Returns

Mapping of target identifiers to filled matching structures

Return type

Dict[str, list | dict | str | Number]

class jertl.results.Inference(matchers, fillers, bindings)

Result yielded by an Inferencer

property matches

result The result of filling the targetted match structures with the variables bound during the match process

Returns

Mapping of variable identifiers to structures

Return type

Dict[str, list | dict | str | Number]

property fills

result The result of filling the targetting fill structures with the variables bound during the match process

Returns

Mapping of variable identifiers to structures

Return type

Dict[str, list | dict | str | Number]