/**
  * @param $class
  * @param $label
  * @return \core_kernel_classes_Resource
  */
 protected function instantiateClass($class, $label)
 {
     $instance = $this->itemsService->createInstance($class, $label);
     $this->assertIsA($instance, 'core_kernel_classes_Resource');
     $this->assertEquals($label, $instance->getLabel());
     $this->assertTrue(defined('RDFS_LABEL'));
     $instance->removePropertyValues(new \core_kernel_classes_Property(RDFS_LABEL));
     $instance->setLabel($label);
     $this->assertIsA($instance, 'core_kernel_classes_Resource');
     $this->assertEquals($label, $instance->getLabel());
     return $instance;
 }