protected function resolveIri($iri)
    {
        if (null === $this->document) {
            $base = new IRI();
        } else {
            $base = $this->document->getIri(true);
        }

        return $base->resolve($iri);
    }
protected function resolveIri($iri)
    {
        if (null === $this->document) {
            $base = new IRI();
        } else {
            $base = $this->document->getIri(true);
        }

        return $base->resolve($iri);
    }
protected function resolveIri ( $ iri ) { if ( null === $ this -> document ) { $ base = new IRI ( ) ; } else { $ base = $ this -> document -> getIri ( true ) ; } return $ base -> resolve ( $ iri ) ; }
Resolves an IRI against the document's IRI

If the graph isn't attached to a document or the document's IRI is
not set, the IRI is returned as-is.

@param string|IRI $iri The (relative) IRI to resolve

@return IRI The resolved IRI.
Resolves an IRI against the document s IRI