public function test04CreateConceptWithoutURIUniquePrefLabelNoApiKey() { // create concept without URI. but with unique prefLabel. Api Key is missng. print "\n\n test04 ... \n"; $randomn = rand(0, 2048); $prefLabel = 'testPrefLable_' . $randomn; $xml = '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:openskos="http://openskos.org/xmlns#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmi="http://dublincore.org/documents/dcmi-terms/#">' . '<rdf:Description>' . '<rdf:type rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>' . '<skos:prefLabel xml:lang="nl">' . $prefLabel . '</skos:prefLabel>' . '<skos:inScheme rdf:resource="' . SCHEMA_URI_1 . '"/>' . '<openskos:set>' . OPENSKOS_SET_code . '</openskos:set>' . '<openskos:tenant>' . TENANT . '</openskos:tenant>' . '</rdf:Description>' . '</rdf:RDF>'; $response = RequestResponse::CreateConceptNoApikeyRequest($this->client, $xml, "true"); if ($response->getStatus() == 201) { array_push($this->abouts, $this->getAbout($response)); } $this->resultMessaging($response); $this->AssertEquals(412, $response->getStatus()); }