Annotation Interface OWLAnnotationProperty


@Documented @Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface OWLAnnotationProperty
Marks an attribute mapped to an OWL annotation property.

This means that the attribute can contain a literal or a reference to another object.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    IRI of the annotation property
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    IRI of the datatype to use when storing values of this property.
    (Optional) Whether the association should be lazily loaded or must be eagerly fetched.
    boolean
    (Optional) Marks an attribute whose value is a lexical form of a literal value.
    boolean
    (Optional) Whether the value should be stored as a simple literal, i.e.
  • Element Details

    • iri

      String iri
      IRI of the annotation property
      Returns:
      IRI of the annotation property
    • fetch

      FetchType fetch
      (Optional) Whether the association should be lazily loaded or must be eagerly fetched.
      Returns:
      Fetch type of this property
      Default:
      EAGER
    • lexicalForm

      boolean lexicalForm
      (Optional) Marks an attribute whose value is a lexical form of a literal value.

      This parameter should be used on String attributes, as literal lexical form is always a string. Lexical form of a literal of any datatype can be loaded. Saving the lexical form is forbidden to prevent unintentional change of the data type, unless datatype() is explicitly specified.

      Note that if the value being loaded is an identifier, it will still be loaded, because it is not a literal and String is a valid identifier mapping type.

      Default:
      false
    • simpleLiteral

      boolean simpleLiteral
      (Optional) Whether the value should be stored as a simple literal, i.e. xsd:string.

      Note that if the value being loaded is an identifier, it will still be loaded, because it is not a literal and String is a valid identifier mapping type. However, updates will replace the original with a xsd:string value.

      Returns:
      Whether the mapped value is a simple literal
      Default:
      false
    • datatype

      String datatype
      IRI of the datatype to use when storing values of this property.

      If specified, the value of the attribute is treated as the lexical form of the literal (and should be a String).

      Returns:
      Datatype IRI
      Default:
      ""