diff --git a/productMods/config/listViewConfig-hasRole.xml b/productMods/config/listViewConfig-hasRole.xml
index 471b748e..e5c72fad 100644
--- a/productMods/config/listViewConfig-hasRole.xml
+++ b/productMods/config/listViewConfig-hasRole.xml
@@ -50,6 +50,14 @@
}
+ OPTIONAL { ?role core:relatedBy ?activity .
+ LET (?activityName := afn:localname(?activity))
+ OPTIONAL { ?activity rdfs:label ?activityLabel }
+
+
+ ?activity vitro:mostSpecificType ?subclass
+
+ }
OPTIONAL { ?role rdfs:label ?roleLabel }
OPTIONAL { ?role core:hideFromDisplay ?hideThis }
OPTIONAL { ?role core:dateTimeInterval ?dateTimeInterval
@@ -80,6 +88,22 @@
}
+
+ PREFIX core: <http://vivoweb.org/ontology/core#>
+ PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+ PREFIX vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#>
+
+ CONSTRUCT {
+ ?subject ?property ?role .
+ ?role core:relatedBy ?activity .
+ ?activity vitro:mostSpecificType ?subclass .
+ } WHERE {
+ ?subject ?property ?role .
+ ?role core:relatedBy ?activity .
+ ?activity vitro:mostSpecificType ?subclass
+ }
+
+
PREFIX core: <http://vivoweb.org/ontology/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
@@ -137,6 +161,10 @@
?subject ?property ?role .
?role core:roleContributesTo ?activity .
?activity rdfs:label ?activityName
+ } UNION {
+ ?subject ?property ?role .
+ ?role core:relatedBy ?activity .
+ ?activity rdfs:label ?activityName
}
}