Class DatasetsWebService.Canonicalization

java.lang.Object
ubic.gemma.rest.DatasetsWebService.Canonicalization
Enclosing class:
DatasetsWebService

public static class DatasetsWebService.Canonicalization extends Object
One accepted rewrite the grounding gate applied to a persisted annotation — a case/whitespace-only near-match canonicalized to the term's label, a blank label filled in from its URI, and/or a known Gemma-ontology term (e.g. TGEMO_*) whose URI was normalized onto the canonical Gemma base. Not a rejection — the slot passed — but the stored value differs from what was submitted, so the client can silently update the chip to canonicalLabel (and knows its submittedUri was off-base — a signal for tracking down which writer emitted the wrong base). A field pair being equal means that dimension was unchanged. Only tags + sampleCharacteristics are reported (the design-section gate is rejection-only and never persists its rewrite).
Author:
tesarst
  • Method Details

    • getLocation

      public String getLocation()
      Request-body path to the rewritten slot, e.g. tags[clientRef=t7].value.
    • getClientRef

      @Nullable public String getClientRef()
      The item's clientRef, so the client can map the rewrite back to its chip without parsing.
    • getSubmittedLabel

      @Nullable public String getSubmittedLabel()
      The label as submitted; null when a URI arrived with no label and one was filled in.
    • getCanonicalLabel

      public String getCanonicalLabel()
      The canonical label now stored — display this (equals submittedLabel when only the URI changed).
    • getSubmittedUri

      public String getSubmittedUri()
      The URI as submitted (off-base when it differs from canonicalUri).
    • getCanonicalUri

      public String getCanonicalUri()
      The URI now stored (equals submittedUri when only the label changed).