getClassService()->deleteTest(new core_kernel_classes_Resource($resource)); return true; } /** * * @author Patrick Plichart, patrick@taotesting.com * @param array $propertiesValues * @return core_kernel_classes_Resource */ public function createFromArray(array $propertiesValues) { if (!isset($propertiesValues[OntologyRdfs::RDFS_LABEL])) { $propertiesValues[OntologyRdfs::RDFS_LABEL] = ""; } $type = isset($propertiesValues[OntologyRdf::RDF_TYPE]) ? $propertiesValues[OntologyRdf::RDF_TYPE] : $this->getRootClass(); $label = $propertiesValues[OntologyRdfs::RDFS_LABEL]; //hmmm unset($propertiesValues[OntologyRdfs::RDFS_LABEL]); unset($propertiesValues[OntologyRdf::RDF_TYPE]); $resource = parent::create($label, $type, $propertiesValues); return $resource; } }