public function testPrimaryTopic() { $doc = new EasyRdf_Resource('http://example.com/foaf.rdf'); $person = new EasyRdf_Resource('http://example.com/foaf.rdf#me'); $doc->add('foaf:primaryTopic', $person); $this->assertEquals('http://example.com/foaf.rdf#me', $doc->primaryTopic()->getUri()); }