hdt-java icon indicating copy to clipboard operation
hdt-java copied to clipboard

Provide HDTManager::generateHDT consuming an InputStream

Open jmkeil opened this issue 6 years ago • 2 comments

It would be very helpful to have a method HDTManager::generateHDT(InputStream, String, RDFNotation, HDTOptions, ProgressListener), which consumes a InputStream instead of a file path.

In case of TempHDTImporterOnePass it is quiet straightforward to do that. In case of TempHDTImporterTwoPass the things are more complicated, as the InputStream would be needed to consume twice.

jmkeil avatar Jan 16 '19 12:01 jmkeil

@jmkeil good suggestion! it would be too complicated with TempHDTImporterTwoPass though. always welcome to submit a PR

mielvds avatar Apr 16 '21 12:04 mielvds

@jmkeil […] always welcome to submit a PR

As I decided against using HDT in my project, I don't have time to do that. Sorry.

jmkeil avatar Apr 27 '21 14:04 jmkeil

It was implemented with #162 at this line:

https://github.com/rdfhdt/hdt-java/blob/912276e93f2ad4f4bf864aaca8802b5be2e22a11/hdt-api/src/main/java/org/rdfhdt/hdt/hdt/HDTManager.java#L483

So we can close this issue :)

ate47 avatar Feb 01 '23 13:02 ate47