/** * Write definition for wdno:P123 class to use as novalue * @param string $id */ private function writeNovalueClass($id) { $this->writer->about(RdfVocabulary::NSP_NOVALUE, $id)->say('a')->is('owl', 'Class'); $internalClass = $this->writer->blank(); $this->writer->say('owl', 'complementOf')->is('_', $internalClass); $this->writer->about('_', $internalClass)->say('a')->is('owl', 'Restriction'); $this->writer->say('owl', 'onProperty')->is(RdfVocabulary::NSP_DIRECT_CLAIM, $id); $this->writer->say('owl', 'someValuesFrom')->is('owl', 'Thing'); }