diff --git a/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/ManageGrantsForIndividualController.java b/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/ManageGrantsForIndividualController.java index 5b43372a..94f7f09e 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/ManageGrantsForIndividualController.java +++ b/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/ManageGrantsForIndividualController.java @@ -66,13 +66,15 @@ public class ManageGrantsForIndividualController extends FreemarkerHttpServlet { + "PREFIX vitro: \n" + "PREFIX afn: \n" + "SELECT DISTINCT ?subclass ?role (str(?label2) as ?label) ?activity ?hideThis WHERE { \n" - + " ?subject ?roleProp ?role . \n" + + " ?subject ?role . \n" + " ?role a core:ResearcherRole . \n" + " ?role vitro:mostSpecificType ?subclass \n" - + " OPTIONAL { ?role core:relatedBy ?activity . \n" + + " OPTIONAL { ?role core:relatedBy ?activity . \n" + + " ?activity a core:Grant . \n" + " OPTIONAL {?activity rdfs:label ?label2} \n" + " } \n" + " OPTIONAL { ?role ?activity . \n" + + " ?activity a core:Project . \n" + " OPTIONAL {?activity rdfs:label ?label2} \n" + " } \n" + " OPTIONAL { ?role core:hideFromDisplay ?hideThis } \n"