Class AnnotationsWebService.AnnotationCategoryValueObject

java.lang.Object
ubic.gemma.rest.AnnotationsWebService.AnnotationCategoryValueObject
Enclosing class:
AnnotationsWebService

public static final class AnnotationsWebService.AnnotationCategoryValueObject extends Object
Wire shape for GET /annotations/categories — carries the ontology term info plus a preferred-prefix list per category (config-driven via annotation.category.prefixes). Curation-ui passes the listed prefixes as ?prefixes= on a downstream /annotations/search when the curator scopes the search to this category. Empty list = no preference; client decides.

excludedPrefixes is the other half and a different KIND of statement: a preference only reorders, an exclusion says the namespace is categorically impossible and its hits leave data for negativeEvidence.ruledOut. It is published because consumers were hand-rolling their own category→namespace tables and getting them wrong — CAB hand-wrote one to audit gold and 20 of its 26 flags were the table's error, not the data's. A client that reads this cannot silently disagree with the server about what is possible.

Author:
tesarst
  • Constructor Details

    • AnnotationCategoryValueObject

      public AnnotationCategoryValueObject(String uri, String label, List<String> preferredPrefixes, List<String> excludedPrefixes)
  • Method Details

    • getUri

      public String getUri()
    • getLabel

      public String getLabel()
    • getPreferredPrefixes

      public List<String> getPreferredPrefixes()
    • getExcludedPrefixes

      public List<String> getExcludedPrefixes()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object