NIHVIVO-1940
1) Fixing the queries to retrieve date/time information from the role and not from the grant.
This commit is contained in:
parent
0c77e507f6
commit
bf715d7425
2 changed files with 2 additions and 2 deletions
|
@ -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 {"
|
||||||
|
|
|
@ -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 {"
|
||||||
|
|
Loading…
Add table
Reference in a new issue