Package org.apache.marmotta.loader.core

Examples of org.apache.marmotta.loader.core.MarmottaLoader.load()


    @Test
    public void testAutoLoad() throws RDFHandlerException {
        log.info("testing automatic loading ...");

        MarmottaLoader loader = new MarmottaLoader(cfg);
        DummyLoaderHandler handler = getBase(loader.load());

        testData(handler.getModel());
    }

    @Test
View Full Code Here


        cfg.setProperty(LoaderOptions.STATISTICS_ENABLED, true);
        cfg.setProperty(LoaderOptions.STATISTICS_GRAPH, new File(tempDir.toFile(), "stats.png").toString());
        cfg.setProperty(DummyLoaderBackend.METHOD_SLEEP_MILLIS, 10);

        MarmottaLoader loader = new MarmottaLoader(cfg);
        DummyLoaderHandler handler = getBase(loader.load());

        testData(handler.getModel());
    }

    @Test
View Full Code Here

        log.info("testing statistics loading ...");

        cfg.setProperty(LoaderOptions.CONTEXT, "http://localhost/contexts/mycontext");

        MarmottaLoader loader = new MarmottaLoader(cfg);
        DummyLoaderHandler handler = getBase(loader.load());

        testData(handler.getModel(), new URIImpl("http://localhost/contexts/mycontext"));
    }

    private void testData(Model model, URI... contexts) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.