Ejemplo n.º 1
0
 public function testDeleteNonStringNamespace()
 {
     $this->setExpectedException('InvalidArgumentException', '$prefix should be a string and cannot be null or empty');
     EasyRdf_Namespace::delete($this);
 }
 public function tearDown()
 {
     EasyRdf_Namespace::reset();
     EasyRdf_Namespace::delete('example');
 }
Ejemplo n.º 3
0
 public static function parse_query($wp)
 {
     if (!array_key_exists('__datadump', $wp->query_vars)) {
         return;
     }
     //$format = $this->map_mime_request();
     include 'library/EasyRdf.php';
     include 'library/object-handlers.php';
     foreach ($this->standard_namespaces as $key => $value) {
         EasyRdf_Namespace::set($key, $value);
     }
     EasyRdf_Namespace::delete("rss");
     $graph = new EasyRdf_Graph();
     //$lh_rdf_object_handlers = new LH_rdf_object_handlers($format);
     die;
 }
Ejemplo n.º 4
0
 public function tearDown()
 {
     EasyRdf_Namespace::delete('ex');
 }
Ejemplo n.º 5
0
 public function tearDown()
 {
     EasyRdf_Literal::deleteDatatypeMapping('ex:mytype');
     EasyRdf_Namespace::delete('ex');
 }
Ejemplo n.º 6
0
 public function testDeleteNonStringNamespace()
 {
     $this->setExpectedException('InvalidArgumentException');
     EasyRdf_Namespace::delete($this);
 }