diff --git a/sparql-anything-csv/src/main/java/com/github/sparqlanything/csv/CSVTriplifier.java b/sparql-anything-csv/src/main/java/com/github/sparqlanything/csv/CSVTriplifier.java index 7475ae4f..52c7774d 100644 --- a/sparql-anything-csv/src/main/java/com/github/sparqlanything/csv/CSVTriplifier.java +++ b/sparql-anything-csv/src/main/java/com/github/sparqlanything/csv/CSVTriplifier.java @@ -129,8 +129,8 @@ public void triplify(Properties properties, FacadeXGraphBuilder builder) throws // Add type Root builder.addRoot(dataSourceId, root); - InputStream is = Triplifier.getInputStream(properties); - try (is){ + + try (InputStream is = Triplifier.getInputStream(properties);){ Reader in = new InputStreamReader(new BOMInputStream(is), charset); Iterable records = format.parse(in); Iterator recordIterator = records.iterator();