Package com.hp.hpl.jena.tdb

Examples of com.hp.hpl.jena.tdb.TDBLoader


            log.warn("ignore File {} because of unknown extension ");
            return ResourceState.IGNORED;
        } else if (format == Lang.NTRIPLES) {
            TDBLoader.load(indexingDataset, is, true);
        } else if(format == Lang.NQUADS || format == Lang.TRIG){ //quads
            TDBLoader loader = new TDBLoader();
            loader.setShowProgress(true);
            Destination<Quad> dest = createQuad2TripleDestination();
            dest.start();
            RiotReader.parseQuads(is,format,null, dest);
            dest.finish();
        } else if (format != Lang.RDFXML) {
            // use RIOT to parse the format but with a special configuration
            // RiotReader!
            TDBLoader loader = new TDBLoader();
            loader.setShowProgress(true);
            Destination<Triple> dest = createDestination();
            dest.start();
            RiotReader.parseTriples(is, format, null, dest);
            dest.finish();
        } else { // RDFXML
View Full Code Here


        } else if (format == Lang.NTRIPLES) {
            TDBLoader.load(indexingDataset, is, true);
        } else if (format != Lang.RDFXML) {
            // use RIOT to parse the format but with a special configuration
            // RiotReader!
            TDBLoader loader = new TDBLoader();
            loader.setShowProgress(true);
            Destination<Triple> dest = createDestination();
            dest.start();
            RiotReader.parseTriples(is, format, null, dest);
            dest.finish();
        } else { // RDFXML
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.TDBLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.