Skip to content

Commit

Permalink
validate AFTER compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Nov 5, 2024
1 parent be02f10 commit 9314958
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
#topquadrant_shacl._MAX_EXTERNAL_LOOPS = 2
graph = infer(graph, s223)
#graph.expand(profile="shacl", backend="topquadrant")
valid, _, report = validate(graph, s223)
if not valid:
print(report)
raise Exception("Validation failed: {}".format(report))
if args.output:
for prefix, uri in namespaces.items():
graph.bind(prefix, uri)
graph.serialize(args.output, format="turtle")
else:
print(graph.serialize(format="turtle"))
valid, _, report = validate(graph, s223)
if not valid:
print(report)
raise Exception("Validation failed: {}".format(report))

0 comments on commit 9314958

Please sign in to comment.