test_class.file: iguana.resultprocessor/src/test/java/org/aksw/iguana/rp/storage/impl/NTFileStorageTest.java
test_class.identifier: NTFileStorageTest
test_case.body: @Test
  	public void metaTest() throws IOException{
  		Storage store = new NTFileStorage("results_test.nt");
  	    new File("results_test.nt").delete();
  
  		Properties extraMeta = new Properties();
  		extraMeta.setProperty("a", "b");
  		
  		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.RECEIVE_DATA_START_KEY, "true");
  	    p.put(COMMON.EXPERIMENT_TASK_CLASS_ID_KEY, "ClassName");
  	    p.put(COMMON.EXTRA_META_KEY, new Properties());
  	    p.put(COMMON.NO_OF_QUERIES, 2);
  	    
  	    store.addMetaData(p);
  	    store.commit();
  	    assertEqual("results_test.nt", "src/test/resources/nt/nt_results_woMeta.nt", false);
  	    new File("results_test.nt").delete();
  		store = new NTFileStorage("results_test2.nt");
  	    
  	    p.put(COMMON.EXTRA_META_KEY, extraMeta);
  	    store.addMetaData(p);
  	    store.commit();
  	    assertEqual("results_test2.nt", "src/test/resources/nt/nt_results_wMeta.nt", false);
  	    
  	    new File("results_test.nt2").delete();
  	    
  
  	}
test_case.class_method_signature: NTFileStorageTest.metaTest()
test_case.full_signature: @Test public void metaTest()
test_case.identifier: metaTest
test_case.invocations: delete setProperty put setProperty setProperty setProperty setProperty put put put put addMetaData commit assertEqual delete put addMetaData commit assertEqual delete
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void metaTest()
focal_class.declarator: LOGGER = LoggerFactory
  			.getLogger(NTFileStorage.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory
  			.getLogger(NTFileStorage.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: file
focal_class.modifier: private
focal_class.original_string: private StringBuilder file;
focal_class.type: StringBuilder
focal_class.var_name: file
focal_class.file: iguana.resultprocessor/src/main/java/org/aksw/iguana/rp/storage/impl/NTFileStorage.java
focal_class.identifier: NTFileStorage
focal_class.class_method_signature: NTFileStorage.NTFileStorage()
focal_class.full_signature: public  NTFileStorage()
focal_class.identifier: NTFileStorage
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  NTFileStorage()
focal_class.class_method_signature: NTFileStorage.NTFileStorage(String fileName)
focal_class.full_signature: public  NTFileStorage(String fileName)
focal_class.identifier: NTFileStorage
focal_class.modifiers: public
focal_class.parameters: (String fileName)
focal_class.signature:  NTFileStorage(String fileName)
focal_class.class_method_signature: NTFileStorage.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: NTFileStorage.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.class_method_signature: NTFileStorage.getFileName()
focal_class.full_signature: public String getFileName()
focal_class.identifier: getFileName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFileName()
focal_class.superclass: extends TripleBasedStorage
focal_method.body: @Override
  	public void commit() {
          try (OutputStream os = new FileOutputStream(file.toString(), true)) {
  			RDFDataMgr.write(os, metricResults, RDFFormat.NTRIPLES);
  			metricResults.removeAll();
  		} catch (IOException e) {
  			LOGGER.error("Could not commit to NTFileStorage.", e);
  		}
  	}
focal_method.class_method_signature: NTFileStorage.commit()
focal_method.full_signature: @Override public void commit()
focal_method.identifier: commit
focal_method.invocations: toString write removeAll error
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void commit()