edu.columbia.cs.cg.prdualrank.searchengine.querygenerator
Class QueryGenerator<Q>

java.lang.Object
  extended by edu.columbia.cs.cg.prdualrank.searchengine.querygenerator.QueryGenerator<Q>
Direct Known Subclasses:
ConcatQueryGenerator, LuceneQueryGenerator

public abstract class QueryGenerator<Q>
extends java.lang.Object

This class is used for our implementation of: "Searching Patterns for Relation Extraction over the Web: Rediscovering the Pattern-Relation Duality" . Y. Fang and K. C.-C. Chang. In WSDM, pages 825-834, 2011. For further information, WSDM 2011 Conference Website .

Description

Generation of queries for specific search Engines. The implementation of the Search Engines and Query Generator used must correspond in their implementation to obtain the expected results. To understand how the queries are generated please refer to Algorithm PatternSearch(To,S,E) in Figure 9 on Section 5 of the paper mentioned here.

Since:
2011-10-07
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes
See Also:
WSDM 2011 Conference Website

Constructor Summary
QueryGenerator()
           
 
Method Summary
abstract  Q generateQuery(Entity role)
          Generate query based on a specific entity
abstract  Q generateQuery(Relationship relationship)
          Generate query based on a relationship (tuple)
abstract  Q generateQuery(SearchPattern<Document,TokenizedDocument> pattern)
          Generate query based on a pattern that matches documents (i.e.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryGenerator

public QueryGenerator()
Method Detail

generateQuery

public abstract Q generateQuery(Relationship relationship)
Generate query based on a relationship (tuple)

Parameters:
relationship - the relationship
Returns:
the q

generateQuery

public abstract Q generateQuery(Entity role)
Generate query based on a specific entity

Parameters:
role - the role
Returns:
the q

generateQuery

public abstract Q generateQuery(SearchPattern<Document,TokenizedDocument> pattern)
Generate query based on a pattern that matches documents (i.e. Search Patterns)

Parameters:
pattern - the pattern
Returns:
the q