NIHVIVO-1940

1) Fixing the queries to retrieve date/time information from the role and not from the grant.
This commit is contained in:
bkoniden 2011-01-28 14:54:17 +00:00
parent 0c77e507f6
commit bf715d7425
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ public class CoPIGrantCountQueryRunner implements QueryRunner<CoPIData> {
private static final String SPARQL_QUERY_COMMON_OPTIONAL_BLOCK = "" private static final String SPARQL_QUERY_COMMON_OPTIONAL_BLOCK = ""
+ "OPTIONAL {" + "OPTIONAL {"
+ "?Grant core:dateTimeInterval ?dateTimeIntervalValue . " + "?Role core:dateTimeInterval ?dateTimeIntervalValue . "
+ "?dateTimeIntervalValue core:start ?startDate . " + "?dateTimeIntervalValue core:start ?startDate . "
+ "?startDate core:dateTime ?startDateTimeValue . " + "?startDate core:dateTime ?startDateTimeValue . "
+ "OPTIONAL {" + "OPTIONAL {"

View file

@ -58,7 +58,7 @@ public class PersonGrantCountQueryRunner implements QueryRunner<Set<Grant>>{
private static final String SPARQL_QUERY_COMMON_OPTIONAL_BLOCK = "" private static final String SPARQL_QUERY_COMMON_OPTIONAL_BLOCK = ""
+ "OPTIONAL {" + "OPTIONAL {"
+ "?Grant core:dateTimeInterval ?dateTimeIntervalValue . " + "?Role core:dateTimeInterval ?dateTimeIntervalValue . "
+ "?dateTimeIntervalValue core:start ?startDate . " + "?dateTimeIntervalValue core:start ?startDate . "
+ "?startDate core:dateTime ?startDateTimeValue . " + "?startDate core:dateTime ?startDateTimeValue . "
+ "OPTIONAL {" + "OPTIONAL {"