@Test void testSearchIsoLatin() { String description = "Standing height (Ångstrøm)"; List<String> ontologyIds = singletonList("1"); Set<String> searchTerms = Sets.newHashSet("standing", "height", "ångstrøm"); semanticSearchServiceHelper.findTags(description, ontologyIds); verify(ontologyService) .findOntologyTerms(ontologyIds, searchTerms, SemanticSearchServiceHelper.MAX_NUM_TAGS); }
public List<OntologyTerm> findTags(String description, List<String> ontologyIds) { Set<String> searchTerms = removeStopWords(description); return ontologyService.findOntologyTerms(ontologyIds, searchTerms, MAX_NUM_TAGS); }
SemanticSearchServiceHelper { public List<OntologyTerm> findTags(String description, List<String> ontologyIds) { Set<String> searchTerms = removeStopWords(description); return ontologyService.findOntologyTerms(ontologyIds, searchTerms, MAX_NUM_TAGS); } }
SemanticSearchServiceHelper { public List<OntologyTerm> findTags(String description, List<String> ontologyIds) { Set<String> searchTerms = removeStopWords(description); return ontologyService.findOntologyTerms(ontologyIds, searchTerms, MAX_NUM_TAGS); } SemanticSearchServiceHelper(
      DataService dataService,
      OntologyService ontologyService,
      TermFrequencyService termFrequencyService); }
SemanticSearchServiceHelper { public List<OntologyTerm> findTags(String description, List<String> ontologyIds) { Set<String> searchTerms = removeStopWords(description); return ontologyService.findOntologyTerms(ontologyIds, searchTerms, MAX_NUM_TAGS); } SemanticSearchServiceHelper(
      DataService dataService,
      OntologyService ontologyService,
      TermFrequencyService termFrequencyService); QueryRule createDisMaxQueryRuleForAttribute(
      Set<String> searchTerms, Collection<OntologyTerm> ontologyTerms); QueryRule createDisMaxQueryRuleForTerms(List<String> queryTerms); QueryRule createBoostedDisMaxQueryRuleForTerms(
      List<String> queryTerms, Double boostValue); QueryRule createShouldQueryRule(String multiOntologyTermIri); List<String> parseOntologyTermQueries(OntologyTerm ontologyTerm); Set<String> getOtLabelAndSynonyms(OntologyTerm ontologyTerm); Map<String, String> collectExpandedQueryMap(
      Set<String> queryTerms, Collection<OntologyTerm> ontologyTerms); void collectOntologyTermQueryMap(
      Map<String, String> expanedQueryMap, OntologyTerm ontologyTerm); List<String> getAttributeIdentifiers(EntityType sourceEntityType); List<OntologyTerm> findTags(String description, List<String> ontologyIds); String processQueryString(String queryString); String parseBoostQueryString(String queryString, double boost); String escapeCharsExcludingCaretChar(String string); Set<String> removeStopWords(String description); }
SemanticSearchServiceHelper { public List<OntologyTerm> findTags(String description, List<String> ontologyIds) { Set<String> searchTerms = removeStopWords(description); return ontologyService.findOntologyTerms(ontologyIds, searchTerms, MAX_NUM_TAGS); } SemanticSearchServiceHelper(
      DataService dataService,
      OntologyService ontologyService,
      TermFrequencyService termFrequencyService); QueryRule createDisMaxQueryRuleForAttribute(
      Set<String> searchTerms, Collection<OntologyTerm> ontologyTerms); QueryRule createDisMaxQueryRuleForTerms(List<String> queryTerms); QueryRule createBoostedDisMaxQueryRuleForTerms(
      List<String> queryTerms, Double boostValue); QueryRule createShouldQueryRule(String multiOntologyTermIri); List<String> parseOntologyTermQueries(OntologyTerm ontologyTerm); Set<String> getOtLabelAndSynonyms(OntologyTerm ontologyTerm); Map<String, String> collectExpandedQueryMap(
      Set<String> queryTerms, Collection<OntologyTerm> ontologyTerms); void collectOntologyTermQueryMap(
      Map<String, String> expanedQueryMap, OntologyTerm ontologyTerm); List<String> getAttributeIdentifiers(EntityType sourceEntityType); List<OntologyTerm> findTags(String description, List<String> ontologyIds); String processQueryString(String queryString); String parseBoostQueryString(String queryString, double boost); String escapeCharsExcludingCaretChar(String string); Set<String> removeStopWords(String description); static final int MAX_NUM_TAGS; }