function searchUpdateFragment($fragment) { $index = searchGetIndex(); searchDeleteFragment($fragment); searchImportFragment($fragment, $index); $index->commit(); }
/** * Removes a single Mashup from RDF Store by deleting all triples describing the mashup URI * as well as all fragments associated with this mashup which are not part of other mashups * * @param Mashup $mashup Mashup Object */ public function removeMashup($mashup) { $this->_removeResWithAllProps($mashup->getUri()); foreach ($mashup->getFragments() as $f) { // consistency check if ($this->_fragmentCount($f->getUri()) == 0) { $this->_removeFragment($f); searchDeleteFragment($f); } } }