|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.rdf.rio.BasicRioLoader
public class BasicRioLoader
Parses data but does not load it into the indices.
| Field Summary | |
|---|---|
protected String |
defaultGraph
|
protected static org.apache.log4j.Logger |
log
Note: This logger was historically associated with the IRioLoader
interface and it is still named for that interface. |
long |
stmtsAdded
|
| Constructor Summary | |
|---|---|
BasicRioLoader(ValueFactory valueFactory)
|
|
| Method Summary | |
|---|---|
void |
addRioLoaderListener(RioLoaderListener l)
Register a listener. |
protected void |
before()
Invoked before parse (default is NOP). |
protected void |
cleanUp()
Invoked from finally clause after parse regardless of success or failure. |
protected void |
error(Exception ex)
Invoked if the parse fails (default is NOP). |
long |
getInsertRate()
|
long |
getInsertTime()
|
protected RDFParser |
getParser(RDFFormat rdfFormat)
Choose the parser based on the RDFFormat specified to the
constructor. |
long |
getStatementsAdded()
|
void |
loadRdf(InputStream is,
String baseURI,
RDFFormat rdfFormat,
String defaultGraph,
RDFParserOptions options)
Parse RDF data. |
void |
loadRdf(Reader reader,
String baseURI,
RDFFormat rdfFormat,
String defaultGraph,
RDFParserOptions options)
Parse RDF data. |
protected void |
loadRdf2(Object source,
String baseURI,
RDFFormat rdfFormat,
String defaultGraph,
RDFParserOptions options)
Core implementation. |
RDFHandler |
newRDFHandler()
Note: YOU MUST override this method to install a different RDFHandler. |
protected void |
notifyListeners()
|
void |
removeRioLoaderListener(RioLoaderListener l)
Remove a listener. |
protected void |
success()
Invoked after successful parse (default is NOP). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final transient org.apache.log4j.Logger log
IRioLoader
interface and it is still named for that interface.
public long stmtsAdded
protected String defaultGraph
| Constructor Detail |
|---|
public BasicRioLoader(ValueFactory valueFactory)
| Method Detail |
|---|
public final long getStatementsAdded()
getStatementsAdded in interface IRioLoaderpublic final long getInsertTime()
getInsertTime in interface IRioLoaderpublic final long getInsertRate()
getInsertRate in interface IRioLoaderpublic final void addRioLoaderListener(RioLoaderListener l)
IRioLoader
addRioLoaderListener in interface IRioLoaderl - The listener.public final void removeRioLoaderListener(RioLoaderListener l)
IRioLoader
removeRioLoaderListener in interface IRioLoaderl - The listener.protected final void notifyListeners()
protected final RDFParser getParser(RDFFormat rdfFormat)
RDFFormat specified to the
constructor.
public final void loadRdf(InputStream is,
String baseURI,
RDFFormat rdfFormat,
String defaultGraph,
RDFParserOptions options)
throws Exception
IRioLoader
loadRdf in interface IRioLoaderis - The source from which the data will be read.rdfFormat - The interchange format.defaultGraph - The default graph.options - Options to be applied to the RDFParser.
Exception
public final void loadRdf(Reader reader,
String baseURI,
RDFFormat rdfFormat,
String defaultGraph,
RDFParserOptions options)
throws Exception
IRioLoader
loadRdf in interface IRioLoaderreader - The source from which the data will be read.baseURI - The base URL for those data.rdfFormat - The interchange format.defaultGraph - The default graph.options - Options to be applied to the RDFParser.
Exception
protected void loadRdf2(Object source,
String baseURI,
RDFFormat rdfFormat,
String defaultGraph,
RDFParserOptions options)
throws Exception
source - A Reader or InputStream.baseURI - rdfFormat - options -
Exceptionprotected void before()
protected void success()
protected void error(Exception ex)
protected void cleanUp()
public RDFHandler newRDFHandler()
RDFHandler. The default is the BasicRDFHandler which
does NOTHING.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||