Class ContainerDescriptor

java.lang.Object
cz.cvut.kbss.ontodriver.descriptor.ContainerDescriptor
Direct Known Subclasses:
ContainerValueDescriptor

public class ContainerDescriptor extends Object
Descriptor for reading an RDF container.
  • Constructor Details

  • Method Details

    • getType

      public URI getType()
    • getOwner

      public NamedResource getOwner()
    • getProperty

      public Assertion getProperty()
    • getContext

      public URI getContext()
    • altDescriptor

      public static ContainerDescriptor altDescriptor(NamedResource owner, Assertion property)
      Creates a new ContainerDescriptor for reading an rdf:Alt container from the default context.
      Parameters:
      owner - Container owner
      property - Property referencing the container
      Returns:
      Container descriptor
    • altDescriptor

      public static ContainerDescriptor altDescriptor(NamedResource owner, Assertion property, URI context)
      Creates a new ContainerDescriptor for reading an rdf:Alt container from the specified context.
      Parameters:
      owner - Container owner
      property - Property referencing the container
      context - Context from which the container should be read
      Returns:
      Container descriptor
    • bagDescriptor

      public static ContainerDescriptor bagDescriptor(NamedResource owner, Assertion property)
      Creates a new ContainerDescriptor for reading an rdf:Bag container from the default context.
      Parameters:
      owner - Container owner
      property - Property referencing the container
      Returns:
      Container descriptor
    • bagDescriptor

      public static ContainerDescriptor bagDescriptor(NamedResource owner, Assertion property, URI context)
      Creates a new ContainerDescriptor for reading an rdf:Bag container from the specified context.
      Parameters:
      owner - Container owner
      property - Property referencing the container
      context - Context from which the container should be read
      Returns:
      Container descriptor
    • seqDescriptor

      public static ContainerDescriptor seqDescriptor(NamedResource owner, Assertion property)
      Creates a new ContainerDescriptor for reading an rdf:Seq container from the default context.
      Parameters:
      owner - Container owner
      property - Property referencing the container
      Returns:
      Container descriptor
    • seqDescriptor

      public static ContainerDescriptor seqDescriptor(NamedResource owner, Assertion property, URI context)
      Creates a new ContainerDescriptor for reading an rdf:Seq container from the specified context.
      Parameters:
      owner - Container owner
      property - Property referencing the container
      context - Context from which the container should be read
      Returns:
      Container descriptor
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object