<gh_stars>0
import build.trident as trident
import sys, json

print("loading db")
db = trident.Db("/var/scratch/pse740/db/dbpedia-times-details", "/var/scratch/pse740/db/duckdb/dbpedia.duckdb")
print("aa")
schema = db.extract_schema()
print("bb")
with open("/var/scratch/pse740/db/duckdb/dbpedia.schema.json", "w") as f:
    json.dump(schema, f)
sys.exit(0)

import build.trident as trident
import sys, json

print("loading db")
db = trident.Db("/var/scratch/pse740/db/dbpedia-times-details", "/var/scratch/pse740/db/duckdb/dbpedia.duckdb")
print("aa")
schema = db.extract_schema()
print("bb")
with open("/var/scratch/pse740/db/duckdb/dbpedia.schema.json", "w") as f:
    json.dump(schema, f)
sys.exit(0)