-
Notifications
You must be signed in to change notification settings - Fork 8
Ripple configuration properties
Ripple comes with a "Demo" program, which is what you're using when you execute the startup script ripple.sh
.
You can customize the data store which the demo connects to. See Running Ripple.
The net.fortytwo.ripple.demo.sailType property defines the Sail implementation which Ripple uses as its RDF triple store. The default is LinkedDataSail. When using LinkedDataSail, you may also specify an alternate "base Sail" to use as its caching layer. The default is MemoryStore, a fast (but small-scale) in-memory triple store:
net.fortytwo.ripple.demo.sailType = net.fortytwo.linkeddata.sail.LinkedDataSail
net.fortytwo.ripple.demo.linkedDataSailBaseSail = org.openrdf.sail.memory.MemoryStore
You can save cached Linked Data between sessions using MemoryStore's persistence file:
net.fortytwo.ripple.demo.sailType = net.fortytwo.linkeddata.sail.LinkedDataSail
net.fortytwo.ripple.demo.linkedDataSailBaseSail = org.openrdf.sail.memory.MemoryStore
net.fortytwo.ripple.demo.memoryStorePersistFile = /Users/lebot/Desktop/ripple-save-file
This will cause the cache to be read in from the persistence file (if it exists) when Ripple initializes, and written back to the file when Ripple shuts down.
For a more dynamic cache which can also scale to hundreds of millions of triples, use NativeStore NativeStore as the base Sail instead of MemoryStore. NativeStore is served from a configurable directory:
net.fortytwo.ripple.demo.sailType = net.fortytwo.linkeddata.sail.LinkedDataSail
net.fortytwo.ripple.demo.linkedDataSailBaseSail = org.openrdf.sail.nativerdf.NativeStore
net.fortytwo.ripple.demo.nativeStoreDirectory = /Users/lebot/Desktop/ripple-store
You can also connect Ripple to NativeStore directly, without the Linked Data layer (for example, if you have pre-loaded a static dataset which you would like to explore with Ripple):
net.fortytwo.ripple.demo.sailType = org.openrdf.sail.nativerdf.NativeStore
net.fortytwo.ripple.demo.nativeStoreDirectory = /Users/lebot/Desktop/ripple-store
Even higher-capacity triple stores, such as AllegroGraph and Blueprints Sail may be used with Ripple, although they are not built in to the demo. To use any other Sail implementation with Ripple, look at Demo.java and modify it to use the Sail of your choice, or see the "Embedded Ripple" section in Running Ripple.
To connect Ripple to a remote SPARQL endpoint, use SPARQLRepositorySail, which connects to a remote SPARQL endpoint:
net.fortytwo.ripple.demo.sailType = net.fortytwo.ripple.config.SPARQLRepositorySail
net.fortytwo.ripple.demo.sparqlEndpointUrl = http://dbpedia.org/sparql