Skip to content

Commit

Permalink
less prints
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 13, 2024
1 parent 3f70023 commit 7800cd3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/sparqlunicorn_ontdoc/export/pages/bibpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ def resolveBibtexReference(predobjs, item, graph):
return res

def generatePageWidget(self,graph,memberid,templates,f,pageWidget=False):
print("PageWidget")
BibPage.resolveBibtexReference(memberid,graph)

def generateCollectionWidget(self, graph,templates, subject, f):
print("CollectionWidget")
for bibentry in graph.objects(subject, URIRef("http://www.w3.org/ns/lemon/lime#entry"), True):
self.generatePageWidget(graph,bibentry,f,True)

Expand Down
2 changes: 0 additions & 2 deletions src/sparqlunicorn_ontdoc/export/pages/cidocoverviewpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@
class CIDOCOverviewPage:

def pageWidgetConstraint(self):
print("PageWidgetConstraint")
return ["http://www.cidoc-crm.org/cidoc-crm/E22_Man-Made_Object","http://www.cidoc-crm.org/cidoc-crm/Thing"]

def collectionConstraint(self):
return DocConfig.collectionclasses

def generatePageWidget(self,graph,subject,f,onlybody=False):
print("PageWidget")
resmap=OrderedDict()
resmap["P2_has_type"]=None
resmap["P43_has_dimension"]=None
Expand Down
1 change: 0 additions & 1 deletion src/sparqlunicorn_ontdoc/export/pages/lexiconpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def extractLexEntry(self,graph,subject):
return {"lemma":lemma,"lexcat":lexcat,"language":language,"forms":forms,"senses":senses}

def generatePageWidget(self,graph,subject,f,onlybody=False):
print("PageWidget")
lexentry=self.extractLexEntry(graph,subject)
if not onlybody:
f.write("<table id=\"lexicon\">"+self.tableheader+"<tbody>")
Expand Down
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 @@ -95,7 +95,6 @@ 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")
vcard=self.extractPersonMetadata(subject,graph)
if pageWidget and f!=None:
f.write(self.vcardToHTML(vcard))
Expand All @@ -104,7 +103,6 @@ def generatePageWidget(self, graph, subject, templates, f=None, pageWidget=False


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 7800cd3

Please sign in to comment.