Class TextDatasetFactory

java.lang.Object
org.apache.jena.query.text.TextDatasetFactory

public class TextDatasetFactory extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.jena.query.Dataset
    create(String assemblerFile)
    Use an assembler file to build a dataset with text search capabilities
    static org.apache.jena.query.Dataset
    create(org.apache.jena.query.Dataset base, TextIndex textIndex)
    Create a text-indexed dataset
    static org.apache.jena.query.Dataset
    create(org.apache.jena.query.Dataset base, TextIndex textIndex, boolean closeIndexOnDSGClose)
    Create a text-indexed dataset, optionally allowing the text index to be closed if the Dataset is
    static org.apache.jena.query.Dataset
    create(org.apache.jena.query.Dataset base, TextIndex textIndex, boolean closeIndexOnDSGClose, TextDocProducer producer)
    Create a text-indexed dataset, optionally allowing the text index to be closed if the Dataset is
    static org.apache.jena.sparql.core.DatasetGraph
    create(org.apache.jena.sparql.core.DatasetGraph dsg, TextIndex textIndex)
    Create a text-indexed DatasetGraph
    static org.apache.jena.sparql.core.DatasetGraph
    create(org.apache.jena.sparql.core.DatasetGraph dsg, TextIndex textIndex, boolean closeIndexOnDSGClose)
    Create a text-indexed DatasetGraph, optionally allowing the text index to be closed if the DatasetGraph is
    static org.apache.jena.sparql.core.DatasetGraph
    create(org.apache.jena.sparql.core.DatasetGraph dsg, TextIndex textIndex, boolean closeIndexOnDSGClose, TextDocProducer producer)
    Create a text-indexed DatasetGraph, optionally allowing the text index to be closed if the DatasetGraph is
    static org.apache.jena.query.Dataset
    createLucene(org.apache.jena.query.Dataset base, org.apache.lucene.store.Directory directory, EntityDefinition def, org.apache.lucene.analysis.Analyzer queryAnalyzer)
    Create a text-indexed dataset, using Lucene
    static org.apache.jena.query.Dataset
    createLucene(org.apache.jena.query.Dataset base, org.apache.lucene.store.Directory directory, TextIndexConfig config)
    Create a text-indexed dataset, using Lucene
    static org.apache.jena.sparql.core.DatasetGraph
    createLucene(org.apache.jena.sparql.core.DatasetGraph base, org.apache.lucene.store.Directory directory, EntityDefinition def, org.apache.lucene.analysis.Analyzer queryAnalyzer)
    Create a text-indexed dataset, using Lucene
    static org.apache.jena.sparql.core.DatasetGraph
    createLucene(org.apache.jena.sparql.core.DatasetGraph base, org.apache.lucene.store.Directory directory, TextIndexConfig config)
    Create a text-indexed dataset, using Lucene
    static TextIndex
    createLuceneIndex(org.apache.lucene.store.Directory directory, EntityDefinition def, org.apache.lucene.analysis.Analyzer queryAnalyzer)
    Create a Lucene TextIndex
    static TextIndex
    createLuceneIndex(org.apache.lucene.store.Directory directory, TextIndexConfig config)
    Create a Lucene TextIndex

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TextDatasetFactory

      public TextDatasetFactory()
  • Method Details

    • create

      public static org.apache.jena.query.Dataset create(String assemblerFile)
      Use an assembler file to build a dataset with text search capabilities
    • create

      public static org.apache.jena.query.Dataset create(org.apache.jena.query.Dataset base, TextIndex textIndex)
      Create a text-indexed dataset
    • create

      public static org.apache.jena.query.Dataset create(org.apache.jena.query.Dataset base, TextIndex textIndex, boolean closeIndexOnDSGClose)
      Create a text-indexed dataset, optionally allowing the text index to be closed if the Dataset is
    • create

      public static org.apache.jena.query.Dataset create(org.apache.jena.query.Dataset base, TextIndex textIndex, boolean closeIndexOnDSGClose, TextDocProducer producer)
      Create a text-indexed dataset, optionally allowing the text index to be closed if the Dataset is
    • create

      public static org.apache.jena.sparql.core.DatasetGraph create(org.apache.jena.sparql.core.DatasetGraph dsg, TextIndex textIndex)
      Create a text-indexed DatasetGraph
    • create

      public static org.apache.jena.sparql.core.DatasetGraph create(org.apache.jena.sparql.core.DatasetGraph dsg, TextIndex textIndex, boolean closeIndexOnDSGClose)
      Create a text-indexed DatasetGraph, optionally allowing the text index to be closed if the DatasetGraph is
    • create

      public static org.apache.jena.sparql.core.DatasetGraph create(org.apache.jena.sparql.core.DatasetGraph dsg, TextIndex textIndex, boolean closeIndexOnDSGClose, TextDocProducer producer)
      Create a text-indexed DatasetGraph, optionally allowing the text index to be closed if the DatasetGraph is
    • createLuceneIndex

      public static TextIndex createLuceneIndex(org.apache.lucene.store.Directory directory, EntityDefinition def, org.apache.lucene.analysis.Analyzer queryAnalyzer)
      Create a Lucene TextIndex
      Parameters:
      directory - The Lucene Directory for the index
      def - The EntityDefinition that defines how entities are stored in the index
      queryAnalyzer - The analyzer to be used to find terms in the query text. If null, then the analyzer defined by the EntityDefinition will be used.
    • createLuceneIndex

      public static TextIndex createLuceneIndex(org.apache.lucene.store.Directory directory, TextIndexConfig config)
      Create a Lucene TextIndex
      Parameters:
      directory - The Lucene Directory for the index
      config - The config definition for the index instantiation.
    • createLucene

      public static org.apache.jena.query.Dataset createLucene(org.apache.jena.query.Dataset base, org.apache.lucene.store.Directory directory, EntityDefinition def, org.apache.lucene.analysis.Analyzer queryAnalyzer)
      Create a text-indexed dataset, using Lucene
      Parameters:
      base - the base Dataset
      directory - The Lucene Directory for the index
      def - The EntityDefinition that defines how entities are stored in the index
      queryAnalyzer - The analyzer to be used to find terms in the query text. If null, then the analyzer defined by the EntityDefinition will be used.
    • createLucene

      public static org.apache.jena.query.Dataset createLucene(org.apache.jena.query.Dataset base, org.apache.lucene.store.Directory directory, TextIndexConfig config)
      Create a text-indexed dataset, using Lucene
      Parameters:
      base - the base Dataset
      directory - The Lucene Directory for the index
      config - The config definition for the index instantiation.
    • createLucene

      public static org.apache.jena.sparql.core.DatasetGraph createLucene(org.apache.jena.sparql.core.DatasetGraph base, org.apache.lucene.store.Directory directory, EntityDefinition def, org.apache.lucene.analysis.Analyzer queryAnalyzer)
      Create a text-indexed dataset, using Lucene
      Parameters:
      base - the base DatasetGraph
      directory - The Lucene Directory for the index
      def - The EntityDefinition that defines how entities are stored in the index
      queryAnalyzer - The analyzer to be used to find terms in the query text. If null, then the analyzer defined by the EntityDefinition will be used.
    • createLucene

      public static org.apache.jena.sparql.core.DatasetGraph createLucene(org.apache.jena.sparql.core.DatasetGraph base, org.apache.lucene.store.Directory directory, TextIndexConfig config)
      Create a text-indexed dataset, using Lucene
      Parameters:
      base - the base DatasetGraph
      directory - The Lucene Directory for the index
      config - The config definition for the index instantiation.