uk.ac.open.kmi.watson.services
Class WatsonService

java.lang.Object
  extended by uk.ac.open.kmi.watson.services.WatsonService
Direct Known Subclasses:
EntitySearch, Measures, SemanticContentSearch

public class WatsonService
extends java.lang.Object

Super-class of the classes of the Watson services (server side). Contains common methods for the management of URIs and constants used for defining the search functions.

Author:
mda99

Field Summary
static int CLASS
          entity modifier for classes.
static int COMMENT
          scope modifier for comments.
static int EXACT_MATCH
          Matcher: exact match of a normalized form
static int INDIVIDUAL
          entity modifier for individuals.
static int LABEL
          scope modifier for labels.
static int LITERAL
          scope modifier for other related literals.
static int LOCAL_NAME
          scope modifier for local names.
static int NS
          scope modifier for namsespaces.
static int PROPERTY
          entity modifier for properties.
static int TOKEN_MATCH
          Matcher: match a token
 
Method Summary
 void getLiteralIndexSearcher(org.apache.lucene.search.ParallelMultiSearcher s)
           
 void setDocumentIndexSearcher(org.apache.lucene.search.ParallelMultiSearcher pms)
           
 void setEntityIndexSearcher(org.apache.lucene.search.ParallelMultiSearcher s)
           
 void setRelationIndexSearcher(org.apache.lucene.search.ParallelMultiSearcher s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

public static final int CLASS
entity modifier for classes.

See Also:
Constant Field Values

PROPERTY

public static final int PROPERTY
entity modifier for properties.

See Also:
Constant Field Values

INDIVIDUAL

public static final int INDIVIDUAL
entity modifier for individuals.

See Also:
Constant Field Values

NS

public static final int NS
scope modifier for namsespaces.

See Also:
Constant Field Values

LOCAL_NAME

public static final int LOCAL_NAME
scope modifier for local names.

See Also:
Constant Field Values

LABEL

public static final int LABEL
scope modifier for labels.

See Also:
Constant Field Values

COMMENT

public static final int COMMENT
scope modifier for comments.

See Also:
Constant Field Values

LITERAL

public static final int LITERAL
scope modifier for other related literals.

See Also:
Constant Field Values

TOKEN_MATCH

public static final int TOKEN_MATCH
Matcher: match a token

See Also:
Constant Field Values

EXACT_MATCH

public static final int EXACT_MATCH
Matcher: exact match of a normalized form

See Also:
Constant Field Values
Method Detail

setDocumentIndexSearcher

public void setDocumentIndexSearcher(org.apache.lucene.search.ParallelMultiSearcher pms)

setEntityIndexSearcher

public void setEntityIndexSearcher(org.apache.lucene.search.ParallelMultiSearcher s)

setRelationIndexSearcher

public void setRelationIndexSearcher(org.apache.lucene.search.ParallelMultiSearcher s)

getLiteralIndexSearcher

public void getLiteralIndexSearcher(org.apache.lucene.search.ParallelMultiSearcher s)