C# Class mergedServices.MergedService

Inheritance: keywordSearchServiceInterface
Show file Open project: sherifkandeel/weet-it_WCF

Public Methods

Method 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

Method 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 method

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
return List

CompareWithRespect() public method

public CompareWithRespect ( List subjectsNames, String predicateURI, int limit = 50 ) : List>
subjectsNames List
predicateURI String
limit int
return List>

ConstructLiteralProfile() public method

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
return Profile

ConstructProfile() public method

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
return Profile

GetAnswerWithQuestionStructure() public method

public GetAnswerWithQuestionStructure ( string question ) : List
question string
return List

GetPartialAnswer() public method

public GetPartialAnswer ( string question ) : List
question string
return List

GetUris_VsKeyword_comma() public method

public GetUris_VsKeyword_comma ( string text ) : string
text string
return string

GetUris_VsKeywords() public method

public GetUris_VsKeywords ( string text ) : List
text string
return List

getCommonPredicates() public method

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

getID() public method

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

getPredicates_ResourceIsObj() public method

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

getPredicates_ResourceIsSubj() public method

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

getRelationWithLabels() public method

public getRelationWithLabels ( List uri, int Distance, int Limit = 50 ) : List
uri List
Distance int
Limit int
return List

getRelations() public method

public getRelations ( List uri, int Distance, int Limit = 50 ) : List
uri List
Distance int
Limit int
return List

getResourcesOfPredicate() public method

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
return string>>.List

geturi() public method

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

geturi_bestMatch() public method

public geturi_bestMatch ( string keyword ) : string
keyword string
return string

geturis_List() public method

public geturis_List ( List keywords ) : List
keywords List
return List

geturis_List_WithMaxuris() public method

public geturis_List_WithMaxuris ( List keywords, int MaxUris ) : List>
keywords List
MaxUris int
return List>

simpleGetRelationWithLabels() public method

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

simpleGetRelations() public method

public simpleGetRelations ( List uri, int Distance, int Limit = 50 ) : List>
uri List
Distance int
Limit int
return List>