Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-6392

Better delegate key generation

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0uimaFIT
    • uimaFIT
    • None

    Description

      When building an aggregate using the uimaFIT AggregateBuilder or even the createEngine(AED, AED, ...) method, uimaFIT auto-generates the delegate keys. For example, if there is a name set in the metadata, then this is used and the index of the delegate is appended to it. But there are problems with the current approach.

      First problem is that for delegate aggregates, we simply get null-0 if these aggregates do not have a name in their metadata. That could be improved at least to something like aggregate-0.

      Second problem is that the name set in the metadata is not sanitized in any way before being used as a delegate key. This means the name could contain e.g. slashes / which would then go into the qualified context name of the delegate and at that point it would mess up the context namespace hierarchy, placing delegates apparently at deeper levels than they actually are. So some sanitation would be called for here.

      Attachments

        Issue Links

          Activity

            People

              rec Richard Eckart de Castilho
              rec Richard Eckart de Castilho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: