test_class.declarator: FAST_SERVER_PORT = 8023
test_class.modifier: private static final
test_class.original_string: private static final int FAST_SERVER_PORT = 8023;
test_class.type: int
test_class.var_name: FAST_SERVER_PORT
test_class.declarator: fastServerContainer
test_class.modifier: private
test_class.original_string: private ServerMock fastServerContainer;
test_class.type: ServerMock
test_class.var_name: fastServerContainer
test_class.declarator: fastServer
test_class.modifier: private
test_class.original_string: private ContainerServer fastServer;
test_class.type: ContainerServer
test_class.var_name: fastServer
test_class.declarator: fastConnection
test_class.modifier: private
test_class.original_string: private SocketConnection fastConnection;
test_class.type: SocketConnection
test_class.var_name: fastConnection
test_class.declarator: metaExp = "INSERT DATA {\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Experiment> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1> <http://iguana-benchmark.eu/properties/dataset> <http://iguana-benchmark.eu/resource/dbpedia> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1> <http://iguana-benchmark.eu/properties/task> <http://iguana-benchmark.eu/resource/1/1/1> .\n" +
  			"  <http://iguana-benchmark.eu/resource/dbpedia> <http://www.w3.org/2000/01/rdf-schema#label> \"dbpedia\" .\n" +
  			"  <http://iguana-benchmark.eu/resource/dbpedia> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Dataset> .\n" +
  			"  <http://iguana-benchmark.eu/resource/virtuoso> <http://www.w3.org/2000/01/rdf-schema#label> \"virtuoso\" .\n" +
  			"  <http://iguana-benchmark.eu/resource/virtuoso> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Connection> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1/1> <http://www.w3.org/2000/01/rdf-schema#startDate> \"???\"^^<http://www.w3.org/2001/XMLSchema#dateTime> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/resource/ClassName> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Task> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1/1> <http://iguana-benchmark.eu/properties/connection> <http://iguana-benchmark.eu/resource/virtuoso> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Suite> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1> <http://iguana-benchmark.eu/properties/experiment> <http://iguana-benchmark.eu/resource/1/1> .\n" +
  			"}"
test_class.modifier: private
test_class.original_string: private String metaExp = "INSERT DATA {\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Experiment> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1> <http://iguana-benchmark.eu/properties/dataset> <http://iguana-benchmark.eu/resource/dbpedia> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1> <http://iguana-benchmark.eu/properties/task> <http://iguana-benchmark.eu/resource/1/1/1> .\n" +
  			"  <http://iguana-benchmark.eu/resource/dbpedia> <http://www.w3.org/2000/01/rdf-schema#label> \"dbpedia\" .\n" +
  			"  <http://iguana-benchmark.eu/resource/dbpedia> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Dataset> .\n" +
  			"  <http://iguana-benchmark.eu/resource/virtuoso> <http://www.w3.org/2000/01/rdf-schema#label> \"virtuoso\" .\n" +
  			"  <http://iguana-benchmark.eu/resource/virtuoso> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Connection> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1/1> <http://www.w3.org/2000/01/rdf-schema#startDate> \"???\"^^<http://www.w3.org/2001/XMLSchema#dateTime> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/resource/ClassName> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Task> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1/1/1> <http://iguana-benchmark.eu/properties/connection> <http://iguana-benchmark.eu/resource/virtuoso> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://iguana-benchmark.eu/class/Suite> .\n" +
  			"  <http://iguana-benchmark.eu/resource/1> <http://iguana-benchmark.eu/properties/experiment> <http://iguana-benchmark.eu/resource/1/1> .\n" +
  			"}";
test_class.type: String
test_class.var_name: metaExp
test_class.declarator: dataExp = "INSERT DATA {\n"+
  "  <http://iguana-benchmark.eu/resource/a> <http://iguana-benchmark.eu/properties/b> \"c\" .\n"+
  "}"
test_class.modifier: private
test_class.original_string: private String dataExp = "INSERT DATA {\n"+
  "  <http://iguana-benchmark.eu/resource/a> <http://iguana-benchmark.eu/properties/b> \"c\" .\n"+
  "}";
test_class.type: String
test_class.var_name: dataExp
test_class.file: iguana.resultprocessor/src/test/java/org/aksw/iguana/rp/storage/impl/TriplestoreStorageTest.java
test_class.identifier: TriplestoreStorageTest
test_case.body: @Test
  	public void metaTest() throws IOException{
  		fastServerContainer = new ServerMock();
          fastServer = new ContainerServer(fastServerContainer);
          fastConnection = new SocketConnection(fastServer);
          SocketAddress address1 = new InetSocketAddress(FAST_SERVER_PORT);
          fastConnection.connect(address1);
          
          String host = "http://localhost:8023";
          TriplestoreStorage store = new TriplestoreStorage(host, host);
          Properties p = new Properties();
  		p.put(COMMON.EXPERIMENT_TASK_ID_KEY, "1/1/1");
  	    p.setProperty(COMMON.EXPERIMENT_ID_KEY, "1/1");
  	    p.setProperty(COMMON.CONNECTION_ID_KEY, "virtuoso");
  	    p.setProperty(COMMON.SUITE_ID_KEY, "1");
  	    p.setProperty(COMMON.DATASET_ID_KEY, "dbpedia");
  		p.put(COMMON.EXPERIMENT_TASK_CLASS_ID_KEY, "ClassName");
  		p.put(COMMON.RECEIVE_DATA_START_KEY, "true");
  	    p.put(COMMON.EXTRA_META_KEY, new Properties());
  	    p.put(COMMON.NO_OF_QUERIES, 2);
          store.addMetaData(p);
          store.commit();
          assertEquals(metaExp.trim(), fastServerContainer.getActualContent().trim().replaceAll("[0-9][0-9][0-9][0-9]\\-[0-9][0-9]\\-[0-9][0-9]T[0-9][0-9]\\:[0-9][0-9]\\:[0-9][0-9]\\.[0-9]+Z", "???"));//2020-09-21T22:06:45.109Z
  	}
