public function testToString()
 {
     $uri = new EasyRdf_ParsedUri('http://example.com/foo/bar?q#f');
     $this->assertSame("http://example.com/foo/bar?q#f", $uri->toString());
 }
 private function guessContainerUri()
 {
     $parsedUrl = new ParsedUri(rtrim($this->context->getQueryStrippedUri(), '/'));
     $parsedUrl->normalise()->setPath(dirname($parsedUrl->getPath()));
     return $parsedUrl->toString();
 }