public class BigdataSailHelper extends Object
Constructor and Description |
---|
BigdataSailHelper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Properties |
getProperties()
Deprecated.
Return the
Properties that will be used to configure a new
AbstractTripleStore instance. |
Properties |
getProperties(BigdataSail sail)
Deprecated.
Return the properties associated with the
AbstractTripleStore
backing the BigdataSail . |
protected Properties |
getProperties(IIndexManager indexManager,
String namespace)
Deprecated.
Return the properties associated with the given namespace.
|
BigdataSail |
getSail(IBigdataFederation<?> fed,
String namespace,
long timestamp)
Deprecated.
(Re-)open a SAIL backed by persistent data stored in an
IBigdataFederation . |
BigdataSail |
getSail(String filename,
String namespace,
long timestamp)
Deprecated.
(Re-)open a SAIL backed by persistent data stored on a
Journal . |
static void |
main(String[] args)
Deprecated.
Utility class.
|
Properties |
setProperties(BigdataSail sail,
Properties properties)
Deprecated.
Update properties for the SAIL.
|
protected Properties |
setProperties(IIndexManager indexManager,
String namespace,
Properties properties)
Deprecated.
|
static void |
showLexiconIndexDetails(BigdataSail.BigdataSailConnection cxn)
Deprecated.
Shows some interesting details about the terms index.
|
protected static void |
showProperties(Properties p)
Deprecated.
|
static void |
showSPOIndexDetails(BigdataSail.BigdataSailConnection cxn)
Deprecated.
Shows some interesting details about the primary index for the
SPORelation . |
public BigdataSail getSail(IBigdataFederation<?> fed, String namespace, long timestamp)
IBigdataFederation
.fed
- The federation.namespace
- The namespace of the triple store.timestamp
- The timestamp of the view.public BigdataSail getSail(String filename, String namespace, long timestamp)
Journal
.filename
- The name of the backing file for the Journal
.namespace
- The namespace of the triple store.timestamp
- The timestamp of the view.public Properties getProperties()
Properties
that will be used to configure a new
AbstractTripleStore
instance. The AbstractTripleStore
will remember the properties with which it was created and use those
values each time it is re-opened. The properties are stored in the global
row store for the backing IIndexManager
.
Note: You need to edit this code to correspond to your application
requirements. Currently the code reflects an application using a triple
store without inference, without statement level provenance, and with the
full text index enabled. Another common configuration is a triple store
with RDFS++ inference, which can be realized by changing the
AbstractTripleStore.Options#AXIOMS_CLASS
property value and
possibly enabling BigdataSail.Options.TRUTH_MAINTENANCE
depending on whether
or not you will be incrementally or bulk loading data.
public Properties getProperties(BigdataSail sail)
AbstractTripleStore
backing the BigdataSail
.sail
- The sail.protected Properties getProperties(IIndexManager indexManager, String namespace)
indexManager
- Use BigdataSail#getDatabase()
and then
AbstractResource.getIndexManager()
.namespace
- The namespace of a locatable resource such as an
AbstractTripleStore
, SPORelation
or
LexiconRelation
.public Properties setProperties(BigdataSail sail, Properties properties)
null
value.
Note: this changes the persistent property values associated with the SAIL. It DOES NOT change the properties associated with the given instance. You MUST re-open the SAIL in order for the new properties to be in effect.
Note: While many property values can be changed dynamically, some may not. In particular, the properties that effect the way in which the keys for the indices are generated as stored within the indices themselves. Among other things this ensures that Unicode configuration options are applied uniformly when an is accessed by any host in a federation.
sail
- The SAIL.properties
- The properties.protected Properties setProperties(IIndexManager indexManager, String namespace, Properties properties)
indexManager
- namespace
- properties
- protected static void showProperties(Properties p)
public static void showLexiconIndexDetails(BigdataSail.BigdataSailConnection cxn)
cxn
- The connection.public static void showSPOIndexDetails(BigdataSail.BigdataSailConnection cxn)
SPORelation
.cxn
- The connection.org.openrdf.sail.SailException
InterruptedException
public static void main(String[] args) throws org.openrdf.sail.SailException, IOException, InterruptedException
Note: The LTS (local triple store) mode is inferred when the filename is
a .properties
file. The JiniFederation (JDS) mode is
inferred when the filename is a .config
file. If neither of
those file extensions is used, then you must specify the either LTS or
JDS explicitly.
Note: The namespace identifies which triple store you are
accessing and defaults to kb
.
Note: The timestamp identifies which commit point you are
accessing and defaults to the ITx.UNISOLATED
view, which can also
be specified as ).
Note: The properties is a file containing property overrides to be applied to the kb.
args
- filename ((LTS|JDS ((namespace
(timestamp)))properties)org.openrdf.sail.SailException
ConfigurationException
IOException
InterruptedException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.