1. Person to grants was creating wrong models for each person. Fixed.
This commit is contained in:
parent
aee1d00801
commit
daa9d61d04
3 changed files with 517 additions and 513 deletions
|
@ -174,7 +174,7 @@ public class TemporalGrantVisualizationRequestHandler implements
|
||||||
if (organizationWithAssociatedPeople.getSubEntities() != null) {
|
if (organizationWithAssociatedPeople.getSubEntities() != null) {
|
||||||
|
|
||||||
grantURIForAssociatedPeopleToVO = SelectOnModelUtilities
|
grantURIForAssociatedPeopleToVO = SelectOnModelUtilities
|
||||||
.getPublicationsForAssociatedPeople(dataset, organizationWithAssociatedPeople.getSubEntities());
|
.getGrantsForAssociatedPeople(dataset, organizationWithAssociatedPeople.getSubEntities());
|
||||||
|
|
||||||
organizationEntity = EntityComparisonUtilityFunctions.mergeEntityIfShareSameURI(
|
organizationEntity = EntityComparisonUtilityFunctions.mergeEntityIfShareSameURI(
|
||||||
organizationEntity,
|
organizationEntity,
|
||||||
|
|
|
@ -53,7 +53,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
+ " "
|
+ " "
|
||||||
+ " } "
|
+ " } "
|
||||||
+ " WHERE { "
|
+ " WHERE { "
|
||||||
+ " ?Person core:" + roleTypeProperty + " ?Role . "
|
+ " <" + personURI + "> core:" + roleTypeProperty + " ?Role . "
|
||||||
+ " ?Role core:roleIn ?Grant . "
|
+ " ?Role core:roleIn ?Grant . "
|
||||||
+ " ?Grant rdfs:label ?grantLabel . "
|
+ " ?Grant rdfs:label ?grantLabel . "
|
||||||
+ " "
|
+ " "
|
||||||
|
@ -68,7 +68,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
+ " "
|
+ " "
|
||||||
+ " } "
|
+ " } "
|
||||||
+ " WHERE { "
|
+ " WHERE { "
|
||||||
+ " ?Person core:" + roleTypeProperty + " ?Role . "
|
+ " <" + personURI + "> core:" + roleTypeProperty + " ?Role . "
|
||||||
+ " ?Role core:roleIn ?Grant . "
|
+ " ?Role core:roleIn ?Grant . "
|
||||||
+ " "
|
+ " "
|
||||||
+ " ?Grant core:dateTimeInterval ?dateTimeIntervalValueForGrant . "
|
+ " ?Grant core:dateTimeInterval ?dateTimeIntervalValueForGrant . "
|
||||||
|
@ -91,7 +91,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
// + " ?Grant vivosocnet:endDateTimeOnRole ?endDateTimeValue . "
|
// + " ?Grant vivosocnet:endDateTimeOnRole ?endDateTimeValue . "
|
||||||
+ " } "
|
+ " } "
|
||||||
+ " WHERE { "
|
+ " WHERE { "
|
||||||
+ " ?Person core:" + roleTypeProperty + " ?Role . "
|
+ " <" + personURI + "> core:" + roleTypeProperty + " ?Role . "
|
||||||
+ " ?Role core:roleIn ?Grant . "
|
+ " ?Role core:roleIn ?Grant . "
|
||||||
+ " "
|
+ " "
|
||||||
+ " ?Role core:dateTimeInterval ?dateTimeIntervalValue . "
|
+ " ?Role core:dateTimeInterval ?dateTimeIntervalValue . "
|
||||||
|
@ -139,6 +139,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
|
|
||||||
for (String currentQuery : constructQueries) {
|
for (String currentQuery : constructQueries) {
|
||||||
|
|
||||||
|
|
||||||
Query query = null;
|
Query query = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -149,6 +150,7 @@ private Set<String> constructPersonGrantsQueryTemplate(String constructProperty,
|
||||||
log.error(currentQuery);
|
log.error(currentQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QueryExecution qe = QueryExecutionFactory.create(query, dataset);
|
QueryExecution qe = QueryExecutionFactory.create(query, dataset);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -488,7 +488,9 @@ public class SelectOnModelUtilities {
|
||||||
person.addActivities(getPublicationForEntity(
|
person.addActivities(getPublicationForEntity(
|
||||||
personPublicationsQuery.getQueryResult(),
|
personPublicationsQuery.getQueryResult(),
|
||||||
allDocumentURIToVOs));
|
allDocumentURIToVOs));
|
||||||
|
|
||||||
}
|
}
|
||||||
return allDocumentURIToVOs;
|
return allDocumentURIToVOs;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue