Skip to content

Commit

Permalink
mark JSON format as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
prohde committed Sep 9, 2024
1 parent cea9c24 commit 0977f3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TravSHACL/core/ShapeSchema.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

__author__ = 'Philipp D. Rohde and Monica Figuera'

import warnings

from rdflib import Graph

from TravSHACL.core.GraphTraversal import GraphTraversal
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0977f3b

Please sign in to comment.