Annotation Interface LinkURI


@Retention(RUNTIME) @Target({TYPE,FIELD}) public @interface LinkURI
An annotation to indicate the URI associated with a class or a field within a class.

When this annotation is absent, the URI for a class or a field is constructed by appending the name of the class or field to the defining schema’s default prefix.

However, at present the LinkML-Java runtime has no way of knowing the schema’s “default prefix”, so code generators should always inject that annotation. The org.incenp.linkml template variant in LinkML-Py’s Java code generator does this.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details