java.lang.Object
org.apache.jena.query.text.analyzer.Util

public class Util extends Object
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • getLocalizedAnalyzer

      public static org.apache.lucene.analysis.Analyzer getLocalizedAnalyzer(String lang)
    • addAnalyzer

      public static void addAnalyzer(String lang, org.apache.lucene.analysis.Analyzer analyzer)
    • getDefinedAnalyzer

      public static org.apache.lucene.analysis.Analyzer getDefinedAnalyzer(org.apache.jena.rdf.model.Resource key)
    • defineAnalyzer

      public static void defineAnalyzer(org.apache.jena.rdf.model.Resource key, org.apache.lucene.analysis.Analyzer analyzer)
    • getIndexAnalyzer

      public static org.apache.lucene.analysis.Analyzer getIndexAnalyzer(String tag)
    • addIndexAnalyzer

      public static void addIndexAnalyzer(String tag, org.apache.lucene.analysis.Analyzer analyzer)
    • usingIndexAnalyzers

      public static boolean usingIndexAnalyzers()
    • addPropsList

      public static void addPropsList(org.apache.jena.rdf.model.Resource prop, List<org.apache.jena.rdf.model.Resource> list)
    • getPropList

      public static List<org.apache.jena.rdf.model.Resource> getPropList(org.apache.jena.rdf.model.Resource prop)
    • sizePropsList

      public static int sizePropsList()
    • usingSearchFor

      public static boolean usingSearchFor(String lang)
    • getSearchForTags

      public static List<String> getSearchForTags(String lang)
      If there are a list of tags to search for given the supplied lang tag, then the list is returned; otherwise, a list of just the supplied lang tag
      Parameters:
      lang -
      Returns:
      possibly empty list of tags to search for
    • addSearchForTags

      public static void addSearchForTags(String tag, List<String> tags)
    • getAuxIndexes

      public static List<String> getAuxIndexes(String tag)
    • addAuxIndexes

      public static void addAuxIndexes(String tag, List<String> tags)
    • finishCaching

      public static void finishCaching()
    • getEffectiveLang

      public static String getEffectiveLang(String docLang, String queryLang)