public class ExportKB extends Object
Journal
.Constructor and Description |
---|
ExportKB(BigdataSail.BigdataSailConnection conn,
File kbdir,
org.openrdf.rio.RDFFormat format,
boolean includeInferred) |
Modifier and Type | Method and Description |
---|---|
void |
export()
Export the properties and data for the KB.
|
void |
exportData()
Exports all told statements associated with the last commit point for the
KB.
|
void |
exportProperties()
Export the configuration properties for the kb.
|
static Properties |
flatCopy(Properties props) |
static void |
main(String[] args)
Export one or more KBs from a Journal.
|
void |
prepare() |
public ExportKB(BigdataSail.BigdataSailConnection conn, File kbdir, org.openrdf.rio.RDFFormat format, boolean includeInferred)
conn
- The connection.kbdir
- The directory into which the exported properties and RDF data
will be written.format
- The RDFFormat
to use when exporting the data.includeInferred
- When true
inferences and axioms will also be
exported. Otherwise just the explicitly given (aka told)
triples/quads will be exported.public void export() throws IOException, org.openrdf.sail.SailException, org.openrdf.rio.RDFHandlerException
IOException
org.openrdf.sail.SailException
org.openrdf.rio.RDFHandlerException
public void prepare() throws IOException
IOException
public void exportProperties() throws IOException
IOException
public void exportData() throws IOException, org.openrdf.sail.SailException, org.openrdf.rio.RDFHandlerException
IOException
org.openrdf.sail.SailException
org.openrdf.rio.RDFHandlerException
public static Properties flatCopy(Properties props)
public static void main(String[] args) throws Exception
args
- [options] propertyFile namespace*
where
options is any of:
RDFFormat
which will be used to export the
data. If not specified then an appropriate format will be
selected based on the KB configuration. The default for
triples or SIDs is RDFFormat.RDFXML
. The default for
quads is RDFFormat.TRIX
.Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.