Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 23, 2024
1 parent 0090fb7 commit 02d73a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/sparqlunicorn_ontdoc/doc/literalutils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from rdflib import URIRef, Literal
import os
import json
import shapely
import traceback
Expand Down
5 changes: 3 additions & 2 deletions src/sparqlunicorn_ontdoc/export/api/iiifexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@ def generateIIIFCollections(outpath, deploypath, imagespaths, prefixnamespace):
if not os.path.exists(outpath + "/iiif/collection/"):
os.makedirs(outpath + "/iiif/collection/")
if os.path.exists(outpath + "/iiif/collection/iiifcoll.json"):
f = open(outpath + "/iiif/collection/iiifcoll.json", "r", encoding="utf-8")
collections = json.loads(f.read())
f=open(outpath+"/iiif/collection/iiifcoll.json","r",encoding="utf-8")
collections={}
collections["main"]=json.loads(f.read())
f.close()
else:
collections = {"main": {"@context": "http://iiif.io/api/presentation/3/context.json",
Expand Down

0 comments on commit 02d73a5

Please sign in to comment.