Skip to content

Package: RDFCollection

RDFCollection

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_collectionvocab">RDF collection</a>.
10: * <p>
11: * RDF collections are lists of items where each item points to a value and the next item. In this regard, they are
12: * equivalent to a {@link Sequence} of type {@link SequenceType#referenced}. In contrast to referenced lists though, RDF
13: * collections are closed by a {@literal rdf:nil} element.
14: */
15: @Retention(RetentionPolicy.RUNTIME)
16: @Target({ElementType.FIELD, ElementType.METHOD})
17: public @interface RDFCollection {
18: }