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 c394654 commit 26194a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sparqlunicorn_ontdoc/docgeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ def generateOntDocForNameSpace(self, prefixnamespace,dataformat="HTML"):
voidgraph=VoidExporter.createVoidDataset(self.datasettitle,prefixnamespace,self.deploypath,self.outpath,self.licenseuri,self.modtime,self.labellang,voidstats,tree,predmap,nonnscount,instancecount,self.startconcept)
self.voidstatshtml=VoidExporter.toHTML(voidstats,self.deploypath)
self.graph+=voidgraph["graph"]
subjectstorender.update(voidgraph["subjects"])
for sub in voidgraph["subjects"]:
subjectstorender.add(sub)
with open(outpath + "style.css", 'w', encoding='utf-8') as f:
f.write(templates["stylesheet"])
f.close()
Expand Down Expand Up @@ -1077,11 +1078,10 @@ def createHTML(self,savepath, predobjs, subject, baseurl, subpreds, graph, searc
uritotreeitem[parentclass][-1]["data"]["to"][str(tup[0])][item] = 0
uritotreeitem[parentclass][-1]["data"]["to"][str(tup[0])][item]+=1
if baseurl not in str(tup[1]) and str(tup[0])!=self.typeproperty:
hasnonns.add(str(tup[1]))
if nonnsmap!=None:
if str(tup[1]) not in nonnsmap:
nonnsmap[str(tup[1])]=set()
nonnsmap[str(tup[1])].add(subject)
hasnonns.add(str(tup[1]))
if str(tup[1]) not in nonnsmap:
nonnsmap[str(tup[1])]=set()
nonnsmap[str(tup[1])].add(subject)
for tup in sorted(predobjmap):
if self.metadatatable and tup not in DocConfig.labelproperties and DocUtils.shortenURI(str(tup),True) in DocConfig.metadatanamespaces:
thetable=metadatatablecontents
Expand Down

0 comments on commit 26194a6

Please sign in to comment.