Package net.fortytwo.sesametools.rdftransaction

Examples of net.fortytwo.sesametools.rdftransaction.RDFTransactionSail


    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)));
            }
        };

        SailConnection sc = sail.getConnection();
        try {
            sc.removeStatements(RDF.TYPE, null, null, (URI) null);
            sc.commit();
        } finally {
            sc.rollback();
            sc.close();
        }

        sail.shutDown();
        baseSail.shutDown();
    }
View Full Code Here

TOP

Related Classes of net.fortytwo.sesametools.rdftransaction.RDFTransactionSail

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.