code: public function getIri()
      {
          if (null === $this->iri) {
              return null;
          }
  
          // Is it an absolute IRI?
          if (false !== strpos($this->iri, ':')) {
              return $this->iri;
          }
  
          if ('#' === $this->iri[0]) {
              return substr($this->iri, 1);
          }
  
          return $this->iri;
      }
docs: Get the IRI (fragment)
  
  @return string The IRI fragment