Class InternalRDF4JFactory
java.lang.Object
org.apache.commons.rdf.rdf4j.impl.InternalRDF4JFactory
Factory for
RDF4JTerm instances.
Internal class: This "abstract" class is intended for
internal use by Commons RDF and may change in any minor update. Use instead
RDF4J methods like RDF4J.createBlankNode(),
RDF4J.asRDFTerm(org.eclipse.rdf4j.model.Value) and
RDF4J.asGraph(Repository, Option...)
This class exists as a public bridge between the packages
org.apache.commons.rdf.rdf4j and
org.apache.commons.rdf.rdf4j.impl by exposing the package-public
constructors.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBlankNodeImpl(org.eclipse.rdf4j.model.BNode bNode, UUID salt) Construct aRDF4JBlankNodefrom a RDF4JBNode.createIRIImpl(org.eclipse.rdf4j.model.IRI iri) Construct aRDF4JIRIfrom a RDF4JIRI.createLiteralImpl(org.eclipse.rdf4j.model.Literal literal) Construct aRDF4JLiteralfrom a RDF4JLiteral.createModelGraphImpl(org.eclipse.rdf4j.model.Model model, RDF4J rdf4jTermFactory) Construct aRDF4JGraphfrom a RDF4JModel.createQuadImpl(org.eclipse.rdf4j.model.Statement statement, UUID salt) Construct aRDF4JQuadfrom a RDF4JStatement.createRepositoryDatasetImpl(org.eclipse.rdf4j.repository.Repository repository, boolean handleInitAndShutdown, boolean includeInferred) Construct aRDF4JDatasetfrom a RDF4JRepository.createRepositoryGraphImpl(org.eclipse.rdf4j.repository.Repository repository, boolean handleInitAndShutdown, boolean includeInferred, org.eclipse.rdf4j.model.Resource... contextMask) Construct aRDF4JGraphfrom a RDF4JModel.createTripleImpl(org.eclipse.rdf4j.model.Statement statement, UUID salt) Construct aRDF4JTriplefrom a RDF4JStatement.
-
Constructor Details
-
InternalRDF4JFactory
public InternalRDF4JFactory()
-
-
Method Details
-
createBlankNodeImpl
Construct aRDF4JBlankNodefrom a RDF4JBNode.- Parameters:
bNode- RDF4JBNodeto adaptsalt-UUIDto use forBlankNode.uniqueReference()in combination withBNode.getID()- Returns:
- Adapted
RDF4JBlankNode
-
createIRIImpl
-
createLiteralImpl
Construct aRDF4JLiteralfrom a RDF4JLiteral.- Parameters:
literal- RDF4JLiteral- Returns:
- Adapted
RDF4JLiteral
-
createModelGraphImpl
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
-
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
Construct aRDF4JTriplefrom a RDF4JStatement.- Parameters:
statement- RDF4JStatementto adaptsalt-UUIDfor adapting anyBNodes- Returns:
- Adapted
RDF4JTriple
-