public function toNQuads()
    {
        $string = '"'.$this->encodeStringLitralForNQuads($this->getValue()).'"';

        if ($this->getLanguage() !== null) {
            $string .= '@'.$this->getLanguage();
        } elseif ($this->getDatatype() !== null) {
            $string .= '^^<'.$this->getDatatype().'>';
        }

        return $string;
    }
public function toNQuads()
    {
        $string = '"'.$this->encodeStringLitralForNQuads($this->getValue()).'"';

        if ($this->getLanguage() !== null) {
            $string .= '@'.$this->getLanguage();
        } elseif ($this->getDatatype() !== null) {
            $string .= '^^<'.$this->getDatatype().'>';
        }

        return $string;
    }
public function toNQuads ( ) { $ string = '"' . $ this -> encodeStringLitralForNQuads ( $ this -> getValue ( ) ) . '"' ; if ( $ this -> getLanguage ( ) !== null ) { $ string .= '@' . $ this -> getLanguage ( ) ; } elseif ( $ this -> getDatatype ( ) !== null ) { $ string .= '^^<' . $ this -> getDatatype ( ) . '>' ; } return $ string ; }
Transform this Node instance to a n-quads string, if possible.

@return string N-quads string representation of this instance

@api

@since 0.1
Transform this Node instance to a n - quads string if possible .