Class InternalRDF4JFactory
- java.lang.Object
-
- org.apache.commons.rdf.rdf4j.impl.InternalRDF4JFactory
-
public abstract class InternalRDF4JFactory extends java.lang.ObjectFactory forRDF4JTerminstances.Internal class: This "abstract" class is intended for internal use by Commons RDF and may change in any minor update. Use instead
RDF4Jmethods likeRDF4J.createBlankNode(),RDF4J.asRDFTerm(org.eclipse.rdf4j.model.Value)andRDF4J.asGraph(Repository, Option...)This class exists as a
publicbridge between the packagesorg.apache.commons.rdf.rdf4jandorg.apache.commons.rdf.rdf4j.implby exposing the package-public constructors.- See Also:
RDF4J
-
-
Constructor Summary
Constructors Constructor Description InternalRDF4JFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RDF4JBlankNodecreateBlankNodeImpl(org.eclipse.rdf4j.model.BNode bNode, java.util.UUID salt)Construct aRDF4JBlankNodefrom a RDF4JBNode.RDF4JIRIcreateIRIImpl(org.eclipse.rdf4j.model.IRI iri)Construct aRDF4JIRIfrom a RDF4JIRI.RDF4JLiteralcreateLiteralImpl(org.eclipse.rdf4j.model.Literal literal)Construct aRDF4JLiteralfrom a RDF4JLiteral.RDF4JGraphcreateModelGraphImpl(org.eclipse.rdf4j.model.Model model, RDF4J rdf4jTermFactory)Construct aRDF4JGraphfrom a RDF4JModel.RDF4JQuadcreateQuadImpl(org.eclipse.rdf4j.model.Statement statement, java.util.UUID salt)Construct aRDF4JQuadfrom a RDF4JStatement.RDF4JDatasetcreateRepositoryDatasetImpl(org.eclipse.rdf4j.repository.Repository repository, boolean handleInitAndShutdown, boolean includeInferred)Construct aRDF4JDatasetfrom a RDF4JRepository.RDF4JGraphcreateRepositoryGraphImpl(org.eclipse.rdf4j.repository.Repository repository, boolean handleInitAndShutdown, boolean includeInferred, org.eclipse.rdf4j.model.Resource... contextMask)Construct aRDF4JGraphfrom a RDF4JModel.RDF4JTriplecreateTripleImpl(org.eclipse.rdf4j.model.Statement statement, java.util.UUID salt)Construct aRDF4JTriplefrom a RDF4JStatement.
-
-
-
Method Detail
-
createBlankNodeImpl
public RDF4JBlankNode createBlankNodeImpl(org.eclipse.rdf4j.model.BNode bNode, java.util.UUID salt)
Construct aRDF4JBlankNodefrom a RDF4JBNode.- Parameters:
bNode- RDF4JBNodeto adaptsalt-UUIDto use forBlankNode.uniqueReference()in combination withBNode.getID()- Returns:
- Adapted
RDF4JBlankNode
-
createIRIImpl
public RDF4JIRI createIRIImpl(org.eclipse.rdf4j.model.IRI iri)
Construct aRDF4JIRIfrom a RDF4JIRI.- Parameters:
iri- RDF4JIRIto adapt- Returns:
- Adapted
RDF4JIRI
-
createLiteralImpl
public RDF4JLiteral createLiteralImpl(org.eclipse.rdf4j.model.Literal literal)
Construct aRDF4JLiteralfrom a RDF4JLiteral.- Parameters:
literal- RDF4JLiteral- Returns:
- Adapted
RDF4JLiteral
-
createModelGraphImpl
public RDF4JGraph createModelGraphImpl(org.eclipse.rdf4j.model.Model model, RDF4J rdf4jTermFactory)
Construct aRDF4JGraphfrom a RDF4JModel.Changes in the graph will be reflected in the model, and vice versa.
- Parameters:
model- RDF4JModelto adaptrdf4jTermFactory- factory to use for adapting graph triples- Returns:
- Adapted
RDF4JGraph
-
createQuadImpl
public RDF4JQuad createQuadImpl(org.eclipse.rdf4j.model.Statement statement, java.util.UUID salt)
Construct aRDF4JQuadfrom a RDF4JStatement.- Parameters:
statement- RDF4JStatementto adaptsalt-UUIDfor adapting anyBNodes- Returns:
- Adapted
RDF4JQuad
-
createRepositoryDatasetImpl
public RDF4JDataset createRepositoryDatasetImpl(org.eclipse.rdf4j.repository.Repository repository, boolean handleInitAndShutdown, boolean includeInferred)
Construct aRDF4JDatasetfrom a RDF4JRepository.Changes in the dataset will be reflected in the repsitory, and vice versa.
- Parameters:
repository- RDF4JRepositoryto adapthandleInitAndShutdown- Iftrue, theRDF4JDatasetwill initialize the repository (if needed), and shut it down onDataset.close().includeInferred- If true, any inferred quads are included in the dataset- Returns:
- Adapted
RDF4JDataset
-
createRepositoryGraphImpl
public RDF4JGraph createRepositoryGraphImpl(org.eclipse.rdf4j.repository.Repository repository, boolean handleInitAndShutdown, boolean includeInferred, org.eclipse.rdf4j.model.Resource... contextMask)
Construct aRDF4JGraphfrom a RDF4JModel.Changes in the graph will be reflected in the model, and vice versa.
- Parameters:
repository- RDF4JRepositoryto adapthandleInitAndShutdown- Iftrue, theRDF4JGraphwill initialize the repository (if needed), and shut it down onGraph.close().includeInferred- If true, any inferred quads are included in the datasetcontextMask- Zero or moreResources contexts. The array may contain the valuenullfor the default graph - however care must be taken to not provide a null-array(Resource[]) null.- Returns:
- Adapted
RDF4JGraph
-
createTripleImpl
public RDF4JTriple createTripleImpl(org.eclipse.rdf4j.model.Statement statement, java.util.UUID salt)
Construct aRDF4JTriplefrom a RDF4JStatement.- Parameters:
statement- RDF4JStatementto adaptsalt-UUIDfor adapting anyBNodes- Returns:
- Adapted
RDF4JTriple
-
-