public function testSerializeGraphToString() { $this->markTestNeedsDatabase(); $this->authenticateDbUser(); $result = $this->_object->serializeGraphToString('http://localhost/OntoWiki/Config/'); $this->assertTrue(is_string($result)); }
public function testSerializeGraphToStringWithN3() { $this->markTestNeedsDatabase(); $this->authenticateDbUser(); $g = 'http://localhost/OntoWiki/Config/'; $this->_object->initializeWithFormat('ttl'); $result1 = $this->_object->serializeGraphToString($g); require_once 'Erfurt/Syntax/RdfSerializer/Adapter/Turtle.php'; $adapter = new Erfurt_Syntax_RdfSerializer_Adapter_Turtle(); $result2 = $adapter->serializeGraphToString($g); $this->assertEquals($result1, $result2); }