Class RDFInferencerInserter
java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRDFHandler
org.eclipse.rdf4j.repository.util.AbstractRDFInserter
org.eclipse.rdf4j.sail.inferencer.util.RDFInferencerInserter
- All Implemented Interfaces:
RDFHandler
An RDFHandler that adds RDF data to a sail as inferred statements.
-
Field Summary
Fields inherited from class AbstractRDFInserter
contexts -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RDFInserter object that preserves bnode IDs and that does not enforce any context upon statements that are reported to it. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddNamespace(String prefix, String name) protected voidaddStatement(Resource subj, IRI pred, Value obj, Resource ctxt) Methods inherited from class AbstractRDFInserter
endRDF, enforceContext, enforcesContext, getContexts, handleNamespace, handleStatement, preservesBNodeIDs, setPreserveBNodeIDsModifier and TypeMethodDescriptionvoidendRDF()Signals the end of the RDF data.voidenforceContext(Resource... contexts) Enforces the supplied contexts upon all statements that are reported to this RDFInserter.booleanChecks whether this RDFInserter enforces its contexts upon all statements that are reported to it.Resource[]Gets the contexts that this RDFInserter enforces upon all statements that are reported to it (in case enforcesContext() returns true).voidhandleNamespace(String prefix, String name) Handles a namespace declaration/definition.voidHandles a statement.booleanChecks whether this RDFInserter preserves blank node IDs.voidsetPreserveBNodeIDs(boolean preserveBNodeIDs) Sets whether this RDFInserter should preserve blank node IDs.Methods inherited from class AbstractRDFHandler
handleComment, startRDFModifier and TypeMethodDescriptionvoidhandleComment(String comment) Handles a comment.voidstartRDF()Signals the start of the RDF data.
-
Constructor Details
-
RDFInferencerInserter
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.
-
-
Method Details
-
addNamespace
- Specified by:
addNamespacein classAbstractRDFInserter- Throws:
RDF4JException
-
addStatement
protected void addStatement(Resource subj, IRI pred, Value obj, Resource ctxt) throws RDF4JException - Specified by:
addStatementin classAbstractRDFInserter- Throws:
RDF4JException
-