Class ContainerValueDescriptor<T>

java.lang.Object
cz.cvut.kbss.ontodriver.descriptor.ContainerDescriptor
cz.cvut.kbss.ontodriver.descriptor.ContainerValueDescriptor<T>
Type Parameters:
T - Value type

public class ContainerValueDescriptor<T> extends ContainerDescriptor
Descriptor for saving values in an RDF container.
  • Method Details

    • getValues

      public List<T> getValues()
    • addValue

      public void addValue(T value)
    • altValueDescriptor

      public static <T> ContainerValueDescriptor<T> altValueDescriptor(NamedResource owner, Assertion property)
      Creates a new ContainerValueDescriptor for saving an rdf:Alt container to the default context.
      Type Parameters:
      T - Value type
      Parameters:
      owner - Container owner
      property - Property referencing the container
      Returns:
      Empty container value descriptor
    • altValueDescriptor

      public static <T> ContainerValueDescriptor<T> altValueDescriptor(NamedResource owner, Assertion property, URI context)
      Creates a new ContainerValueDescriptor for saving an rdf:Alt container to the specified context.
      Type Parameters:
      T - Value type
      Parameters:
      owner - Container owner
      property - Property referencing the container
      context - Context to which the container should be saved
      Returns:
      Empty container value descriptor
    • bagValueDescriptor

      public static <T> ContainerValueDescriptor<T> bagValueDescriptor(NamedResource owner, Assertion property)
      Creates a new ContainerValueDescriptor for saving an rdf:Bag container to the default context.
      Type Parameters:
      T - Value type
      Parameters:
      owner - Container owner
      property - Property referencing the container
      Returns:
      Empty container value descriptor
    • bagValueDescriptor

      public static <T> ContainerValueDescriptor<T> bagValueDescriptor(NamedResource owner, Assertion property, URI context)
      Creates a new ContainerValueDescriptor for saving an rdf:Bag container to the specified context.
      Type Parameters:
      T - Value type
      Parameters:
      owner - Container owner
      property - Property referencing the container
      context - Context to which the container should be saved
      Returns:
      Empty container value descriptor
    • seqValueDescriptor

      public static <T> ContainerValueDescriptor<T> seqValueDescriptor(NamedResource owner, Assertion property)
      Creates a new ContainerValueDescriptor for saving an rdf:Seq container to the default context.
      Type Parameters:
      T - Value type
      Parameters:
      owner - Container owner
      property - Property referencing the container
      Returns:
      Empty container value descriptor
    • seqValueDescriptor

      public static <T> ContainerValueDescriptor<T> seqValueDescriptor(NamedResource owner, Assertion property, URI context)
      Creates a new ContainerValueDescriptor for saving an rdf:Seq container to the specified context.
      Type Parameters:
      T - Value type
      Parameters:
      owner - Container owner
      property - Property referencing the container
      context - Context to which the container should be saved
      Returns:
      Empty container value descriptor
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ContainerDescriptor
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ContainerDescriptor