Skip to content

Commit

Permalink
#239 close pptx input stream
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-asprino committed Dec 6, 2023
1 parent 1eb8df2 commit a8d30ca
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ public void triplify(Properties properties, FacadeXGraphBuilder builder) throws

builder.addRoot(dataSourceId);

InputStream is = url.openStream();
int slideNumber = 1;

try (XMLSlideShow slides = new XMLSlideShow(is)) {
try (InputStream is = url.openStream(); XMLSlideShow slides = new XMLSlideShow(is)) {
int slideNumber = 1;

builder.addType(dataSourceId, SPARQLAnythingConstants.ROOT_ID, "Presentation");

Expand All @@ -67,6 +65,7 @@ public void triplify(Properties properties, FacadeXGraphBuilder builder) throws
}

}

}


Expand Down

0 comments on commit a8d30ca

Please sign in to comment.