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

@return string N-triples string, containing subject, predicate and object

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

@api

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