@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface RDFContainer
Applied to: Method declaration
Value: RDFContainer.ContainerType
(optional)
Default value: RDFContainer.ContainerType.NONE
@RDFContainer
annotation supplements RDFBean property declaration (@RDF
annotation) for properties of array and Collection types. The value element is a constant from RDFContainer.ContainerType
enumeration that specifies a type of RDF container to hold values of this array or Collection in the RDF model.
If no @RDFContainer
annotation is declared, each value of this array or Collection is represented with an individual RDF statement. It is not possible to guarantee any order of elements in this case.
Otherwise, multiple values are represented with an RDF Container as specified by RDFContainer.ContainerType
element:
RDFContainer.ContainerType.BAG
- rdf:BagRDFContainer.ContainerType.SEQ
- rdf:SeqRDFContainer.ContainerType.ALT
- rdf:AltRDFContainer.ContainerType.LIST
- rdf:List collectionExample:
@RDF("foaf:nick")
@RDFContainer(ContainerType.ALT)
public String[] getNick() {
...
Modifier and Type | Optional Element and Description |
---|---|
RDFContainer.ContainerType |
value
Specifies a type of RDF container for array or Collection properties.
|
public abstract RDFContainer.ContainerType value
Specifies a type of RDF container for array or Collection properties.
Copyright © 2017. All rights reserved.