Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 16, 2024
1 parent bef9bbe commit 8914d27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sparqlunicorn_ontdoc/export/pages/personpage.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ...doc.docutils import DocUtils
from ...sparqlutils import SPARQLUtils
from doc.docutils import DocUtils
from doc.docconfig import DocConfig


class PersonPage:
Expand Down Expand Up @@ -176,7 +176,7 @@ def vcardJSONToString(vcard):

@staticmethod
def collectionConstraint():
return SPARQLUtils.collectionclasses
return DocConfig.collectionclasses

@staticmethod
def pageWidgetConstraint():
Expand All @@ -193,6 +193,6 @@ def generateCollectionWidget(self, graph, templates, subject, f=None):
print("CollectionWidget")
vcards=[]
for person in graph.predicate_objects(subject):
if str(person[0]) in SPARQLUtils.collectionrelationproperties:
if str(person[0]) in DocConfig.collectionrelationproperties:
vcards.append(self.generatePageWidget(graph,person[1],templates,f,True))
return vcards

0 comments on commit 8914d27

Please sign in to comment.