info.aduna.infosource.crawl.index
Class IndexConstants

java.lang.Object
  extended by info.aduna.infosource.crawl.index.IndexConstants

public class IndexConstants
extends Object

Constants and utility methods related to the text indexing performed by a CrawlingRepository.


Field Summary
static String AGENT_FIELD
           
static String[] AGENT_NAME_PROPERTIES
          The agent properties that need to be indexed.
static String[] AGENT_PROPERTIES
          Predicates that connect a crawled resource to an (mail) agent with potentially indexable properties.
static String ID_FIELD
          The Lucene field used for storing the indexed Resource's URI.
static Map<String,String> INDEXED_RESOURCE_PREDICATES
          Maps RDF predicates of properties connected to the crawled Resource to Lucene field names.
static String PATH_FIELD
           
static String SUMMARY_FIELD
           
static String TEXT_FIELD
          The Lucene field used for full-text indexing.
static String TITLE_FIELD
           
 
Constructor Summary
IndexConstants()
           
 
Method Summary
static boolean containsPredicate(String[] predicates, org.openrdf.model.Statement statement)
           
static boolean containsPredicate(String[] predicates, String predicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEXED_RESOURCE_PREDICATES

public static final Map<String,String> INDEXED_RESOURCE_PREDICATES
Maps RDF predicates of properties connected to the crawled Resource to Lucene field names.


ID_FIELD

public static final String ID_FIELD
The Lucene field used for storing the indexed Resource's URI.

See Also:
Constant Field Values

TEXT_FIELD

public static final String TEXT_FIELD
The Lucene field used for full-text indexing. This field has special significance because the corresponding predicates are not stored in the RDF store.

See Also:
Constant Field Values

TITLE_FIELD

public static final String TITLE_FIELD
See Also:
Constant Field Values

PATH_FIELD

public static final String PATH_FIELD
See Also:
Constant Field Values

SUMMARY_FIELD

public static final String SUMMARY_FIELD
See Also:
Constant Field Values

AGENT_FIELD

public static final String AGENT_FIELD
See Also:
Constant Field Values

AGENT_PROPERTIES

public static final String[] AGENT_PROPERTIES
Predicates that connect a crawled resource to an (mail) agent with potentially indexable properties.


AGENT_NAME_PROPERTIES

public static final String[] AGENT_NAME_PROPERTIES
The agent properties that need to be indexed.

Constructor Detail

IndexConstants

public IndexConstants()
Method Detail

containsPredicate

public static boolean containsPredicate(String[] predicates,
                                        org.openrdf.model.Statement statement)

containsPredicate

public static boolean containsPredicate(String[] predicates,
                                        String predicate)


Copyright © 1997-2008 Aduna. All Rights Reserved.