Skip to content

Commit

Permalink
more serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Jul 22, 2024
1 parent 4d1a4d3 commit a72d976
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/generate-serializations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit a72d976

Please sign in to comment.