Skip to content

Commit

Permalink
removed invalid check (#437)
Browse files Browse the repository at this point in the history
Co-authored-by: Georgy Litvinov <[email protected]>
  • Loading branch information
2 people authored and chenejac committed Apr 3, 2024
1 parent ce7562d commit d27f3b2
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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");
Expand Down

0 comments on commit d27f3b2

Please sign in to comment.