C# Class mergedServices.QueryBucket

Afficher le fichier Open project: sherifkandeel/weet-it_WCF Class Usage Examples

Méthodes publiques

Свойство Type Description
literalOnly bool
questionLeft string
tokens List

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ContainsQueryPart ( string queryPart ) : bool
queryPart string
Résultat bool

ContainsTokenWithSameIdentifier() public méthode

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
Résultat bool

ContainsTokenWithSameURIs() public méthode

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
Résultat bool

EqualSolution() public méthode

public EqualSolution ( QueryBucket bucket2 ) : bool
bucket2 QueryBucket
Résultat bool

GetQuery() public méthode

public GetQuery ( ) : void
Résultat void

QueryBucket() public méthode

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

QueryBucket() public méthode

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

add() public méthode

adds a new token to the bucket
public add ( LexiconToken token ) : bool
token LexiconToken the token to add to the bucket
Résultat bool

getPermutations() public méthode

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

Property Details

literalOnly public_oe property

public bool literalOnly
Résultat bool

questionLeft public_oe property

public string questionLeft
Résultat string

tokens public_oe property

public List tokens
Résultat List