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')