예제 #1
0
 /** Returns dataset that wraps a graph */
 public static DatasetGraph dataset(Graph graph) {
   return DatasetGraphFactory.createOneGraph(graph);
 }
예제 #2
0
 /**
  * Create a general-purpose Dataset.<br>
  * Any graphs needed are in-memory unless explciitly added with {@link Dataset#addNamedModel}.
  * This dataset can contain graphs from any source when added via {@link Dataset#addNamedModel}.
  * These are held as links to the supplied graph and not copied.
  *
  * <p>This dataset does not support transactions.
  *
  * <p>
  *
  * @return a general-purpose Dataset
  */
 public static Dataset createGeneral() {
   return wrap(DatasetGraphFactory.createGeneral());
 }
예제 #3
0
 /** @deprecated This operation may be removed. */
 @Deprecated
 public static Dataset createMemFixed() {
   return wrap(DatasetGraphFactory.createMemFixed());
 }
예제 #4
0
 /**
  * Create an in-memory. transactional Dataset.
  *
  * <p>This fully supports transactions, including abort to roll-back changes. It provides
  * "autocommit" if operations are performed outside a transaction but with a performance impact
  * (the implementation adds a begin/commit around each add or delete so overheads can accumulate).
  *
  * @return a transactional, in-memory, modifiable Dataset which
  */
 public static Dataset createTxnMem() {
   return wrap(DatasetGraphFactory.createTxnMem());
 }