Package org.openrdf.sail

Examples of org.openrdf.sail.Sail.initialize()


  @Override
  protected Sail createSail()
    throws SailException
  {
    Sail sail = new NativeStore(dataDir, "spoc,posc");
    sail.initialize();
    return sail;
  }
}
View Full Code Here


     */
    @Before
    public void setUp() throws Exception {
        super.setUp();
        Sail store = new MemoryStore();
        store.initialize();
        conn = new SailRepository(store).getConnection();
    }

    /**
     * Test case resources release.
View Full Code Here

                }

                super.shutDown();
            }
        };
        store.initialize();
        return store;
    }


View Full Code Here

                + "  <URL:http://wiki.github.com/joshsh/twitlogic/configuring-and-running-twitlogic>.");
    }

    private void run() throws Exception {
        Sail workingSail = new MemoryStore();
        workingSail.initialize();

        try {
            Sail streamingSail = new MockUdpTransactionSail(workingSail);

            try {
View Full Code Here

        LOGGER.info("instantiating NativeStore in directory: " + dir);
        Sail sail = (null == indexes)
                ? new NativeStore(dir)
                : new NativeStore(dir, indexes.trim());
        sail.initialize();

        return sail;
    }
}
View Full Code Here

    public Sail makeSail() throws SailException, PropertyException {
        LOGGER.info("instantiating MemoryStore");

        Sail sail = new MemoryStore();
        sail.initialize();
        return sail;
    }
}
View Full Code Here

        LOGGER.info("instantiating GraphSail-on-Neo4j in directory: " + dir);
        Neo4jGraph graph = new Neo4jGraph(dir.getAbsolutePath());
        //graph.setMaxBufferSize(1);
        Sail sail = new GraphSail(graph);
        sail.initialize();

        File dump = conf.getFile("dump", null);
        if (null != dump) {
            LOGGER.info("loading from dump file: " + dump);
View Full Code Here

        int[] ports = parsePorts(portsStr);

        InetAddress address = InetAddress.getByName(host);

        Sail workingSail = new MemoryStore();
        workingSail.initialize();

        try {
            Sail streamingSail = new UdpTransactionSail(workingSail, address, ports);

            try {
View Full Code Here

        //*/
    }

    private static void rdfTransactionStuff() throws Exception {
        Sail baseSail = new MemoryStore();
        baseSail.initialize();

        RDFTransactionSail sail = new RDFTransactionSail(baseSail) {
            public void handleTransaction(final List<TransactionOperation> operations) throws SailException {
                System.out.println(new String(createTransactionEntity(operations)));
            }
View Full Code Here

    }

    // Quickly reaches a peak of around 1,900 t/s before slowing down and failing due to lack of memory.
    private void testMemoryPersister() throws Exception {
        Sail sail = new MemoryStore();
        sail.initialize();

        try {
            TweetStore store = new TweetStore(sail);
            store.initialize();
            try {
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.