Skip to contentPackage: RDFContainer
RDFContainer
Coverage
1: package cz.cvut.kbss.jopa.model.annotations;
2:
3: import java.lang.annotation.ElementType;
4: import java.lang.annotation.Retention;
5: import java.lang.annotation.RetentionPolicy;
6: import java.lang.annotation.Target;
7:
8: /**
9: * Specifies mapping of an <a href="https://www.w3.org/TR/rdf12-schema/#ch_containervocab">RDF container</a>.
10: * <p>
11: * RDF containers are resources used to represent collections. In contrast to RDF collections, they are not closed, so
12: * it is possible to add new items to them without having to reattach the container ending element.
13: * <p>
14: * Three types of RDF containers are defined, each with different convention-based semantics.
15: *
16: * @see RDFContainerType
17: */
18: @Retention(RetentionPolicy.RUNTIME)
19: @Target({ElementType.FIELD, ElementType.METHOD})
20: public @interface RDFContainer {
21:
22: /**
23: * The type of the container.
24: *
25: * @return Type of the container
26: */
27: RDFContainerType type();
28: }