| |
|
| java.lang.Object org.openrdf.rio.helpers.RDFHandlerBase org.openrdf.repository.util.RDFInserter
RDFInserter | public class RDFInserter extends RDFHandlerBase (Code) | | An RDFHandler that adds RDF data to a repository.
author: jeen |
Constructor Summary | |
public | RDFInserter(RepositoryConnection con) Creates a new RDFInserter object that preserves bnode IDs and that does
not enforce any context upon statements that are reported to it. |
Method Summary | |
public void | endRDF() | public void | enforceContext(Resource... contexts) Enforces the supplied contexts upon all statements that are reported to
this RDFInserter.
Parameters: contexts - the contexts to use. | public boolean | enforcesContext() Checks whether this RDFInserter enforces its contexts upon all statements
that are reported to it. | public Resource[] | getContexts() Gets the contexts that this RDFInserter enforces upon all statements that
are reported to it (in case enforcesContext() returns
true). | public void | handleNamespace(String prefix, String name) | public void | handleStatement(Statement st) | public boolean | preservesBNodeIDs() Checks whether this RDFInserter preserves blank node IDs. | public void | setPreserveBNodeIDs(boolean preserveBNodeIDs) Sets whether this RDFInserter should preserve blank node IDs. |
RDFInserter | public RDFInserter(RepositoryConnection con)(Code) | | Creates a new RDFInserter object that preserves bnode IDs and that does
not enforce any context upon statements that are reported to it.
Parameters: con - The connection to use for the add operations. |
enforceContext | public void enforceContext(Resource... contexts)(Code) | | Enforces the supplied contexts upon all statements that are reported to
this RDFInserter.
Parameters: contexts - the contexts to use. Use an empty array (not null!) to indicate nocontext(s) should be enforced. |
enforcesContext | public boolean enforcesContext()(Code) | | Checks whether this RDFInserter enforces its contexts upon all statements
that are reported to it.
true if it enforces its contexts, falseotherwise. |
getContexts | public Resource[] getContexts()(Code) | | Gets the contexts that this RDFInserter enforces upon all statements that
are reported to it (in case enforcesContext() returns
true).
A Resource[] identifying the contexts, or null if nocontexts is enforced. |
preservesBNodeIDs | public boolean preservesBNodeIDs()(Code) | | Checks whether this RDFInserter preserves blank node IDs.
|
setPreserveBNodeIDs | public void setPreserveBNodeIDs(boolean preserveBNodeIDs)(Code) | | Sets whether this RDFInserter should preserve blank node IDs.
Parameters: preserveBNodeIDs - The new value for this flag. |
|
|
|