Class RDFRemover
java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
org.eclipse.rdf4j.repository.util.RDFRemover
- All Implemented Interfaces:
RDFHandler
An RDFHandler that removes RDF data from a repository.
-
Constructor Summary
ConstructorDescriptionCreates a new RDFRemover object that removes the data from the default context. -
Method Summary
Modifier and TypeMethodDescriptionvoid
enforceContext
(Resource context) Enforces the supplied context upon all statements that are reported to this RDFRemover.boolean
Checks whether this RDFRemover enforces its context upon all statements that are reported to it.Gets the context identifier that this RDFRemover enforces upon all statements that are reported to it (in case enforcesContext() returns true).void
Handles a statement.Methods inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
endRDF, handleComment, handleNamespace, startRDF
-
Constructor Details
-
RDFRemover
Creates a new RDFRemover object that removes the data from the default context.- Parameters:
con
- The connection to use for the removal operations.
-
-
Method Details
-
enforceContext
Enforces the supplied context upon all statements that are reported to this RDFRemover.- Parameters:
context
- A Resource identifying the context, or null for the null context.
-
enforcesContext
public boolean enforcesContext()Checks whether this RDFRemover enforces its context upon all statements that are reported to it.- Returns:
- true if it enforces its context, false otherwise.
-
getContext
Gets the context identifier that this RDFRemover enforces upon all statements that are reported to it (in case enforcesContext() returns true).- Returns:
- A Resource identifying the context, or null if the null context is enforced.
-
handleStatement
Description copied from interface:RDFHandler
Handles a statement.- Specified by:
handleStatement
in interfaceRDFHandler
- Overrides:
handleStatement
in classAbstractRDFHandler
- Parameters:
st
- The statement.- Throws:
RDFHandlerException
- If the RDF handler has encountered an unrecoverable error.
-