test_class.declarator: isUpdate
test_class.modifier: private final
test_class.original_string: private final boolean isUpdate;
test_class.type: boolean
test_class.var_name: isUpdate
test_class.declarator: queryStr
test_class.modifier: private
test_class.original_string: private String[] queryStr;
test_class.type: String[]
test_class.var_name: queryStr
test_class.declarator: dir = UUID.randomUUID().toString()
test_class.modifier: private
test_class.original_string: private String dir = UUID.randomUUID().toString();
test_class.type: String
test_class.var_name: dir
test_class.declarator: queriesFile
test_class.modifier: private
test_class.original_string: private File queriesFile;
test_class.type: File
test_class.var_name: queriesFile
test_class.file: iguana.corecontroller/src/test/java/org/aksw/iguana/cc/query/impl/InstancesQueryHandlerTest.java
test_class.identifier: InstancesQueryHandlerTest
test_case.body: @Test
      public void testQueryCreation() throws IOException {
          //Get queries file
          Connection con = new Connection();
          con.setName("a");
          con.setEndpoint("http://test.com");
          Worker worker = getWorker(con, 1, "1");
          InstancesQueryHandler qh = new InstancesQueryHandler(Lists.newArrayList(worker));
          qh.setOutputFolder(this.dir);
          Map<String, File[]> map = qh.generate();
          //check if folder exist this.dir/hashCode/ with |queries| files
          int hashcode = org.aksw.iguana.cc.utils.FileUtils.getHashcodeFromFileContent(this.queriesFile.getAbsolutePath());
          File f = new File(this.dir+File.separator+hashcode);
          assertTrue(f.isDirectory());
          int expectedNoOfFiles = queryStr.length;
          assertEquals(expectedNoOfFiles, f.listFiles().length);
          //iterate through all and check if correct
          HashSet<String> files = new HashSet<String>();
          for(File queryFile : f.listFiles()){
              int id = Integer.parseInt(queryFile.getName().replace("sparql", "").replace("update", ""));
              String actualQueryString =org.aksw.iguana.cc.utils.FileUtils.readLineAt(0, queryFile);
              assertEquals(queryStr[id], actualQueryString);
              files.add(queryFile.getAbsolutePath());
          }
          for(File queryFile : map.get(this.queriesFile.getAbsolutePath())){
              assertTrue(files.contains(queryFile.getAbsolutePath()));
          }
          assertEquals(files.size(), map.get(this.queriesFile.getAbsolutePath()).length);
          FileUtils.deleteDirectory(f);
      }
