Interface Containers

All Known Implementing Classes:
JenaContainers, OwlapiContainers, Rdf4jContainers

public interface Containers
Interface for managing RDF containers.
  • Method Details

    • readContainer

      Collection<Axiom<?>> readContainer(ContainerDescriptor descriptor) throws OntoDriverException
      Reads values from an RDF container specified by the given descriptor.
      Parameters:
      descriptor - Container descriptor
      Returns:
      Collection of axioms representing the values in the container. The property of the axioms corresponds to the property specified in the container descriptor (i.e., property reference the container from the owner).
      Throws:
      OntoDriverException - If an ontology access error occurs
      IllegalStateException - If called on a closed connection
    • persistContainer

      <T> void persistContainer(ContainerValueDescriptor<T> descriptor) throws OntoDriverException
      Persists values to an RDF container specified by the given descriptor.
      Type Parameters:
      T - Container value type
      Parameters:
      descriptor - Container descriptor
      Throws:
      OntoDriverException - If an ontology access error occurs
      IllegalStateException - If called on a closed connection
    • updateContainer

      <T> void updateContainer(ContainerValueDescriptor<T> descriptor) throws OntoDriverException
      Updates values in an RDF container specified by the given descriptor.
      Type Parameters:
      T - Container value type
      Parameters:
      descriptor - Container descriptor
      Throws:
      OntoDriverException - If an ontology access error occurs
      IllegalStateException - If called on a closed connection