In-Memory
This is a wrapper over one of dotNetRDF's internal in-memory IInMemoryQueryableStore or ISparqlDataset implementations. It is primarily intended as a useful convenience for testing and prototyping prior to deploying the actual production store you intend to use. This functionality is provided by the InMemoryManager class.
Supported Capabilities
- Load, Save, Update, Delete and List Graphs
- SPARQL Query and Update
Creating a connection
You can create a connection to a completely fresh empty dataset like so:
InMemoryManager mem = new InMemoryManager();
Or you can wrap an existing dataset/store:
TripleStore store = new TripleStore();
//Assume we fill the store from somewhere
InMemoryManager mem = new InMemoryManager(store);