src/main/java/org/vivoweb/harvester/ingest/AcademicFetchFromED.java
/**
		 * Template to fit in different JenaConnect queries.
		 * @param sparqlQuery contains the query
		 * @param vivoJena connection to SDB jenas
		 * @throws IOException default exception thrown
		 */
Template to fit in different JenaConnect queries.
@param sparqlQuery contains the query
@param vivoJena connection to SDB jenas
@throws IOException default exception thrown
Template to fit in different JenaConnect queries . @param sparqlQuery contains the query @param vivoJena connection to SDB jenas @throws IOException default exception thrown
private void runTDBSparqlUpdateTemplate(String sparqlQuery, TDBJenaConnect vivoJena) throws IOException {
			Dataset ds = vivoJena.getDataset();
			ds.begin(ReadWrite.WRITE);
			GraphStore graphStore = GraphStoreFactory.create(ds);
			UpdateRequest request = UpdateFactory.create(sparqlQuery);
			UpdateProcessor proc = UpdateExecutionFactory.create(request, graphStore);
			proc.execute();
			ds.commit();
		}
private void runTDBSparqlUpdateTemplate ( String sparqlQuery , TDBJenaConnect vivoJena ) throws IOException { Dataset ds = vivoJena . getDataset ( ) ; ds . begin ( ReadWrite . WRITE ) ; GraphStore graphStore = GraphStoreFactory . create ( ds ) ; UpdateRequest request = UpdateFactory . create ( sparqlQuery ) ; UpdateProcessor proc = UpdateExecutionFactory . create ( request , graphStore ) ; proc . execute ( ) ; ds . commit ( ) ; }
Template to fit in different JenaConnect queries.
Template to fit in different JenaConnect queries .