FYI, I opened a question in StackOverflow as well: 
http://stackoverflow.com/questions/33136916/streaming-a-resultset-as-rdf-using-a-custom-vocabulary
 
<http://stackoverflow.com/questions/33136916/streaming-a-resultset-as-rdf-using-a-custom-vocabulary>


—
Enrico Daga (enridaga)
http://www.enridaga.net <http://www.enridaga.net/>
Il budda e’ nel parco.





> On 14 Oct 2015, at 18:39, Enrico Daga (enridaga) <[email protected]> wrote:
> 
> Hi,
> 
> in my use case I need to stream a ResultSet obtained from a query to a remote 
> endpoint converted into an RDF output format.
> I know Jena provides a ResultSetFormatter.toModel facility for that, however 
> I have the following constraints:
> - I want to use a different representation/vocabulary and not the one 
> provided by Jena, and
> - I don't want to load the data in memory. In other words I don't want to 
> create a Model and fill it with the ResultSet, but streaming out the triples 
> while I iterate on it, to control memory consumption.
> - I still want to benefit by the Jena serializers
> 
> I have seen the StreamRDF interface, but I am not very clear about how to use 
> it effectively.
> What could be a correct approach in this scenario?
> 
> Thank you,
> 
> Enrico
> 
> —
> Enrico Daga (enridaga)
> http://www.enridaga.net <http://www.enridaga.net/>
> Il budda e’ nel parco.
> 
> 
> 
> 
> 

Reply via email to