Hi Andy

Andy Seaborne wrote:


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.

Committed (see: http://markmail.org/thread/wmvhh6ambpxairvn).

There is a big and interesting comment on the infer command. :-)

Do you think these can be done in streaming over the A-Box?

 *   owl:sameAs (in T-Box, not A-Box)
 *   owl:equivalentClass, owl:equivalentProperty
 *   owl:TransitiveProperty, owl:SymmetricProperty

I might have a go at it (since a colleague at Talis asked me explicitly
if RIOT infer command supports owl:sameAs).

Also, another question (from another colleague) was: "is it possible to
do the same when a SPARQL Update request is processed?"
I am not sure about this, in particular if the update has deletions.

Paolo


NQ is a superset of NT.
(Actually, infQuads is a post inf expansion engine addition)

    Andy


Paolo

Reply via email to