private function _alt_delete_all_annotations_for_triples($fromStore) { Timer::start('LiveUpdateDestination::_alt_delete_all_annotations_for_triples'); //$sparul = ""; foreach ($fromStore as $triple) { $axiomID = RDFtriple::recoverOWLAxiomId($this->oaiId, $triple['s'], $triple['p'], $triple['o']); $sparul = "Delete\nFrom <{$this->annotationGraphURI}> {<{$axiomID}> ?p ?o }\nFrom <{$this->annotationGraphURI}> {<{$axiomID}> ?p ?o } "; //TESTS>>>>>>>>>>>> if (Options::getOption('debug_run_tests')) { $countbefore = $this->_testsubject($axiomID, $this->annotationGraphURI); } //TESTS>>>>>>>>>>><< $odbc_result = $this->_odbc_sparul_execute($sparul); //TESTS>>>>>>>>>>>> if (Options::getOption('debug_run_tests')) { $countafter = $this->_testsubject($axiomID, $this->annotationGraphURI); $this->log(INFO, 'TEST _alt_delete_all_annotations_for_triples, before: ' . $countbefore . ' after: ' . $countafter . ' triples'); if ($countafter >= $countbefore && $countbefore > 0) { $this->log(WARN, 'TEST FAILED, BEFORE SHOULD BE BIGGER THAN AFTER'); } else { $this->log(INFO, 'SUCCESS'); } } //TESTS<<<<<<<<<<<< } $needed = Timer::stopAsString('LiveUpdateDestination::_alt_delete_all_annotations_for_triples'); $this->log(DEBUG, 'alt: deleted annotations for ' . count($fromStore) . ' triple directly' . $needed); }