diff --git a/TravSHACL/core/ShapeSchema.py b/TravSHACL/core/ShapeSchema.py index 9c0ae3b..54379fe 100644 --- a/TravSHACL/core/ShapeSchema.py +++ b/TravSHACL/core/ShapeSchema.py @@ -3,6 +3,8 @@ __author__ = 'Philipp D. Rohde and Monica Figuera' +import warnings + from rdflib import Graph from TravSHACL.core.GraphTraversal import GraphTraversal @@ -39,6 +41,11 @@ def __init__(self, *, schema_dir: str | Graph, schema_format: str = 'SHACL', end :param save_outputs: indicates whether target classifications will be saved to the output path; default: False :param work_in_parallel: indicates whether parallelization will be used; not yet implemented; default: False """ + if schema_format == 'JSON': + warnings.warn( + 'The JSON format for shape schemas is deprecated and will be removed in a future version.', + DeprecationWarning, 2 + ) if isinstance(schema_dir, Graph): self.shapes = ShapeParser().parse_ttl( schema_dir, use_selective_queries, max_split_size, order_by_in_queries