public function toNQuads()
    {
        if ($this->isConcrete()) {
            if ($this->isQuad()) {
                return $this->getSubject()->toNQuads().' '.
                       $this->getPredicate()->toNQuads().' '.
                       $this->getObject()->toNQuads().' '.
                       $this->getGraph()->toNQuads().' .';
            } else {
                return $this->getSubject()->toNQuads().' '.
                       $this->getPredicate()->toNQuads().' '.
                       $this->getObject()->toNQuads().' .';
            }
        } else {
            throw new \Exception('A Statement has to be concrete in N-Quads.');
        }
    }
public function toNQuads()
    {
        if ($this->isConcrete()) {
            if ($this->isQuad()) {
                return $this->getSubject()->toNQuads().' '.
                       $this->getPredicate()->toNQuads().' '.
                       $this->getObject()->toNQuads().' '.
                       $this->getGraph()->toNQuads().' .';
            } else {
                return $this->getSubject()->toNQuads().' '.
                       $this->getPredicate()->toNQuads().' '.
                       $this->getObject()->toNQuads().' .';
            }
        } else {
            throw new \Exception('A Statement has to be concrete in N-Quads.');
        }
    }
public function toNQuads ( ) { if ( $ this -> isConcrete ( ) ) { if ( $ this -> isQuad ( ) ) { return $ this -> getSubject ( ) -> toNQuads ( ) . ' ' . $ this -> getPredicate ( ) -> toNQuads ( ) . ' ' . $ this -> getObject ( ) -> toNQuads ( ) . ' ' . $ this -> getGraph ( ) -> toNQuads ( ) . ' .' ; } else { return $ this -> getSubject ( ) -> toNQuads ( ) . ' ' . $ this -> getPredicate ( ) -> toNQuads ( ) . ' ' . $ this -> getObject ( ) -> toNQuads ( ) . ' .' ; } } else { throw new \ Exception ( 'A Statement has to be concrete in N-Quads.' ) ; } }
Transforms content of the Statement to n-quads form.

@return string N-Quads string containing subject, predicate, object and graph, if available

@throws \Exception if this instance is a non-concrete statement

@api

@since 0.1
Transforms content of the Statement to n - quads form .