C# Class mergedServices.MergedService

Inheritance: keywordSearchServiceInterface
Afficher le fichier Open project: sherifkandeel/weet-it_WCF

Méthodes publiques

Méthode Description
Compare ( List URIs ) : List

This should return the list of resource information objects returning as the comparison result

CompareWithRespect ( List subjectsNames, String predicateURI, int limit = 50 ) : List>
ConstructLiteralProfile ( string subjectURI, string predicate_label, string subject_label, string object_URI, string object_value, string pred_URI ) : Profile
ConstructProfile ( String subjectURI, choiceProfile profile, int resultLimit = 10 ) : Profile

The function gets all info about profile according to its type and the content of XML file it uses

GetAnswerWithQuestionStructure ( string question ) : List
GetPartialAnswer ( string question ) : List
GetUris_VsKeyword_comma ( string text ) : string
GetUris_VsKeywords ( string text ) : List
getCommonPredicates ( ResourceInformation ri ) : string>>.List

Common Predicates between all the resources we're comparing

getID ( ResourceInformation ri ) : string>.KeyValuePair

gets the id of the resource

getPredicates_ResourceIsObj ( ResourceInformation ri ) : string>>.List

gets all predicates responds to the query ?subj ?pred < resource>

getPredicates_ResourceIsSubj ( ResourceInformation ri ) : string>>.List

gets all predicates responds to the query < resource> ?pred ?obj

getRelationWithLabels ( List uri, int Distance, int Limit = 50 ) : List
getRelations ( List uri, int Distance, int Limit = 50 ) : List
getResourcesOfPredicate ( string>.KeyValuePair pred, ResourceInformation ri ) : string>>.List

gets List of resources of a certain predicate

geturi ( string keyword, int MaxUris = 1 ) : List
geturi_bestMatch ( string keyword ) : string
geturis_List ( List keywords ) : List
geturis_List_WithMaxuris ( List keywords, int MaxUris ) : List>
simpleGetRelationWithLabels ( List uri, int Distance, int Limit = 50 ) : string>>>.List
simpleGetRelations ( List uri, int Distance, int Limit = 50 ) : List>

Private Methods

Méthode Description
computeLevenshteinDistance ( string s, string t ) : int
findURIs ( List subjectsNames ) : String
getAbstract ( String SubjectURI ) : String

This function gets the abstract data of the resource with the URI sent using query

getLocation ( String SubjectURI ) : Location

This function gets latitude and longitude of the resource if found with the URI sent using query

getObjects ( List SubjectsURIs, String predicateURI, int limit ) : List>
getQueryResults ( String type, String SubjectURI, String predicateURI, int resultLimit ) : List

This function returns entities of subjects or objects depending on the first parameter if the result of the query is literal, its entity will have label only not URI

setProfileDetails ( String profileType, String subjectURI, int resultLimit ) : List>>.List

The function gets the details part about profile according to its type and the content of XML file it uses

useRedirection ( String uri ) : String

This function returns the redirection page to the pages which have ones

Method Details

Compare() public méthode

This should return the list of resource information objects returning as the comparison result
public Compare ( List URIs ) : List
URIs List the uris to compare between
Résultat List

CompareWithRespect() public méthode

public CompareWithRespect ( List subjectsNames, String predicateURI, int limit = 50 ) : List>
subjectsNames List
predicateURI String
limit int
Résultat List>

ConstructLiteralProfile() public méthode

public ConstructLiteralProfile ( string subjectURI, string predicate_label, string subject_label, string object_URI, string object_value, string pred_URI ) : Profile
subjectURI string
predicate_label string
subject_label string
object_URI string
object_value string
pred_URI string
Résultat Profile

ConstructProfile() public méthode

The function gets all info about profile according to its type and the content of XML file it uses
public ConstructProfile ( String subjectURI, choiceProfile profile, int resultLimit = 10 ) : Profile
subjectURI String The URI of the subject resource as String
profile choiceProfile Type of profile(full, mini, micro)
resultLimit int Max number of results got from queries
Résultat Profile

GetAnswerWithQuestionStructure() public méthode

public GetAnswerWithQuestionStructure ( string question ) : List
question string
Résultat List

GetPartialAnswer() public méthode

public GetPartialAnswer ( string question ) : List
question string
Résultat List

GetUris_VsKeyword_comma() public méthode

public GetUris_VsKeyword_comma ( string text ) : string
text string
Résultat string

GetUris_VsKeywords() public méthode

public GetUris_VsKeywords ( string text ) : List
text string
Résultat List

getCommonPredicates() public méthode

Common Predicates between all the resources we're comparing
public getCommonPredicates ( ResourceInformation ri ) : string>>.List
ri ResourceInformation
Résultat string>>.List

getID() public méthode

gets the id of the resource
public getID ( ResourceInformation ri ) : string>.KeyValuePair
ri ResourceInformation
Résultat string>.KeyValuePair

getPredicates_ResourceIsObj() public méthode

gets all predicates responds to the query ?subj ?pred < resource>
public getPredicates_ResourceIsObj ( ResourceInformation ri ) : string>>.List
ri ResourceInformation
Résultat string>>.List

getPredicates_ResourceIsSubj() public méthode

gets all predicates responds to the query < resource> ?pred ?obj
public getPredicates_ResourceIsSubj ( ResourceInformation ri ) : string>>.List
ri ResourceInformation
Résultat string>>.List

getRelationWithLabels() public méthode

public getRelationWithLabels ( List uri, int Distance, int Limit = 50 ) : List
uri List
Distance int
Limit int
Résultat List

getRelations() public méthode

public getRelations ( List uri, int Distance, int Limit = 50 ) : List
uri List
Distance int
Limit int
Résultat List

getResourcesOfPredicate() public méthode

gets List of resources of a certain predicate
public getResourcesOfPredicate ( string>.KeyValuePair pred, ResourceInformation ri ) : string>>.List
pred string>.KeyValuePair the predicate as a keyValuePair
ri ResourceInformation
Résultat string>>.List

geturi() public méthode

public geturi ( string keyword, int MaxUris = 1 ) : List
keyword string
MaxUris int
Résultat List

geturi_bestMatch() public méthode

public geturi_bestMatch ( string keyword ) : string
keyword string
Résultat string

geturis_List() public méthode

public geturis_List ( List keywords ) : List
keywords List
Résultat List

geturis_List_WithMaxuris() public méthode

public geturis_List_WithMaxuris ( List keywords, int MaxUris ) : List>
keywords List
MaxUris int
Résultat List>

simpleGetRelationWithLabels() public méthode

public simpleGetRelationWithLabels ( List uri, int Distance, int Limit = 50 ) : string>>>.List
uri List
Distance int
Limit int
Résultat string>>>.List

simpleGetRelations() public méthode

public simpleGetRelations ( List uri, int Distance, int Limit = 50 ) : List>
uri List
Distance int
Limit int
Résultat List>