Skip to content

Commit

Permalink
removed invalid check (vivo-project#437)
Browse files Browse the repository at this point in the history
Co-authored-by: Georgy Litvinov <[email protected]>
  • Loading branch information
litvinovg and litvinovg authored Jan 17, 2024
1 parent 8107918 commit 1f50f6e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -251,7 +251,6 @@ private List<Property> getPossibleOPs(List<ObjectProperty> populatedOPs, List<Pr
WebappDaoFactory wadf = vreq.getLanguageNeutralWebappDaoFactory();
PropertyInstanceDao piDao = wadf.getPropertyInstanceDao();
ObjectPropertyDao opDao = wadf.getObjectPropertyDao();
Set<String> vClassUris = subject.getVClasses().stream().map(vclass -> vclass.getURI()).collect(Collectors.toSet());
Map<String, Property> possiblePropertiesMap = new HashMap<String,Property>();

Collection<PropertyInstance> allPossiblePI = piDao.getAllPossiblePropInstForIndividual(subject.getURI());
@@ -267,9 +266,6 @@ private List<Property> getPossibleOPs(List<ObjectProperty> populatedOPs, List<Pr
if (isInPopulatedOPs(populatedOPs, possibleOP)) {
continue;
}
if (!vClassUris.contains(possibleOP.getDomainVClassURI())) {
continue;
}
possiblePropertiesMap.put(possibleOP.getURI(), possibleOP);
} else {
log.error("a property instance in the Collection created by PropertyInstanceDao.getAllPossiblePropInstForIndividual() is unexpectedly null");

0 comments on commit 1f50f6e

Please sign in to comment.