code: public static boolean isURIRDFType(Term term) {
          if (term instanceof Function) {
              Function func = (Function) term;
              if (func.getArity() == 1 && (func.getFunctionSymbol() instanceof URITemplatePredicate)) {
                  Term t0 = func.getTerm(0);
                  if (t0 instanceof IRIConstant)
                      return ((IRIConstant) t0).getIRI().equals(RDF.TYPE);
                  // UGLY!! TODO: remove it
                  else if (t0 instanceof ValueConstant)
                      return ((ValueConstant) t0).getValue().equals(RDF.TYPE.getIRIString());
              }
          }
          return false;
      }
docs: check if the term is {@code URI("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")}