Skip to content

Commit

Permalink
add labels
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 23, 2024
1 parent b4b4fe8 commit ad8c35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sparqlunicorn_ontdoc/docgeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ def createHTML(self,savepath, predobjs, subject, baseurl, subpreds, graph, searc
if ext in DocConfig.fileextensionmap:
foundmedia[DocConfig.fileextensionmap[ext]][str(item)]={}
elif tup in DocConfig.valueproperties:
foundvals.add(str(item))
foundvals.add((str(tup),str(item)))
res=self.createHTMLTableValueEntry(subject, tup, item, ttlf, graph,
baseurl, checkdepth,geojsonrep,foundmedia,imageannos,textannos,image3dannos,annobodies,dateprops,inverse,nonns)
geojsonrep = res["geojson"]
Expand Down Expand Up @@ -1273,7 +1273,7 @@ def createHTML(self,savepath, predobjs, subject, baseurl, subpreds, graph, searc
for comm in comment:
f.write(templates["htmlcommenttemplate"].replace("{{comment}}", DocUtils.shortenURI(comm) + ":" + comment[comm]))
for fval in foundvals:
f.write(templates["htmlcommenttemplate"].replace("{{comment}}", "<b>Value:<mark>" + str(fval) + "</mark></b>"))
f.write(templates["htmlcommenttemplate"].replace("{{comment}}", "<b>Value "+ DocUtils.shortenURI(str(fval[0]))+": <mark>" + str(fval[1]) + "</mark></b>"))
if len(foundmedia["mesh"])>0 and len(image3dannos)>0:
if self.iiif:
iiifmanifestpaths["default"].append(IIIFAPIExporter.generateIIIFManifest(graph,self.outpath,self.deploypath,foundmedia["mesh"],image3dannos,annobodies,str(subject),self.prefixnamespace,imagetoURI, self.imagemetadata,DocConfig.metadatanamespaces,foundlabel,comment,thetypes,predobjmap,"Model"))
Expand Down

0 comments on commit ad8c35f

Please sign in to comment.