code: public String getObject() {
          if (triple.getObject() instanceof Literal) {
              return ((Literal) triple.getObject()).getLexicalForm();
          } else if (triple.getObject() instanceof IRI) {
              return ((IRI) triple.getObject()).getIRIString();
          }
          return triple.getObject().ntriplesString();
      }
docs: Get the object of the triple as a string.
  
  @return the string form of the object