Skip to content

Commit b0a14b7

Browse files
authored
Adding DisplayName to slowmo and using it in render for comparator type (#450)
1 parent 3f264b2 commit b0a14b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

esteemer/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def render(performer_graph: Graph, candidate: BNode) -> dict:
9898
s_m["measure_name"] = str(measure.identifier)
9999
s_m["measure_title"] = measure.value(DCTERMS.title).value
100100
s_m["comparator_type"] = candidate_resource.value(
101-
SLOWMO.RegardingComparator / RDFS.label
101+
SLOWMO.RegardingComparator / SLOWMO.DisplayName
102102
)
103103
return s_m
104104

utils/namespace/_SLOWMO.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ class SLOWMO(AliasingDefinedNamespace):
2525
Selected: URIRef
2626
Display: URIRef
2727
PerformanceMonth: URIRef
28+
DisplayName: URIRef

0 commit comments

Comments
 (0)