shaclapi.reduction.travshacl.ReducedShapeSchema module#

class shaclapi.reduction.travshacl.ReducedShapeSchema.ReducedShapeSchema(schema_dir, schema_format, endpoint_url, graph_traversal, heuristics, use_selective_queries, max_split_size, output_dir, order_by_in_queries, save_outputs, work_in_parallel, query, config, result_transmitter)[source]#

Bases: ShapeSchema

static from_config(config, query_object, result_transmitter)[source]#
validate(start_with_target_shape=True)[source]#

Executes the validation of the shape network.

class shaclapi.reduction.travshacl.ReducedShapeSchema.ReturnShapeSchema(*, schema_dir: str | rdflib.graph.Graph, schema_format: str = 'SHACL', endpoint: str | rdflib.graph.Graph, endpoint_user: Optional[str] = None, endpoint_password: Optional[str] = None, graph_traversal: GraphTraversal = GraphTraversal.DFS, heuristics: dict = {'degree': 'in', 'properties': 'big', 'target': True}, use_selective_queries: bool = True, max_split_size: int = 256, output_dir: Optional[str] = None, order_by_in_queries: bool = False, save_outputs: bool = False, work_in_parallel: bool = False)[source]#

Bases: ShapeSchema

Example

schema = ReturnShapeSchema(

schema_directory, config[‘shapeFormat’], config[‘external_endpoint’], traversal_strategy, heuristics, config[‘useSelectiveQueries’], config[‘maxSplit’], config[‘outputDirectory’], config[‘ORDERBYinQueries’], config[‘outputs’], config[‘workInParallel’])

static from_config(config)[source]#
validate()[source]#

Executes the validation of the shape network.