private function _alternativeStrategy() { /* * PREPARATION * * */ $languageProperties = $this->languageProperties; //$this->_prepare($languageProperties); $this->odbc = ODBC::getDefaultConnection(); $graphURI = $this->graphURI; $annotationGraphURI = $this->annotationGraphURI; $generateOWLAxiomAnnotations = $this->generateOWLAxiomAnnotations; //echo TheContainer::get(LUD_SPARQLFILTERWITHLANGUAGES ) ; /*GET TRIPLES*/ $store = new SPARQLToRDFTriple($this->uri, $this->language); $tripleDiff = new TripleDiff($this->uri, $this->language, $this->producesFilterList, $store); $diff = $tripleDiff->simplerDiff($this->tripleFromExtractor); $this->odbc = ODBC::getDefaultConnection(); $fromStore = $diff['triplesFromStore']; $subResourceAsObjectStore = $diff['subResourceAsObjectStore']; $this->_alt_delete_all_triples_RDFTripleArray($fromStore); $this->_alt_delete_subresources($subResourceAsObjectStore); if ($generateOWLAxiomAnnotations) { $this->_odbc_sparul_delete_annotations(); $this->_odbc_sparul_delete_Annotations_of_subResources('alternative'); } /* * STRATEGIES FOR INSERTION * */ Timer::start('LiveUpdateDestination::_odbc_insert_total'); //$this->_odbc_sparul_insert_triples_and_annotations($graphURI,$annotationGraphURI,$generateOWLAxiomAnnotations); $this->_odbc_ttlp_insert_triples($this->tripleFromExtractor); $this->_odbc_ttlp_insert_annotations($this->tripleFromExtractor); //$this->_odbc_ttlp_insert_triples_and_annotations($this->tripleFromExtractor); Timer::stop('LiveUpdateDestination::_odbc_insert_total'); $this->log(INFO, 'no of queries, insert: ' . $this->counterInserts . ' delete: ' . $this->counterDelete . ' odbc_total: ' . $this->counterTotalODBCOperations); }