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.");
     }
 }
Exemplo n.º 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.");
     }
 }
Exemplo n.º 3
0
 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.");
     }
 }
Exemplo n.º 4
0
 public function tearDown()
 {
     parent::tearDown();
     EasyRdf_Namespace::resetNamespaces();
     EasyRdf_Namespace::reset();
 }