Skip to content

Commit

Permalink
Warn about empty ttl in validation report
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jul 25, 2023
1 parent 44a0db4 commit 3770650
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ogc/bblocks/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ def validate_inner():
if graph is not None and (resource_contents or filename.suffix != '.ttl'):
ttl_fn = output_filename.with_suffix('.ttl')
graph.serialize(ttl_fn, format='ttl')
report.add_info('Files', f'Output Turtle {ttl_fn.name} created')
if not graph:
report.add_info('Files', f'Output Turtle {ttl_fn.name} created')
else:
report.add_info('Files', f'*Empty* output Turtle {ttl_fn.name} created')

if json_doc:
if json_error:
Expand Down

0 comments on commit 3770650

Please sign in to comment.