Class ContainerHandler

java.lang.Object
cz.cvut.kbss.ontodriver.owlapi.container.ContainerHandler

public class ContainerHandler extends Object
  • Constructor Details

  • Method Details

    • readContainer

      public List<Axiom<?>> readContainer(ContainerDescriptor descriptor) throws OwlapiDriverException
      Reads the content of a container corresponding to the specified description.

      The container values are returned as a list of axioms where the owner of the container points to the individual values.

      Parameters:
      descriptor - Container description
      Returns:
      List of axioms representing the container's content
      Throws:
      OwlapiDriverException - If an error accessing the container occurs
    • persistContainer

      public <T> void persistContainer(ContainerValueDescriptor<T> descriptor)
      Creates a new container and fills it with the specified values.
      Type Parameters:
      T - Type of container values
      Parameters:
      descriptor - Container value descriptor
    • updateContainer

      public <T> void updateContainer(ContainerValueDescriptor<T> descriptor) throws OwlapiDriverException
      Updates the content of an existing container corresponding to the specified descriptor.

      If the descriptor has no value, the container is removed completely.

      Type Parameters:
      T - Value type
      Parameters:
      descriptor - Descriptor with new container values
      Throws:
      OwlapiDriverException - If an error accessing the container occurs