code: public static String generateLabelPattern(String var, String labelVar) {
          return new StringBuilder()
                  .append("?").append(var).append(" ")
                  .append(sparqlWrapUri(RDFS.label.getURI())).append(" ")
                  .append("?").append(labelVar).append(". ")
                  .toString();
      }
docs: Generate a pattern for binding to a label
  
  @param var      the name of the variable
  @param labelVar the name of the label varible
  @return