From a72d976a2b4eb75029f67a2c392a53f298ec4711 Mon Sep 17 00:00:00 2001 From: Gabe Fierro Date: Mon, 22 Jul 2024 14:08:54 -0600 Subject: [PATCH] more serialization --- scripts/generate-serializations.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/generate-serializations.py b/scripts/generate-serializations.py index 2f17099..6ed6a09 100644 --- a/scripts/generate-serializations.py +++ b/scripts/generate-serializations.py @@ -12,3 +12,9 @@ # save a jsonld version too g.serialize(filename.replace('ttl', 'jsonld'), format='json-ld') print(f'Wrote {filename} to {filename.rstrip(".ttl")}') + +# do this for static/schema/Brick.ttl too +g = rdflib.Graph() +g.parse('static/schema/Brick.ttl', format='turtle') +g.serialize('static/schema/Brick', format='xml') +g.serialize('static/schema/Brick.jsonld', format='json-ld')