Difference between revisions of " Configuring Blazegraph"

From Blazegraph
Jump to: navigation, search
(updated documentation 1.5.2)
 
Line 1: Line 1:
 
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:
 
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:
  
bigdata-sails/src/samples/com/bigdata/samples [1]
+
[https://github.com/blazegraph/database/tree/master/bigdata-sails/src/samples/com/bigdata/samples bigdata-sails/src/samples/com/bigdata/samples] [1]
  
 
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.
 
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.
Line 7: Line 7:
 
==="Full Feature Mode"===
 
==="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.<br>
 
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.<br>
File '''fullfeature.properties''':
+
[https://github.com/blazegraph/database/blob/master/bigdata-sails/src/samples/com/bigdata/samples/fullfeature.properties fullfeature.properties]:
 
<pre>
 
<pre>
 
# As you can see, bigdata is nearly in full-feature mode by default.
 
# As you can see, bigdata is nearly in full-feature mode by default.
Line 19: Line 19:
 
==="RDF-Only Mode"===
 
==="RDF-Only Mode"===
 
This mode turns off all inference and truth maintenance, for when you just need to store triples.<br>
 
This mode turns off all inference and truth maintenance, for when you just need to store triples.<br>
File '''rdfonly.properties''':
+
[https://github.com/blazegraph/database/blob/master/bigdata-sails/src/samples/com/bigdata/samples/rdfonly.properties rdfonly.properties]:
 
<pre>
 
<pre>
 
# changing the axiom model to none essentially disables all inference
 
# changing the axiom model to none essentially disables all inference
Line 34: Line 34:
  
  
[1] http://sourceforge.net/p/bigdata/git/ci/master/tree/bigdata-sails/src/samples/com/bigdata/samples/
+
[1] https://github.com/blazegraph/database/blob/master/bigdata-sails/src/samples/com/bigdata/samples/
  
 
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.
 
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.
  
 
Currently Blazegraph does not support inference or provenance for quads, so those features are automatically turned off in QUADS_MODE.
 
Currently Blazegraph does not support inference or provenance for quads, so those features are automatically turned off in QUADS_MODE.

Revision as of 21:30, 10 March 2016

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:

bigdata-sails/src/samples/com/bigdata/samples [1]

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.
fullfeature.properties:

# 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

"RDF-Only Mode"

This mode turns off all inference and truth maintenance, for when you just need to store triples.
rdfonly.properties:

# 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.


[1] https://github.com/blazegraph/database/blob/master/bigdata-sails/src/samples/com/bigdata/samples/

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.

Currently Blazegraph does not support inference or provenance for quads, so those features are automatically turned off in QUADS_MODE.