We’ve created some configuration files that represent various common “modes” with which you might want to run Blazegraph. You can find these and other modes in the form of properties files in the Blazegraph source tree, in the “bigdata-sails” module, at:
If none of those modes seem right for you, let us help you devise the mode that is right for your particular problem. We offer development support, production support, and custom services around the platform.
Full Feature Mode
This turns on all of Blazegraph’s goodies - statement identifiers, free-text index, incremental inference and truth maintenance. The following is how you would use Blazegraph in a system that requires statement-level provenance, free-text search, and incremental load and retraction.
# As you can see, bigdata is nearly in full-feature mode by default. # All we do here is turn on the provenance mode. com.bigdata.rdf.store.AbstractTripleStore.statementIdentifiers=true # RWStore (scalable single machine backend) com.bigdata.journal.AbstractJournal.bufferMode=DiskRW
This mode turns off all inference and truth maintenance, for when you just need to store triples.
# changing the axiom model to none essentially disables all inference com.bigdata.rdf.store.AbstractTripleStore.axiomsClass=com.bigdata.rdf.axioms.NoAxioms # RWStore (scalable single machine backend) com.bigdata.journal.AbstractJournal.bufferMode=DiskRW
Fast Load Mode
We run Blazegraph in Fast Load Mode when we are evaluating load and query performance, for example with the LUBM harness. This turns off some features that are unnecessary for this type of evaluation (statement identifiers and the free text index), which increases throughput. This mode still does inference, but it is database-at-once instead of incremental. It also turns off the recording of justification chains, meaning it is an extremely inefficient mode if you need to retract statements (all inferences would have to be wiped and re-computed). This is a highly specialized mode for highly specialized problem sets.
# This configuration turns off incremental inference for load and retract, so # you must explicitly force these operations if you want to compute the closure # of the knowledge base. Forcing the closure requires punching through the SAIL # layer. Of course, if you are not using inference then this configuration is # just the ticket and is quite fast. # set the initial and maximum extent of the journal com.bigdata.journal.AbstractJournal.initialExtent=209715200 com.bigdata.journal.AbstractJournal.maximumExtent=209715200 # turn off automatic inference in the SAIL com.bigdata.rdf.sail.truthMaintenance=false # don't store justification chains, meaning retraction requires full manual # re-closure of the database com.bigdata.rdf.store.AbstractTripleStore.justify=false # turn off the statement identifiers feature for provenance com.bigdata.rdf.store.AbstractTripleStore.statementIdentifiers=false # turn off the free text index com.bigdata.rdf.store.AbstractTripleStore.textIndex=false # RWStore (scalable single machine backend) com.bigdata.journal.AbstractJournal.bufferMode=DiskRW
To enable quads mode, use the example below. Currently, Blazegraph does not support inference or provenance for quads, so those features are automatically turned off in QUADS_MODE.
# changing the axiom model to none essentially disables all inference com.bigdata.rdf.store.AbstractTripleStore.axiomsClass=com.bigdata.rdf.axioms.NoAxioms com.bigdata.rdf.store.AbstractTripleStore.quads=true com.bigdata.rdf.store.AbstractTripleStore.statementIdentifiers=false # turn off automatic inference in the SAIL com.bigdata.rdf.sail.truthMaintenance=false com.bigdata.journal.AbstractJournal.bufferMode=DiskRW
Enabling Text Indexing
To enable text indexing, add the property below when creating your namespace. It may be combined with any of the configurations.
We've set up three modes for Blazegraph that configure the store properly for triples, triples with provenance, and quads. Look for the TRIPLES_MODE, TRIPLES_MODE_WITH_PROVENANCE, and QUADS_MODE on AbstractTripleStore.Options and BigdataSail.Options.