C# Класс mergedServices.QueryBucket

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
literalOnly bool
questionLeft string
tokens List

Открытые методы

Метод Описание
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 ""

Приватные методы

Метод Описание
questionMatch ( string input ) : string

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

Описание методов

ContainsQueryPart() публичный Метод

public ContainsQueryPart ( string queryPart ) : bool
queryPart string
Результат bool

ContainsTokenWithSameIdentifier() публичный Метод

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
Результат bool

ContainsTokenWithSameURIs() публичный Метод

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
Результат bool

EqualSolution() публичный Метод

public EqualSolution ( QueryBucket bucket2 ) : bool
bucket2 QueryBucket
Результат bool

GetQuery() публичный Метод

public GetQuery ( ) : void
Результат void

QueryBucket() публичный Метод

a constructor taking another bucket to simple clone it here
public QueryBucket ( QueryBucket bucket ) : System
bucket QueryBucket the query bucket to clone it here
Результат System

QueryBucket() публичный Метод

constructor
public QueryBucket ( string question, util type ) : System
question string the question of the query bucket
type util
Результат System

add() публичный Метод

adds a new token to the bucket
public add ( LexiconToken token ) : bool
token LexiconToken the token to add to the bucket
Результат bool

getPermutations() публичный Метод

gets the permutations based on the "_" and ""
public getPermutations ( string questionLeft ) : List
questionLeft string the input questionLeft
Результат List

Описание свойств

literalOnly публичное свойство

public bool literalOnly
Результат bool

questionLeft публичное свойство

public string questionLeft
Результат string

tokens публичное свойство

public List tokens
Результат List