public abstract class GraphLoader extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
GraphLoader.AddStatementHandler
Helper class adds statements to the sail as they are visited by a parser.
|
Constructor and Description |
---|
GraphLoader() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.openrdf.model.ValueFactory |
getValueFactory()
Return the
ValueFactory that will be set on the RDFParser
. |
void |
loadGraph(org.openrdf.rio.RDFFormat fallback,
String... resources) |
void |
loadGraph(org.openrdf.rio.RDFFormat fallback,
String resource)
Load a resource from the classpath, the file system, or a URI.
|
protected abstract GraphLoader.AddStatementHandler |
newStatementHandler()
Factory for the helper class that adds statements to the target
graph.
|
public void loadGraph(org.openrdf.rio.RDFFormat fallback, String... resources) throws Exception
Exception
protected abstract org.openrdf.model.ValueFactory getValueFactory()
ValueFactory
that will be set on the RDFParser
. This is necessary for the RDR parser.public void loadGraph(org.openrdf.rio.RDFFormat fallback, String resource) throws IOException, URISyntaxException, org.openrdf.rio.RDFParseException, org.openrdf.rio.RDFHandlerException
RDFFormat
will be ignored unless the
fallback argument is given, in which case that format will be
assumed for such resources.resource
- A resource on the class path, a file or a directory, or a URI.fallback
- The default RDFFormat
to be assumed (optional).IOException
URISyntaxException
org.openrdf.rio.RDFHandlerException
org.openrdf.rio.RDFParseException
protected abstract GraphLoader.AddStatementHandler newStatementHandler()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.