Package com.hp.hpl.jena.tdb.transaction

Examples of com.hp.hpl.jena.tdb.transaction.DatasetGraphTransaction


            syncObject(dataset) ;
            return ;
        }

        if ( dataset instanceof DatasetGraphTransaction ) {
            DatasetGraphTransaction dsgt = (DatasetGraphTransaction)dataset ;
            // This only sync if the dataset has not been used transactionally.
            // Can't sync transactional datasets (it's meaningless)
            dsgt.syncIfNotTransactional() ;
            return ;
        }

        // May be a general purpose dataset with TDB objects in it.
        sync(dataset.getDefaultGraph()) ;
View Full Code Here


            return ;
        }
       
        if ( dataset instanceof DatasetGraphTransaction )
        {
            DatasetGraphTransaction dsgt = (DatasetGraphTransaction)dataset ;
            // This only sync if the dataset has not been used transactionally.
            // Can't sync transactional datasets (it's meaningless)
            dsgt.syncIfNotTransactional() ;
            return ;
        }
       
        // ARQ 2.7.1 and later - replace with SystemARQ.sync()
View Full Code Here

    }

    private static DatasetGraphTransaction _create(Location location)
    {
        // No need to cache StoreConnection does all that.
        return new DatasetGraphTransaction(location) ;
    }
View Full Code Here

    }

    private static DatasetGraphTransaction _create(Location location)
    {
        // No need to cache StoreConnection does all that.
        return new DatasetGraphTransaction(location) ;
    }
View Full Code Here

    }
   
    private static DatasetGraphTransaction _create(DatasetGraphTDB dsg)
    {
        // No need to cache StoreConnection does all that.
        return new DatasetGraphTransaction(dsg) ;
    }
View Full Code Here

            return ;
        }
       
        if ( dataset instanceof DatasetGraphTransaction )
        {
            DatasetGraphTransaction dsgt = (DatasetGraphTransaction)dataset ;
            // This only syncs if the dataset has no tbeen used transactionally.
            // Can't sync transactional dataset graphs (it's meaningless)
            dsgt.syncIfNotTransactional() ;
            return ;
        }
       
        // ARQ 2.7.1 and later - replace with SystemARQ.sync()
View Full Code Here

            syncObject(dataset) ;
            return ;
        }

        if ( dataset instanceof DatasetGraphTransaction ) {
            DatasetGraphTransaction dsgt = (DatasetGraphTransaction)dataset ;
            // This only sync if the dataset has not been used transactionally.
            // Can't sync transactional datasets (it's meaningless)
            dsgt.syncIfNotTransactional() ;
            return ;
        }

        // May be a general purpose dataset with TDB objects in it.
        sync(dataset.getDefaultGraph()) ;
View Full Code Here

  {
      Quad q1 = SSE.parseQuad("(<g1> <s1> <p1> '1')") ;
      Quad q2 = SSE.parseQuad("(<g2> <s2> <p2> '2')") ;
        Quad q3 = SSE.parseQuad("(<g3> <s3> <p3> '3')") ;

        DatasetGraphTransaction dsg = (DatasetGraphTransaction)TDBFactory.createDatasetGraph(location);
        System.out.println("Start") ;
        dump(dsg) ;
       
        write(dsg, q1) ;
        write(dsg, q2) ;
View Full Code Here

            if (file.isFile()) {
                urls.add(file.getAbsolutePath());
            }
        }
       
        DatasetGraphTransaction dsgtMem = (DatasetGraphTransaction)TDBFactory.createDatasetGraph();
        TDBLoader.load(dsgtMem.getDatasetGraphToQuery(), urls, false);
       
        String[] args;
        File path = new File(input);
        if ( path.isDirectory() ) {
            ArrayList<String> arguments = new ArrayList<String>();
View Full Code Here

*/
public class ExTDB_Txn3
{
    public static void main(String... argv)
    {
        DatasetGraphTransaction dsg = (DatasetGraphTransaction)TDBFactory.createDatasetGraph() ;

        // Start READ transaction.
        dsg.begin(ReadWrite.READ) ;
       
        try
        {
            // Do some queries
            String sparqlQueryString1 = "SELECT (count(*) AS ?count) { ?s ?p ?o }" ;
            execQuery(sparqlQueryString1, dsg) ;
        } finally
        {
            dsg.end() ;
        }
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.tdb.transaction.DatasetGraphTransaction

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.