Annotation Interface Context


Declares repository context in which data are stored.

When used on a type, it is applied to all attributes of the type. When used on an attribute, it is applied to the attribute values (the attribute assertions themselves are still stored in the subject's context).

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Context IRI.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether to propagate the context recursively.
  • Element Details

    • value

      String value
      Context IRI.

      Can use prefixed values as long as the prefix is declared.

      Returns:
      Context identifier
    • propagate

      boolean propagate
      Whether to propagate the context recursively.

      When applied on a type, this means propagate the context to all referenced values and keep propagating it recursively.

      If false (default), the context is applied only to the subject type (or attribute values). Further references are reset to the default context.

      Returns:
      Whether to propagate the context
      Default:
      false