|
28 | 28 | from doc.docdefaults import DocDefaults
|
29 | 29 | from doc.docconfig import DocConfig
|
30 | 30 | from doc.templateutils import TemplateUtils
|
31 |
| -from export.data.vowlexporter import OWL2VOWL |
| 31 | +from export.data.vowlexporter import VOWLExporter |
32 | 32 | from export.api.iiifexporter import IIIFAPIExporter
|
33 | 33 | from export.api.ogcapifeaturesexporter import OGCAPIFeaturesExporter
|
34 | 34 | from export.api.ckanexporter import CKANExporter
|
@@ -109,7 +109,7 @@ def generateOntDocForNameSpace(self, prefixnamespace,dataformat="HTML"):
|
109 | 109 | uritolabel = {}
|
110 | 110 | uritotreeitem = {}
|
111 | 111 | if self.pubconfig["createvowl"]:
|
112 |
| - vowlinstance = OWL2VOWL() |
| 112 | + vowlinstance = VOWLExporter() |
113 | 113 | vowlinstance.convertOWL2VOWL(self.graph, outpath)
|
114 | 114 | tmp=HTMLExporter.processLicense(self.pubconfig["license"])
|
115 | 115 | curlicense=tmp[0]
|
@@ -250,7 +250,7 @@ def generateOntDocForNameSpace(self, prefixnamespace,dataformat="HTML"):
|
250 | 250 | if self.pubconfig["nonnspages"]:
|
251 | 251 | start = time.time()
|
252 | 252 | labeltouri = self.getSubjectPagesForNonGraphURIs(nonnsmap, self.graph, prefixnamespace, self.pubconfig["corpusid"], outpath,
|
253 |
| - self.pubconfig["license"], prefixnamespace, uritotreeitem, labeltouri) |
| 253 | + self.licensehtml, prefixnamespace, uritotreeitem, labeltouri) |
254 | 254 | end=time.time()
|
255 | 255 | self.exectimes["NonNS Pages"] = {"time": end - start,"items":len(nonnsmap)}
|
256 | 256 | print("NonNS Page Generation time "+str(end-start)+" seconds")
|
@@ -565,6 +565,20 @@ def main():
|
565 | 565 | resg.add((sub, URIRef("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),
|
566 | 566 | URIRef("http://www.w3.org/ns/ldp#Resource")))
|
567 | 567 | 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() |
568 | 582 | if not os.path.exists(outpath[0] + '/index.html'):
|
569 | 583 | indexf = open(outpath[0] + "/index.html", "w", encoding="utf-8")
|
570 | 584 | nonnslink = ""
|
|
0 commit comments