Package org.apache.marmotta.loader.core

Examples of org.apache.marmotta.loader.core.MarmottaLoader


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

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

        testData(handler.getModel());
    }
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());
    }
View Full Code Here

    public void testContext() throws RDFHandlerException {
        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"));
    }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.loader.core.MarmottaLoader

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.