Skip to content

Commit 5dd7afb

Browse files
committed
fixes
1 parent 6a58f32 commit 5dd7afb

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/sparqlunicorn_ontdoc/docgeneration.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from doc.docdefaults import DocDefaults
2929
from doc.docconfig import DocConfig
3030
from doc.templateutils import TemplateUtils
31-
from export.data.vowlexporter import OWL2VOWL
31+
from export.data.vowlexporter import VOWLExporter
3232
from export.api.iiifexporter import IIIFAPIExporter
3333
from export.api.ogcapifeaturesexporter import OGCAPIFeaturesExporter
3434
from export.api.ckanexporter import CKANExporter
@@ -109,7 +109,7 @@ def generateOntDocForNameSpace(self, prefixnamespace,dataformat="HTML"):
109109
uritolabel = {}
110110
uritotreeitem = {}
111111
if self.pubconfig["createvowl"]:
112-
vowlinstance = OWL2VOWL()
112+
vowlinstance = VOWLExporter()
113113
vowlinstance.convertOWL2VOWL(self.graph, outpath)
114114
tmp=HTMLExporter.processLicense(self.pubconfig["license"])
115115
curlicense=tmp[0]
@@ -250,7 +250,7 @@ def generateOntDocForNameSpace(self, prefixnamespace,dataformat="HTML"):
250250
if self.pubconfig["nonnspages"]:
251251
start = time.time()
252252
labeltouri = self.getSubjectPagesForNonGraphURIs(nonnsmap, self.graph, prefixnamespace, self.pubconfig["corpusid"], outpath,
253-
self.pubconfig["license"], prefixnamespace, uritotreeitem, labeltouri)
253+
self.licensehtml, prefixnamespace, uritotreeitem, labeltouri)
254254
end=time.time()
255255
self.exectimes["NonNS Pages"] = {"time": end - start,"items":len(nonnsmap)}
256256
print("NonNS Page Generation time "+str(end-start)+" seconds")
@@ -565,6 +565,20 @@ def main():
565565
resg.add((sub, URIRef("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
566566
URIRef("http://www.w3.org/ns/ldp#Resource")))
567567
resg.serialize(outpath[0] + '/index.ttl')
568+
manifest={
569+
"lang": "en-us",
570+
"name": "SPARQLing Unicorn Ontology Documentation Script: "+args.prefixnsshort,
571+
"short_name": args.prefixnsshort,
572+
"description": "HTML Deployment produced by the SPARQLing Unicorn Ontology Documentation Script",
573+
"start_url": "/",
574+
"background_color": "#2f3d58",
575+
"theme_color": "#2f3d58",
576+
"orientation": "any",
577+
"display": "standalone"
578+
}
579+
f=open(outpath[0] + "/manifest.json", "w", encoding="utf-8")
580+
f.write(json.dumps(manifest))
581+
f.close()
568582
if not os.path.exists(outpath[0] + '/index.html'):
569583
indexf = open(outpath[0] + "/index.html", "w", encoding="utf-8")
570584
nonnslink = ""

0 commit comments

Comments
 (0)