Skip to content

Commit

Permalink
[Fix] Fix failing xls,xlsx tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodionnv authored and blcham committed Aug 14, 2024
1 parent beb560c commit d9709cc
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@
import org.apache.jena.rdf.model.ResourceFactory;
import org.apache.jena.rdf.model.Statement;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

Expand Down Expand Up @@ -65,7 +62,7 @@ public List<Statement> getRowStatements(List<String> header, List<Column> output
int colNumber = cell.getColumnIndex();
Column column = outputColumns.get(colNumber);
String cellValue = cell.toString();
if (cellValue != null) statements.add(createRowResource(cellValue, rowNumber, column,tableSchema));
if (cellValue != null && (cell.getCellType() != CellType.BLANK) ) statements.add(createRowResource(cellValue, rowNumber, column,tableSchema));
}
}

Expand Down

0 comments on commit d9709cc

Please sign in to comment.