shaclapi.reduction.travshacl.ValidationResultStreaming module#

class shaclapi.reduction.travshacl.ValidationResultStreaming.ValidationResultStreaming(endpoint_url, node_order, shapes_dict, target_shape_predicates, use_selective_queries, output_dir_name, save_stats, save_targets_to_file, result_transmitter)[source]#

Bases: Validation

exec()[source]#

Executes the validation process of the entire shape schema.

register_target(t, t_type, invalidating_shape_name, shapes_state)[source]#

Adds each target to the set of valid/invalid instances of a shape.

Parameters:
  • t – target tuple: t[0] - predicate (string), t[1] - instance (string), t[2] - sign (boolean)

  • t_type – string value that tells whether ‘t’ is a valid target (‘valid’) or a ‘violated’ one

  • invalidating_shape_name – string name of the shape that (in)validates target ‘t’

  • shapes_state – dictionary storing validation’s state of each shape

validation_output(shapes_state)[source]#

Saves to local file the (in)validated targets and returns result of validation

Parameters:

shapes_state – dictionary storing validation’s state of each shape

Returns:

dictionary containing shape names and their respective (in)validated targets