diff --git a/src/sparqlunicorn_ontdoc/docgeneration.py b/src/sparqlunicorn_ontdoc/docgeneration.py index 11b4bc6b..1d82637a 100644 --- a/src/sparqlunicorn_ontdoc/docgeneration.py +++ b/src/sparqlunicorn_ontdoc/docgeneration.py @@ -367,10 +367,10 @@ def generateOntDocForNameSpace(self, prefixnamespace,dataformat="HTML"): tree["core"]["data"].append(tr) voidstats["http://rdfs.org/ns/void#classes"]=len(classidset) voidstats["http://rdfs.org/ns/void#triples"] = len(self.graph) - voidgraph=VoidExporter.createVoidDataset(self.datasettitle,prefixnamespace,self.deploypath,self.outpath,self.licenseuri,self.modtime,self.labellang,voidstats,tree,predmap,nonnscount,instancecount,self.startconcept) + voidgraph=VoidExporter.createVoidDataset(self.datasettitle,prefixnamespace,self.deploypath,self.outpath,self.licenseuri,self.modtime,self.labellang,voidstats,subjectstorender,tree,predmap,nonnscount,instancecount,self.startconcept) self.voidstatshtml=VoidExporter.toHTML(voidstats,self.deploypath) self.graph+=voidgraph["graph"] - #subjectstorender.update(voidgraph["subjects"]) + subjectstorender=voidgraph["subjects"] with open(outpath + "style.css", 'w', encoding='utf-8') as f: f.write(templates["stylesheet"]) f.close() diff --git a/src/sparqlunicorn_ontdoc/export/data/voidexporter.py b/src/sparqlunicorn_ontdoc/export/data/voidexporter.py index cb33c835..a02e0dd6 100644 --- a/src/sparqlunicorn_ontdoc/export/data/voidexporter.py +++ b/src/sparqlunicorn_ontdoc/export/data/voidexporter.py @@ -55,7 +55,7 @@ def createVoidDataset(dsname,prefixnamespace,deploypath,outpath,licenseuri,modti g.add((URIRef(cururi), URIRef("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),URIRef("http://rdfs.org/ns/void#Dataset"))) g.add((URIRef(cururi), URIRef("http://www.w3.org/2000/01/rdf-schema#label"),Literal("Property Partition: " + str(DocUtils.shortenURI(pred)), lang="en"))) g.add((URIRef(cururi),URIRef("http://rdfs.org/ns/void#property"),URIRef(pred))) - g.add((URIRef(cururi),URIRef("http://rdfs.org/ns/void#triples"),Literal(str(propstats[pred]["triples"]),datatype="http://www.w3.org/2001/XMLSchema#integer"))) + g.add((URIRef(cururi),URIRef("http://rdfs.org/ns/void#triples"),Literal(str(propstats[pred]["http://rdfs.org/ns/void#triples"]),datatype="http://www.w3.org/2001/XMLSchema#integer"))) subjectstorender.add(URIRef(cururi)) for item in classtree["core"]["data"]: if item["type"]=="class":