Re: Implementing RDF reader

2015-05-15 Thread Andy Seaborne
On 14/05/15 20:27, Martynas Jusevičius wrote: Andy, I took a crack at it: https://github.com/Graphity/graphity-core/blob/master/src/main/java/org/graphity/core/riot/lang/RDFPostReader.java

Re: Implementing RDF reader

2015-05-14 Thread Martynas Jusevičius
Andy, I took a crack at it: https://github.com/Graphity/graphity-core/blob/master/src/main/java/org/graphity/core/riot/lang/RDFPostReader.java https://github.com/Graphity/graphity-core/blob/master/src/main/java/org/graphity/core/riot/lang/TokenizerText.java It was surely one of the more

Re: Implementing RDF reader

2015-05-12 Thread Andy Seaborne
On 11/05/15 20:28, Martynas Jusevičius wrote: Thanks Andy. I have a parser that works on String, but this time I want to do it right and make it streaming and plug it into Jena at the low level. It seems that I should be able to reuse some code from TokenizerText. I understand StreamRDF is

Re: Implementing RDF reader

2015-05-11 Thread Andy Seaborne
On 10/05/15 21:48, Martynas Jusevičius wrote: Hey all, I want to refactor my RDF/POST parser into a Jena-compatible reader. An example of the format can be found here: http://www.lsrn.org/semweb/rdfpost.html#sec-examples The documentation suggests implementing ReaderRIOT interface:

Re: Implementing RDF reader

2015-05-11 Thread Martynas Jusevičius
Thanks Andy. I have a parser that works on String, but this time I want to do it right and make it streaming and plug it into Jena at the low level. It seems that I should be able to reuse some code from TokenizerText. I understand StreamRDF is used to sink the triples, but what about

Implementing RDF reader

2015-05-10 Thread Martynas Jusevičius
Hey all, I want to refactor my RDF/POST parser into a Jena-compatible reader. An example of the format can be found here: http://www.lsrn.org/semweb/rdfpost.html#sec-examples The documentation suggests implementing ReaderRIOT interface: