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
- class shaclapi.reduction.travshacl.ReducedShapeSchema.ReturnShapeSchema(*, schema_dir: str | Graph, schema_format: str = 'SHACL', endpoint: str | Graph, endpoint_user: str | None = None, endpoint_password: str | None = 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: str | None = 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’])