Class ContainerDescriptor
java.lang.Object
cz.cvut.kbss.ontodriver.descriptor.ContainerDescriptor
- Direct Known Subclasses:
ContainerValueDescriptor
Descriptor for reading an RDF container.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedContainerDescriptor(ContainerDescriptor.Type type, NamedResource owner, Assertion property, URI context) -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerDescriptoraltDescriptor(NamedResource owner, Assertion property) Creates a newContainerDescriptorfor reading an rdf:Alt container from the default context.static ContainerDescriptoraltDescriptor(NamedResource owner, Assertion property, URI context) Creates a newContainerDescriptorfor reading an rdf:Alt container from the specified context.static ContainerDescriptorbagDescriptor(NamedResource owner, Assertion property) Creates a newContainerDescriptorfor reading an rdf:Bag container from the default context.static ContainerDescriptorbagDescriptor(NamedResource owner, Assertion property, URI context) Creates a newContainerDescriptorfor reading an rdf:Bag container from the specified context.booleangetOwner()getType()inthashCode()static ContainerDescriptorseqDescriptor(NamedResource owner, Assertion property) Creates a newContainerDescriptorfor reading an rdf:Seq container from the default context.static ContainerDescriptorseqDescriptor(NamedResource owner, Assertion property, URI context) Creates a newContainerDescriptorfor reading an rdf:Seq container from the specified context.
-
Constructor Details
-
ContainerDescriptor
protected ContainerDescriptor(ContainerDescriptor.Type type, NamedResource owner, Assertion property, URI context)
-
-
Method Details
-
getType
-
getOwner
-
getProperty
-
getContext
-
altDescriptor
Creates a newContainerDescriptorfor reading an rdf:Alt container from the default context.- Parameters:
owner- Container ownerproperty- Property referencing the container- Returns:
- Container descriptor
-
altDescriptor
public static ContainerDescriptor altDescriptor(NamedResource owner, Assertion property, URI context) Creates a newContainerDescriptorfor reading an rdf:Alt container from the specified context.- Parameters:
owner- Container ownerproperty- Property referencing the containercontext- Context from which the container should be read- Returns:
- Container descriptor
-
bagDescriptor
Creates a newContainerDescriptorfor reading an rdf:Bag container from the default context.- Parameters:
owner- Container ownerproperty- Property referencing the container- Returns:
- Container descriptor
-
bagDescriptor
public static ContainerDescriptor bagDescriptor(NamedResource owner, Assertion property, URI context) Creates a newContainerDescriptorfor reading an rdf:Bag container from the specified context.- Parameters:
owner- Container ownerproperty- Property referencing the containercontext- Context from which the container should be read- Returns:
- Container descriptor
-
seqDescriptor
Creates a newContainerDescriptorfor reading an rdf:Seq container from the default context.- Parameters:
owner- Container ownerproperty- Property referencing the container- Returns:
- Container descriptor
-
seqDescriptor
public static ContainerDescriptor seqDescriptor(NamedResource owner, Assertion property, URI context) Creates a newContainerDescriptorfor reading an rdf:Seq container from the specified context.- Parameters:
owner- Container ownerproperty- Property referencing the containercontext- Context from which the container should be read- Returns:
- Container descriptor
-
equals
-
hashCode
public int hashCode()
-