code: @PostMapping("/autotagattributes")
    public @ResponseBody Map<String, OntologyTag> autoTagAttributes(
        @Valid @RequestBody AutoTagRequest request) {
      String entityTypeId = request.getEntityTypeId();
      EntityType entityType = dataService.getEntityType(entityTypeId);
      List<Ontology> ontologies = ontologyService.getOntologies(request.getOntologyIds());
  
      Map<Attribute, Hit<OntologyTerm>> autoGeneratedTags = new LinkedHashMap<>();
      entityType
          .getAtomicAttributes()
          .forEach(
              attribute -> {
                Hits<OntologyTerm> hits =
                    semanticSearchService.findOntologyTerms(attribute, ontologies);
                if (hits.hasHits()) {
                  autoGeneratedTags.put(attribute, hits.iterator().next());
                }
              });
  
      return ontologyTagService.tagAttributesInEntity(
          request.getEntityTypeId(), Maps.transformValues(autoGeneratedTags, Hit::getResult));
    }
docs: Automatically tags all attributes in the current entity using Lucene lexical matching. Stores
  the tags in the OntologyTag Repository.
  
  @param request containing the entityTypeId and selected ontology identifiers
  @return A {@link Map} containing Attribute name and a Map of Tag iri and label