Skip to content

Commit 9cebfda

Browse files
committed
fixes
1 parent bbd6ff4 commit 9cebfda

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/sparqlunicorn_ontdoc/doc/docutils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ def resolveUnitValue(graph,obj,tuppredstr,tupobjstr,foundval,foundunit):
192192
elif str(valtup[0]) in DocConfig.valueproperties and isinstance(valtup[1], Literal):
193193
foundval = str(valtup[1])
194194
elif str(valtup[0]) in DocConfig.strictvalueproperties and isinstance(valtup[1], URIRef):
195-
print("Valtup[1]: " + str(valtup[1]))
195+
#print("Valtup[1]: " + str(valtup[1]))
196196
for tup2 in graph.predicate_objects(valtup[1]):
197-
print("Tup2: " + str(tup2))
197+
#print("Tup2: " + str(tup2))
198198
if str(tup2[0]) in DocConfig.unitproperties:
199199
foundunit = str(tup2[1])
200200
elif str(tup2[0]) in DocConfig.valueproperties:

src/sparqlunicorn_ontdoc/export/data/htmlexporter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ def searchObjectConnectionsForAggregateData(graph, object, pred, geojsonrep, fou
548548
annosource = tupobjstr
549549
#print("Found annosource " + tupobjstr + " from " + str(object) + " Imageannos: " + str(len(imageannos)))
550550
elif tuppredstr in DocConfig.valueproperties:
551-
DocUtils.resolveUnitValue(graph,tup[1],tuppredstr,tupobjstr,foundval,foundunit)
551+
res=DocUtils.resolveUnitValue(graph,tup[1],tuppredstr,tupobjstr,foundval,foundunit)
552+
foundval=res[0]
553+
foundunit=res[1]
552554
"""
553555
if tempvalprop is None and tuppredstr == "http://www.w3.org/ns/oa#hasSource":
554556
tempvalprop = tuppredstr

src/sparqlunicorn_ontdoc/export/pages/geometryviewpage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ def generateCollectionWidget(self,graph,subject,templates,f,uritotreeitem,featur
9696
elif isinstance(geoinstance[1],URIRef):
9797
foundunit=None
9898
foundval=None
99-
print("RESOLVE UNIT FROM: "+str(geoinstance[1]))
99+
#print("RESOLVE UNIT FROM: "+str(geoinstance[1]))
100100
res=DocUtils.resolveUnitValue(graph,geoinstance[1],None,str(geoinstance[1]),foundunit,foundval)
101101
foundval=res[0]
102102
foundunit=res[1]
103-
print("FOUNDVAL: "+str(foundval)+" FOUNDUNIT: "+str(foundunit))
103+
#print("FOUNDVAL: "+str(foundval)+" FOUNDUNIT: "+str(foundunit))
104104
if foundval is not None:
105105
properties[str(geoinstance[0])+".value"]=foundval
106106
if foundunit is not None:

0 commit comments

Comments
 (0)