test_case.class_method_signature: TriplestoreStorageTest.metaTest()
test_case.full_signature: @Test public void metaTest()
test_case.identifier: metaTest
test_case.invocations: connect put setProperty setProperty setProperty setProperty put put put put addMetaData commit assertEquals trim replaceAll trim getActualContent
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void metaTest()
focal_class.declarator: blockRequest = UpdateFactory.create()
focal_class.modifier: private
focal_class.original_string: private UpdateRequest blockRequest = UpdateFactory.create();
focal_class.type: UpdateRequest
focal_class.var_name: blockRequest
focal_class.declarator: updateEndpoint
focal_class.modifier: private
focal_class.original_string: private String updateEndpoint;
focal_class.type: String
focal_class.var_name: updateEndpoint
focal_class.declarator: endpoint
focal_class.modifier: private
focal_class.original_string: private String endpoint;
focal_class.type: String
focal_class.var_name: endpoint
focal_class.declarator: user
focal_class.modifier: private
focal_class.original_string: private String user;
focal_class.type: String
focal_class.var_name: user
focal_class.declarator: pwd
focal_class.modifier: private
focal_class.original_string: private String pwd;
focal_class.type: String
focal_class.var_name: pwd
focal_class.file: iguana.resultprocessor/src/main/java/org/aksw/iguana/rp/storage/impl/TriplestoreStorage.java
focal_class.identifier: TriplestoreStorage
focal_class.class_method_signature: TriplestoreStorage.TriplestoreStorage(String endpoint, String updateEndpoint, String user, String pwd, String baseUri)
focal_class.full_signature: public  TriplestoreStorage(String endpoint, String updateEndpoint, String user, String pwd, String baseUri)
focal_class.identifier: TriplestoreStorage
focal_class.modifiers: public
focal_class.parameters: (String endpoint, String updateEndpoint, String user, String pwd, String baseUri)
focal_class.signature:  TriplestoreStorage(String endpoint, String updateEndpoint, String user, String pwd, String baseUri)
focal_class.class_method_signature: TriplestoreStorage.TriplestoreStorage(String endpoint, String updateEndpoint, String baseUri)
focal_class.full_signature: public  TriplestoreStorage(String endpoint, String updateEndpoint, String baseUri)
focal_class.identifier: TriplestoreStorage
focal_class.modifiers: public
focal_class.parameters: (String endpoint, String updateEndpoint, String baseUri)
focal_class.signature:  TriplestoreStorage(String endpoint, String updateEndpoint, String baseUri)
focal_class.class_method_signature: TriplestoreStorage.TriplestoreStorage(String endpoint, String updateEndpoint)
focal_class.full_signature: public  TriplestoreStorage(String endpoint, String updateEndpoint)
focal_class.identifier: TriplestoreStorage
focal_class.modifiers: public
focal_class.parameters: (String endpoint, String updateEndpoint)
focal_class.signature:  TriplestoreStorage(String endpoint, String updateEndpoint)
focal_class.class_method_signature: TriplestoreStorage.commit()
focal_class.full_signature: @Override public void commit()
focal_class.identifier: commit
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void commit()
focal_class.class_method_signature: TriplestoreStorage.createHttpClient()
focal_class.full_signature: private HttpClient createHttpClient()
focal_class.identifier: createHttpClient
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: HttpClient
focal_class.signature: HttpClient createHttpClient()
focal_class.class_method_signature: TriplestoreStorage.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends TripleBasedStorage
focal_method.body: @Override
  	public void commit() {
  		if (metricResults.size() == 0)
  			return;
  
  		StringWriter results = new StringWriter();
  		RDFDataMgr.write(results, metricResults, Lang.NT);
  		String update = "INSERT DATA {" + results.toString() + "}";
  		//Create Update Request from block
  		blockRequest.add(update);
  
  		//submit Block to Triple Store
  		UpdateProcessor processor = UpdateExecutionFactory
  				.createRemote(blockRequest, updateEndpoint, createHttpClient());
  		processor.execute();
  		blockRequest = new UpdateRequest();
  	}
focal_method.class_method_signature: TriplestoreStorage.commit()
focal_method.full_signature: @Override public void commit()
focal_method.identifier: commit
focal_method.invocations: size write toString add createRemote createHttpClient execute
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void commit()