code: public static String generateSuperclassPattern(URI origin, String matchVariable) {
          return new StringBuilder()
                  .append(sparqlWrapUri(origin)).append(" ")
                  .append(sparqlWrapUri(RDFS.subClassOf.getURI())).append("+ ")
                  .append("?").append(matchVariable).append(" .")
                  .toString();
      }
docs: Generate a pattern for matching var to the superclasses of clazz
  
  @param origin
  @param matchVariable
  @return