Esempio n. 1
0
 public function newInstance($subject, $predicate, $object, $graph = null)
 {
     $world = librdf_php_get_world();
     $factory = new NodeFactory();
     try {
         $redlandSubject = $factory->createRedlandNodeFromNode($subject);
         $redlandPredicate = $factory->createRedlandNodeFromNode($predicate);
         $redlandObject = $factory->createRedlandNodeFromNode($object);
         $statement = librdf_new_statement_from_nodes($world, $redlandSubject, $redlandPredicate, $redlandObject);
         return new Statement($statement, $graph);
     } catch (\Exception $e) {
         $this->markTestSkipped('Can\'t execute this test because: ' . $e->getMessage());
     }
 }