C# Class mergedServices.KwSearch

Show file Open project: sherifkandeel/weet-it_WCF Class Usage Examples

Public Methods

Method Description
GetUris_VsKeyword_comma ( string text ) : string

takes a vs separated keywords and finds best matching uri for each of them

GetUris_VsKeywords ( string text ) : List

takes a vs separated keywords and finds bets matching uri for each of them

geturi ( string keyword, int MaxUris = 1 ) : List

gets the top n uris that best matches the given keyword ,you can specify MaxURis with 1 to get the best matching one ///

geturi ( string keyword ) : string

get the uri that best matches given keyword(it can be a multiple word keyword), to get the top n matches for the given keyword, please use the overloaded method geturi(string keyworn,in MaxUris)

geturis_List ( List keywords ) : List

same function as geturi(string keyword) but takes a list of keywords as an argument,it finds the best matching uri for every keyword in the list

geturis_List_WithMaxuris ( List keywords, int MaxUris ) : List>

takes a list of keywords and returns -for each keyword- A list of best matching uris,

Private Methods

Method Description
Find_URIs ( string keyword, int MaxUris ) : List
bifcont_generator ( string keyword ) : string

generates the sparql bifcontains syntax for multiple word keywords

bifcont_generator1 ( string keyword ) : string
computeLevenshteinDistance ( string s, string t ) : int
scorecalc ( string keyword, SparqlResult singleuri ) : int

Method Details

GetUris_VsKeyword_comma() public static method

takes a vs separated keywords and finds best matching uri for each of them
public static GetUris_VsKeyword_comma ( string text ) : string
text string string to be split
return string

GetUris_VsKeywords() public static method

takes a vs separated keywords and finds bets matching uri for each of them
public static GetUris_VsKeywords ( string text ) : List
text string string to be split
return List

geturi() public static method

gets the top n uris that best matches the given keyword ,you can specify MaxURis with 1 to get the best matching one ///
public static geturi ( string keyword, int MaxUris = 1 ) : List
keyword string keyword to get uri for
MaxUris int the number of top rated uris to get
return List

geturi() public static method

get the uri that best matches given keyword(it can be a multiple word keyword), to get the top n matches for the given keyword, please use the overloaded method geturi(string keyworn,in MaxUris)
public static geturi ( string keyword ) : string
keyword string
return string

geturis_List() public static method

same function as geturi(string keyword) but takes a list of keywords as an argument,it finds the best matching uri for every keyword in the list
public static geturis_List ( List keywords ) : List
keywords List The List of keywords to get best matching uris for
return List

geturis_List_WithMaxuris() public static method

takes a list of keywords and returns -for each keyword- A list of best matching uris,
public static geturis_List_WithMaxuris ( List keywords, int MaxUris ) : List>
keywords List List of keywords to get top n matching uris for each one
MaxUris int List of lists containing a list of best matching uris for each keyword given
return List>