C# Class mergedServices.KwSearch

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

Méthodes publiques

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

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

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

GetUris_VsKeywords() public static méthode

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

geturi() public static méthode

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

geturi() public static méthode

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

geturis_List() public static méthode

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

geturis_List_WithMaxuris() public static méthode

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