Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 30, 2024
1 parent 2a8a769 commit 926c89c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sparqlunicorn_ontdoc/docgeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,8 @@ def generateOntDocForNameSpace(self, prefixnamespace,dataformat="HTML"):
voidstats["http://rdfs.org/ns/void#classes"]=len(classidset)
voidstats["http://rdfs.org/ns/void#triples"] = len(self.graph)
for stat in voidstats:
if (URIRef(voidds),URIRef(stat),None) in self.graph:
self.graph.set((URIRef(voidds), URIRef(stat),
Literal(int(self.graph.value(URIRef(voidds),URIRef(stat)))+voidstats[stat], datatype="http://www.w3.org/2001/XMLSchema#integer")))
else:
self.graph.set((URIRef(voidds),URIRef(stat),Literal(voidstats[stat],datatype="http://www.w3.org/2001/XMLSchema#integer")))
prevval=int(str(self.graph.value(URIRef(voidds), URIRef(stat),None,0)))
self.graph.set((URIRef(voidds),URIRef(stat),Literal(voidstats[stat]+prevval,datatype="http://www.w3.org/2001/XMLSchema#integer")))
voidgraph=VoidExporter.createVoidDataset(self.datasettitle,prefixnamespace,self.deploypath,self.outpath,self.licenseuri,self.modtime,self.labellang,subjectstorender,self.prefixes,tree,predmap,nonnscount,instancecount,self.startconcept)
self.voidstatshtml=VoidExporter.toHTML(voidstats,self.deploypath)
self.graph+=voidgraph["graph"]
Expand Down

0 comments on commit 926c89c

Please sign in to comment.