Annotation Interface OWLObjectProperty


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

The Java type of such attributes is either another entity or a valid identifier type.

Note that for use with RDF(S), attributes annotated with this annotation are expected to reference other RDF resources.

  • Required Element Summary

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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    (Optional) The operations that must be cascaded to the target of the association.
    (Optional) Whether the association should be lazily loaded or must be eagerly fetched.
  • Element Details

    • iri

      String iri
      IRI of the object property
      Returns:
      IRI of the object property
    • cascade

      CascadeType[] cascade
      (Optional) The operations that must be cascaded to the target of the association.

      By default no operations are cascaded.

      Returns:
      Cascading setting for the annotated attribute
      Default:
      {}
    • fetch

      FetchType fetch
      (Optional) Whether the association should be lazily loaded or must be eagerly fetched.
      Returns:
      Whether this property is read only
      Default:
      LAZY