code: private static Predicate<Graph> checkCardinality(final IRI model) {
          return graph -> {
              final Map<IRI, Long> cardinality = graph.stream()
                  .filter(triple -> propertiesWithUriRange.contains(triple.getPredicate()))
                  .collect(groupingBy(Triple::getPredicate, counting()));
  
              if (LDP.IndirectContainer.equals(model)) {
                  if (isNull(cardinality.get(LDP.insertedContentRelation)) || !hasMembershipProps(cardinality)) {
                      return true;
                  }
              } else if (LDP.DirectContainer.equals(model) && !hasMembershipProps(cardinality)) {
                  return true;
              }
  
              return cardinality.entrySet().stream().map(Map.Entry::getValue).anyMatch(val -> val > 1);
          };
      }
docs: Verify that the cardinality of the `propertiesWithUriRange` properties. Keep any whose cardinality is > 1