Hi Henry,

On 29/01/12 21:40, Henry Story wrote:
   [ I just opened a bug report for this, but it was suggested that a wider
discussion on how to do it would be useful on this list. ]

The thread of interest is:

http://www.mail-archive.com/[email protected]/msg02451.html

Unless I am mistaken the only way to parse some content is using methods that 
use an
InputStream such as this:

     val m = ModelFactory.createDefaultModel()
      m.getReader(lang.jenaLang).read(m, in, base.toString)

As already commented on the thread, passing the reader to an actor allows async reading. Readers are configurable - you can have anything you like. No reason why the RDFReader can't be using async NIO.

There is also RIOT - have you looked parsing the read request to a parser in an actor, the catching the Sink<Triple> interface for the return -- that wokrs in an actor style.

The key question is what Jena can enable, this so that possibilities can be built on top. I don't think jena is a good level to pick one approach over another as it is in danger of clashing with other choice in the application. Your akka is a good example of one possible choice.

   I did open the issue-203 so that when we agree on a solution we could send in
some patches.

Look forward to seeing this,

        Andy

Reply via email to