Class InternalRDF4JFactory

    • Constructor Detail

      • InternalRDF4JFactory

        public InternalRDF4JFactory()
    • Method Detail

      • createIRIImpl

        public RDF4JIRI createIRIImpl​(org.eclipse.rdf4j.model.IRI iri)
        Construct a RDF4JIRI from a RDF4J IRI.
        Parameters:
        iri - RDF4J IRI to adapt
        Returns:
        Adapted RDF4JIRI
      • createLiteralImpl

        public RDF4JLiteral createLiteralImpl​(org.eclipse.rdf4j.model.Literal literal)
        Construct a RDF4JLiteral from a RDF4J Literal.
        Parameters:
        literal - RDF4J Literal
        Returns:
        Adapted RDF4JLiteral
      • createModelGraphImpl

        public RDF4JGraph createModelGraphImpl​(org.eclipse.rdf4j.model.Model model,
                                               RDF4J rdf4jTermFactory)
        Construct a RDF4JGraph from a RDF4J Model.

        Changes in the graph will be reflected in the model, and vice versa.

        Parameters:
        model - RDF4J Model to adapt
        rdf4jTermFactory - 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 a RDF4JQuad from a RDF4J Statement.
        Parameters:
        statement - RDF4J Statement to adapt
        salt - UUID for adapting any BNodes
        Returns:
        Adapted RDF4JQuad
      • createRepositoryDatasetImpl

        public RDF4JDataset createRepositoryDatasetImpl​(org.eclipse.rdf4j.repository.Repository repository,
                                                        boolean handleInitAndShutdown,
                                                        boolean includeInferred)
        Construct a RDF4JDataset from a RDF4J Repository.

        Changes in the dataset will be reflected in the repsitory, and vice versa.

        Parameters:
        repository - RDF4J Repository to adapt
        handleInitAndShutdown - 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 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 a RDF4JGraph from a RDF4J Model.

        Changes in the graph will be reflected in the model, and vice versa.

        Parameters:
        repository - RDF4J Repository to adapt
        handleInitAndShutdown - 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 dataset
        contextMask - 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.
        Returns:
        Adapted RDF4JGraph
      • createTripleImpl

        public RDF4JTriple createTripleImpl​(org.eclipse.rdf4j.model.Statement statement,
                                            java.util.UUID salt)
        Construct a RDF4JTriple from a RDF4J Statement.
        Parameters:
        statement - RDF4J Statement to adapt
        salt - UUID for adapting any BNodes
        Returns:
        Adapted RDF4JTriple