public function setUp()
 {
     if (requireExists('arc/ARC2.php')) {
         $this->_graph = new EasyRdf_Graph();
         $this->_serialiser = new EasyRdf_Serialiser_Arc();
         parent::setUp();
     } else {
         $this->markTestSkipped("ARC2 library is not available.");
     }
 }
示例#2
0
 public function setUp()
 {
     exec('which rapper', $output, $retval);
     if ($retval == 0) {
         $this->graph = new EasyRdf_Graph();
         $this->serialiser = new EasyRdf_Serialiser_Rapper();
         parent::setUp();
     } else {
         $this->markTestSkipped("The rapper command is not available on this system.");
     }
 }
 public function setUp()
 {
     exec('which dot', $output, $retval);
     if ($retval == 0) {
         $this->graph = new EasyRdf_Graph();
         $this->serialiser = new EasyRdf_Serialiser_GraphViz();
         // Put some data in the graph
         $joe = $this->graph->resource('http://www.example.com/joe#me');
         $joe->set('foaf:name', 'Joe Bloggs');
         $project = $this->graph->newBNode();
         $project->add('foaf:name', 'Project Name');
         $joe->add('foaf:project', $project);
         parent::setUp();
     } else {
         $this->markTestSkipped("The 'dot' command is not available on this system.");
     }
 }