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
ConstructorsModifierConstructorDescriptionprotected
ContainerDescriptor
(ContainerDescriptor.Type type, NamedResource owner, Assertion property, URI context) -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerDescriptor
altDescriptor
(NamedResource owner, Assertion property) Creates a newContainerDescriptor
for reading an rdf:Alt container from the default context.static ContainerDescriptor
altDescriptor
(NamedResource owner, Assertion property, URI context) Creates a newContainerDescriptor
for reading an rdf:Alt container from the specified context.static ContainerDescriptor
bagDescriptor
(NamedResource owner, Assertion property) Creates a newContainerDescriptor
for reading an rdf:Bag container from the default context.static ContainerDescriptor
bagDescriptor
(NamedResource owner, Assertion property, URI context) Creates a newContainerDescriptor
for reading an rdf:Bag container from the specified context.boolean
getOwner()
getType()
int
hashCode()
static ContainerDescriptor
seqDescriptor
(NamedResource owner, Assertion property) Creates a newContainerDescriptor
for reading an rdf:Seq container from the default context.static ContainerDescriptor
seqDescriptor
(NamedResource owner, Assertion property, URI context) Creates a newContainerDescriptor
for 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 newContainerDescriptor
for 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 newContainerDescriptor
for 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 newContainerDescriptor
for 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 newContainerDescriptor
for 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 newContainerDescriptor
for 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 newContainerDescriptor
for 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()
-