Package com.data2semantics.yasgui.client.tab.results.input.dlv

Examples of com.data2semantics.yasgui.client.tab.results.input.dlv.Row


 
 
  private void storeTable(DlvWrapper dlv) {
    storeVariables(dlv.getRow(0));
    for (int rowId = 1; rowId < dlv.length(); rowId++) {
      Row row = dlv.getRow(rowId);
      HashMap<String, HashMap<String, String>> bindingHashMap = new HashMap<String, HashMap<String, String>>();
      for (int colId = 0; colId < row.length(); colId++) {
        //only add this if we actually have an answer for this binding
        String value = row.getCol(colId);
        if (value != null && value.length() > 0) {
          HashMap<String,String> nodeHashMap = new HashMap<String, String>();
          nodeHashMap.put("value", value);
          bindingHashMap.put(this.variables.get(colId),nodeHashMap);
        }
View Full Code Here


    return booleanResult;
  }
 
 
  private void storeBooleanResult(DlvWrapper dlv) throws SparqlParseException {
    Row row = dlv.getRow(1); //just 2 lines, second line contains the boolean val
   
    if (row.length() == 0 || row.getCol(0) == null || row.getCol(0).length() == 0) {
      throw new SparqlParseException("Invalid " + (separator.equals(",")? "CSV": "TSV") + ". Unable to detect boolean value");
    } else {
      String value = row.getCol(0);
      this.booleanResult = (value.equals("1") || value.equalsIgnoreCase("true"));
    }
  }
View Full Code Here

TOP

Related Classes of com.data2semantics.yasgui.client.tab.results.input.dlv.Row

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.