Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 24, 2024
1 parent 835797a commit 40ca2b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/sparqlunicorn_ontdoc/doc/docutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ def generateRelativeSymlink(linkpath, targetpath, outpath, items=False):
checkdepthtarget = 4
else:
checkdepthtarget = targetpath.count("/") - 1
print("Checkdepthtarget: " + str(checkdepthtarget))
#print("Checkdepthtarget: " + str(checkdepthtarget))
targetrellink = DocUtils.generateRelativeLinkFromGivenDepth(targetpath, checkdepthtarget, linkpath, False)
print("Target Rellink: " + str(targetrellink))
print("Linkpath: " + str(linkpath))
#print("Target Rellink: " + str(targetrellink))
#print("Linkpath: " + str(linkpath))
targetrellink = targetrellink.replace(outpath, "")
return targetrellink.replace("//", "/")

Expand Down
3 changes: 1 addition & 2 deletions src/sparqlunicorn_ontdoc/export/pages/geometryviewpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,4 @@ def generateCollectionWidget(self,graph,templates,subject,f,uritotreeitem,featur
return geocache

def generatePageView(self,headertemplate,footertemplate,g,f):
f.write(str(headertemplate))
print("PageView")
f.write(str(headertemplate))
2 changes: 0 additions & 2 deletions src/sparqlunicorn_ontdoc/export/pages/personpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,12 @@ def pageWidgetConstraint():
return ["http://xmlns.com/foaf/0.1/Person","http://www.w3.org/2006/vcard/ns#Individual","http://schema.org/Person","http://dbpedia.org/ontology/Person","http://www.wikidata.org/entity/Q5"]

def generatePageWidget(self, graph, subject, templates, f=None, pageWidget=False):
print("PageWidget")
vcardres=self.extractPersonMetadata(subject,graph)
if pageWidget and f!=None:
f.write(self.hcardToHTML(vcardres["vcard"],vcardres["hcard"]))
return vcardres["vcard"]

def generateCollectionWidget(self, graph, templates, subject, f=None):
print("CollectionWidget")
vcards=[]
for person in graph.predicate_objects(subject):
if str(person[0]) in DocConfig.collectionrelationproperties:
Expand Down

0 comments on commit 40ca2b3

Please sign in to comment.