Class InMemoryTaxonomyService

  • All Implemented Interfaces:
    TaxonomyService

    public class InMemoryTaxonomyService
    extends java.lang.Object
    implements TaxonomyService
    A TaxonomyService leveraging Apache Jena's in memory storage service and Apache Lucene's text searching abilities.
    • Constructor Summary

      Constructors 
      Constructor Description
      InMemoryTaxonomyService​(java.nio.file.Path taxonomyFileLocation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<TreeNode<java.lang.String>> search​(java.lang.String searchTerm)
      Search for a tree of taxonomy terms with a given search term
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InMemoryTaxonomyService

        public InMemoryTaxonomyService​(java.nio.file.Path taxonomyFileLocation)
    • Method Detail

      • search

        public java.util.Collection<TreeNode<java.lang.String>> search​(java.lang.String searchTerm)
        Search for a tree of taxonomy terms with a given search term
        Specified by:
        search in interface TaxonomyService
        Parameters:
        searchTerm - The term to search
        Returns:
        a List of TreeNodes with the requested search term