C# Class mergedServices.QueryBucket

Mostrar archivo Open project: sherifkandeel/weet-it_WCF Class Usage Examples

Public Properties

Property Type Description
literalOnly bool
questionLeft string
tokens List

Public Methods

Method Description
ContainsQueryPart ( string queryPart ) : bool
ContainsTokenWithSameIdentifier ( LexiconToken token ) : bool

Checks if there is a token already exists in the consumed tokens list that has same identifier

ContainsTokenWithSameURIs ( LexiconToken token ) : bool

Checks if there is a token already exists in the consumed tokens list that connects the same URIs (has same range and domain)

EqualSolution ( QueryBucket bucket2 ) : bool
GetQuery ( ) : void
QueryBucket ( QueryBucket bucket ) : System

a constructor taking another bucket to simple clone it here

QueryBucket ( string question, util type ) : System

constructor

add ( LexiconToken token ) : bool

adds a new token to the bucket

getPermutations ( string questionLeft ) : List

gets the permutations based on the "_" and ""

Private Methods

Method Description
questionMatch ( string input ) : string

Matches the question of the new token with the questionleft in the bucekt "_" and oneword is supported

Method Details

ContainsQueryPart() public method

public ContainsQueryPart ( string queryPart ) : bool
queryPart string
return bool

ContainsTokenWithSameIdentifier() public method

Checks if there is a token already exists in the consumed tokens list that has same identifier
public ContainsTokenWithSameIdentifier ( LexiconToken token ) : bool
token LexiconToken the token to compare to
return bool

ContainsTokenWithSameURIs() public method

Checks if there is a token already exists in the consumed tokens list that connects the same URIs (has same range and domain)
public ContainsTokenWithSameURIs ( LexiconToken token ) : bool
token LexiconToken the lexicon token to compare to
return bool

EqualSolution() public method

public EqualSolution ( QueryBucket bucket2 ) : bool
bucket2 QueryBucket
return bool

GetQuery() public method

public GetQuery ( ) : void
return void

QueryBucket() public method

a constructor taking another bucket to simple clone it here
public QueryBucket ( QueryBucket bucket ) : System
bucket QueryBucket the query bucket to clone it here
return System

QueryBucket() public method

constructor
public QueryBucket ( string question, util type ) : System
question string the question of the query bucket
type util
return System

add() public method

adds a new token to the bucket
public add ( LexiconToken token ) : bool
token LexiconToken the token to add to the bucket
return bool

getPermutations() public method

gets the permutations based on the "_" and ""
public getPermutations ( string questionLeft ) : List
questionLeft string the input questionLeft
return List

Property Details

literalOnly public_oe property

public bool literalOnly
return bool

questionLeft public_oe property

public string questionLeft
return string

tokens public_oe property

public List tokens
return List