public abstract class InternalRDF4JFactory extends Object
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.
RDF4J| Constructor and Description |
|---|
InternalRDF4JFactory() |
| Modifier and Type | Method and Description |
|---|---|
RDF4JBlankNode |
createBlankNodeImpl(org.eclipse.rdf4j.model.BNode bNode,
UUID salt)
Construct a
RDF4JBlankNode from a RDF4J BNode. |
RDF4JIRI |
createIRIImpl(org.eclipse.rdf4j.model.IRI iri)
Construct a
RDF4JIRI from a RDF4J IRI. |
RDF4JLiteral |
createLiteralImpl(org.eclipse.rdf4j.model.Literal literal)
Construct a
RDF4JLiteral from a RDF4J Literal. |
RDF4JGraph |
createModelGraphImpl(org.eclipse.rdf4j.model.Model model,
RDF4J rdf4jTermFactory)
Construct a
RDF4JGraph from a RDF4J Model. |
RDF4JQuad |
createQuadImpl(org.eclipse.rdf4j.model.Statement statement,
UUID salt)
Construct a
RDF4JQuad from a RDF4J Statement. |
RDF4JDataset |
createRepositoryDatasetImpl(org.eclipse.rdf4j.repository.Repository repository,
boolean handleInitAndShutdown,
boolean includeInferred)
Construct a
RDF4JDataset from a RDF4J Repository. |
RDF4JGraph |
createRepositoryGraphImpl(org.eclipse.rdf4j.repository.Repository repository,
boolean handleInitAndShutdown,
boolean includeInferred,
org.eclipse.rdf4j.model.Resource... contextMask)
Construct a
RDF4JGraph from a RDF4J Model. |
RDF4JTriple |
createTripleImpl(org.eclipse.rdf4j.model.Statement statement,
UUID salt)
Construct a
RDF4JTriple from a RDF4J Statement. |
public InternalRDF4JFactory()
public RDF4JBlankNode createBlankNodeImpl(org.eclipse.rdf4j.model.BNode bNode, UUID salt)
RDF4JBlankNode from a RDF4J BNode.bNode - RDF4J BNode to adaptsalt - UUID to use for BlankNode.uniqueReference() in
combination with BNode.getID()RDF4JBlankNodepublic RDF4JIRI createIRIImpl(org.eclipse.rdf4j.model.IRI iri)
RDF4JIRI from a RDF4J IRI.iri - RDF4J IRI to adaptRDF4JIRIpublic RDF4JLiteral createLiteralImpl(org.eclipse.rdf4j.model.Literal literal)
RDF4JLiteral from a RDF4J Literal.literal - RDF4J LiteralRDF4JLiteralpublic RDF4JGraph createModelGraphImpl(org.eclipse.rdf4j.model.Model model, RDF4J rdf4jTermFactory)
RDF4JGraph from a RDF4J Model.
Changes in the graph will be reflected in the model, and vice versa.
model - RDF4J Model to adaptrdf4jTermFactory - factory to use for adapting graph triplesRDF4JGraphpublic RDF4JQuad createQuadImpl(org.eclipse.rdf4j.model.Statement statement, UUID salt)
RDF4JQuad from a RDF4J Statement.public RDF4JDataset createRepositoryDatasetImpl(org.eclipse.rdf4j.repository.Repository repository, boolean handleInitAndShutdown, boolean includeInferred)
RDF4JDataset from a RDF4J Repository.
Changes in the dataset will be reflected in the repsitory, and vice versa.
repository - RDF4J Repository to adapthandleInitAndShutdown - If true, the RDF4JDataset will initialize
the repository (if needed), and shut it down on
Dataset.close().includeInferred - If true, any inferred quads are included in the datasetRDF4JDatasetpublic RDF4JGraph createRepositoryGraphImpl(org.eclipse.rdf4j.repository.Repository repository, boolean handleInitAndShutdown, boolean includeInferred, org.eclipse.rdf4j.model.Resource... contextMask)
RDF4JGraph from a RDF4J Model.
Changes in the graph will be reflected in the model, and vice versa.
repository - RDF4J Repository to adapthandleInitAndShutdown - If true, the RDF4JGraph will initialize
the repository (if needed), and shut it down on
Graph.close().includeInferred - If true, any inferred quads are included in the datasetcontextMask - Zero or more Resources contexts. The array may contain
the value null for the default graph - however
care must be taken to not provide a null-array
(Resource[]) null.RDF4JGraphpublic RDF4JTriple createTripleImpl(org.eclipse.rdf4j.model.Statement statement, UUID salt)
RDF4JTriple from a RDF4J Statement.statement - RDF4J Statement to adaptsalt - UUID for adapting any BNodesRDF4JTripleCopyright © 2015–2018 The Apache Software Foundation. All rights reserved.