Hi folks,

I'm parsing some RDF documents in streaming mode:

     ...blah blah blah...
            try {
                ErrorHandler handler = new ParserErrorHandler(fsname);
                ParserProfile prof = RiotLib.profile(lang, fsname, handler);
                parser.setProfile(prof);
                parser.parse();
            } catch (Exception e) {
                LOG.fatal("Failed to parse: " + origFn);
                e.printStackTrace();
                parseFailed = true;
            }

This has the effect of aborting the parse at the first error. Not
unreasonable, but...

It appears that if I simply load the model into memory, although I get
the same error reported, the "non streaming" loader recovers from the
error and gets more triples.

Can I recover in streaming mode? Ideally, I'd like (modulo duplicates)
to get the same data regardless of whether or not streaming is used.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <[email protected]> | A man should have any number of little
http://nwalsh.com/            | aims about which he should be conscious
                              | and for which he should have names, but
                              | he should have neither name for, nor
                              | consciousness concerning, the main aim
                              | of his life.--Samuel Butler (II)

Attachment: signature.asc
Description: PGP signature

Reply via email to