Ejemplo n.º 1
0
 public function testGetResourceProperties()
 {
     $graph = new ExtendedGraph();
     $graph->add_resource_triple('http://some/subject/1', 'http://some/predicate', 'http://value/1');
     $graph->add_resource_triple('http://some/subject/2', 'http://some/predicate', 'http://value/2');
     $graph->add_resource_triple('http://some/subject/3', 'http://some/predicate', 'http://value/3');
     $values = $graph->get_resource_properties('http://some/predicate');
     $this->assertEquals($values, array('http://value/1', 'http://value/2', 'http://value/3'), 'should have returned 3 values');
 }