On 15/06/11 17:08, Paolo Castagna wrote:
Hi,
today, I needed to use RIOT infer command with an N-Quads file.
This is what I did to being able to use an N-Quads instead of
an N-Triples file:
- Sink<Triple> sink = new SinkTripleOutput(System.out) ;
- sink = InfFactory.infTriples(sink, vocab) ;
- LangRIOT parser = RiotReader.createParserNTriples(System.in, sink) ;
+ Sink<Quad> sink = new SinkQuadOutput(System.out) ;
+ sink = InfFactory.infQuads(sink, vocab) ;
+ LangRIOT parser = RiotReader.createParserNQuads(System.in, sink) ;
Everything was already there, thank you Andy.
Could we do this and support N-Quads with RIOT infer command?
Sure - file a JIRA so it doesn't get lost.
NQ is a superset of NT.
(Actually, infQuads is a post inf expansion engine addition)
Andy
Paolo