test_case.class_method_signature: InstancesQueryHandlerTest.testQueryCreation()
test_case.full_signature: @Test public void testQueryCreation()
test_case.identifier: testQueryCreation
test_case.invocations: setName setEndpoint getWorker newArrayList setOutputFolder generate getHashcodeFromFileContent getAbsolutePath assertTrue isDirectory assertEquals listFiles listFiles parseInt replace replace getName readLineAt assertEquals add getAbsolutePath get getAbsolutePath assertTrue contains getAbsolutePath assertEquals size get getAbsolutePath deleteDirectory
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testQueryCreation()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(InstancesQueryHandler.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(InstancesQueryHandler.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: outputFolder = "queryCache"
focal_class.modifier: protected
focal_class.original_string: protected  String outputFolder = "queryCache";
focal_class.type: String
focal_class.var_name: outputFolder
focal_class.declarator: type2IDcounter = new HashMap<String, Integer>()
focal_class.modifier: protected
focal_class.original_string: protected HashMap<String, Integer> type2IDcounter = new HashMap<String, Integer>();
focal_class.type: HashMap<String, Integer>
focal_class.var_name: type2IDcounter
focal_class.declarator: qs = new SPARQLQueryStatistics()
focal_class.modifier: protected
focal_class.original_string: protected SPARQLQueryStatistics qs = new SPARQLQueryStatistics();
focal_class.type: SPARQLQueryStatistics
focal_class.var_name: qs
focal_class.declarator: queryFiles
focal_class.modifier: private
focal_class.original_string: private File[] queryFiles;
focal_class.type: File[]
focal_class.var_name: queryFiles
focal_class.declarator: langProcessor = new SPARQLLanguageProcessor()
focal_class.modifier: protected
focal_class.original_string: protected LanguageProcessor langProcessor = new SPARQLLanguageProcessor();
focal_class.type: LanguageProcessor
focal_class.var_name: langProcessor
focal_class.declarator: hashcode
focal_class.modifier: protected
focal_class.original_string: protected int hashcode;
focal_class.type: int
focal_class.var_name: hashcode
focal_class.file: iguana.corecontroller/src/main/java/org/aksw/iguana/cc/query/impl/InstancesQueryHandler.java
focal_class.identifier: InstancesQueryHandler
focal_class.class_method_signature: InstancesQueryHandler.InstancesQueryHandler(List<Worker> workers)
focal_class.full_signature: public  InstancesQueryHandler(List<Worker> workers)
focal_class.identifier: InstancesQueryHandler
focal_class.modifiers: public
focal_class.parameters: (List<Worker> workers)
focal_class.signature:  InstancesQueryHandler(List<Worker> workers)
focal_class.class_method_signature: InstancesQueryHandler.InstancesQueryHandler(List<Worker> workers, String lang)
focal_class.full_signature: public  InstancesQueryHandler(List<Worker> workers, String lang)
focal_class.identifier: InstancesQueryHandler
focal_class.modifiers: public
focal_class.parameters: (List<Worker> workers, String lang)
focal_class.signature:  InstancesQueryHandler(List<Worker> workers, String lang)
focal_class.class_method_signature: InstancesQueryHandler.generateQueries(String queryFileName)
focal_class.full_signature: @Override protected File[] generateQueries(String queryFileName)
focal_class.identifier: generateQueries
focal_class.modifiers: @Override protected
focal_class.parameters: (String queryFileName)
focal_class.return: File[]
focal_class.signature: File[] generateQueries(String queryFileName)
focal_class.class_method_signature: InstancesQueryHandler.generateQueryPerLine(String queryFileName, String idPrefix, int hashcode)
focal_class.full_signature: protected File[] generateQueryPerLine(String queryFileName, String idPrefix, int hashcode)
focal_class.identifier: generateQueryPerLine
focal_class.modifiers: protected
focal_class.parameters: (String queryFileName, String idPrefix, int hashcode)
focal_class.return: File[]
focal_class.signature: File[] generateQueryPerLine(String queryFileName, String idPrefix, int hashcode)
focal_class.class_method_signature: InstancesQueryHandler.getInstances(String queryStr)
focal_class.full_signature: protected List<String> getInstances(String queryStr)
focal_class.identifier: getInstances
focal_class.modifiers: protected
focal_class.parameters: (String queryStr)
focal_class.return: List<String>
focal_class.signature: List<String> getInstances(String queryStr)
focal_class.class_method_signature: InstancesQueryHandler.createFileWithID(File rootFolder, String idPrefix)
focal_class.full_signature: protected File createFileWithID(File rootFolder, String idPrefix)
focal_class.identifier: createFileWithID
focal_class.modifiers: protected
focal_class.parameters: (File rootFolder, String idPrefix)
focal_class.return: File
focal_class.signature: File createFileWithID(File rootFolder, String idPrefix)
focal_class.class_method_signature: InstancesQueryHandler.generateUPDATE(String updatePath)
focal_class.full_signature: @Override protected File[] generateUPDATE(String updatePath)
focal_class.identifier: generateUPDATE
focal_class.modifiers: @Override protected
focal_class.parameters: (String updatePath)
focal_class.return: File[]
focal_class.signature: File[] generateUPDATE(String updatePath)
focal_class.class_method_signature: InstancesQueryHandler.generateTripleStats(String taskID)
focal_class.full_signature: @Override public Model generateTripleStats(String taskID)
focal_class.identifier: generateTripleStats
focal_class.modifiers: @Override public
focal_class.parameters: (String taskID)
focal_class.return: Model
focal_class.signature: Model generateTripleStats(String taskID)
focal_class.class_method_signature: InstancesQueryHandler.setOutputFolder(String outputFolder)
focal_class.full_signature: public void setOutputFolder(String outputFolder)
focal_class.identifier: setOutputFolder
focal_class.modifiers: public
focal_class.parameters: (String outputFolder)
focal_class.return: void
focal_class.signature: void setOutputFolder(String outputFolder)
focal_class.superclass: extends AbstractWorkerQueryHandler
focal_method.body: public void setOutputFolder(String outputFolder) {
  		this.outputFolder = outputFolder;
  	}
focal_method.class_method_signature: InstancesQueryHandler.setOutputFolder(String outputFolder)
focal_method.full_signature: public void setOutputFolder(String outputFolder)
focal_method.identifier: setOutputFolder
focal_method.modifiers: public
focal_method.parameters: (String outputFolder)
focal_method.return: void
focal_method.signature: void setOutputFolder(String outputFolder)