diff --git a/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/coprincipalinvestigator/CoPIGrantCountQueryRunner.java b/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/coprincipalinvestigator/CoPIGrantCountQueryRunner.java index 34f29f60..4fece38e 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/coprincipalinvestigator/CoPIGrantCountQueryRunner.java +++ b/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/coprincipalinvestigator/CoPIGrantCountQueryRunner.java @@ -57,7 +57,7 @@ public class CoPIGrantCountQueryRunner implements QueryRunner { private static final String SPARQL_QUERY_COMMON_OPTIONAL_BLOCK = "" + "OPTIONAL {" - + "?Grant core:dateTimeInterval ?dateTimeIntervalValue . " + + "?Role core:dateTimeInterval ?dateTimeIntervalValue . " + "?dateTimeIntervalValue core:start ?startDate . " + "?startDate core:dateTime ?startDateTimeValue . " + "OPTIONAL {" diff --git a/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/persongrantcount/PersonGrantCountQueryRunner.java b/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/persongrantcount/PersonGrantCountQueryRunner.java index 3c97057c..10aa0f00 100644 --- a/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/persongrantcount/PersonGrantCountQueryRunner.java +++ b/src/edu/cornell/mannlib/vitro/webapp/visualization/freemarker/persongrantcount/PersonGrantCountQueryRunner.java @@ -58,7 +58,7 @@ public class PersonGrantCountQueryRunner implements QueryRunner>{ private static final String SPARQL_QUERY_COMMON_OPTIONAL_BLOCK = "" + "OPTIONAL {" - + "?Grant core:dateTimeInterval ?dateTimeIntervalValue . " + + "?Role core:dateTimeInterval ?dateTimeIntervalValue . " + "?dateTimeIntervalValue core:start ?startDate . " + "?startDate core:dateTime ?startDateTimeValue . " + "OPTIONAL {"