C# 클래스 mergedServices.MergedService

상속: keywordSearchServiceInterface
파일 보기 프로젝트 열기: sherifkandeel/weet-it_WCF

공개 메소드들

메소드 설명
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>

비공개 메소드들

메소드 설명
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

메소드 상세

Compare() 공개 메소드

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
리턴 List

CompareWithRespect() 공개 메소드

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

ConstructLiteralProfile() 공개 메소드

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
리턴 Profile

ConstructProfile() 공개 메소드

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
리턴 Profile

GetAnswerWithQuestionStructure() 공개 메소드

public GetAnswerWithQuestionStructure ( string question ) : List
question string
리턴 List

GetPartialAnswer() 공개 메소드

public GetPartialAnswer ( string question ) : List
question string
리턴 List

GetUris_VsKeyword_comma() 공개 메소드

public GetUris_VsKeyword_comma ( string text ) : string
text string
리턴 string

GetUris_VsKeywords() 공개 메소드

public GetUris_VsKeywords ( string text ) : List
text string
리턴 List

getCommonPredicates() 공개 메소드

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

getID() 공개 메소드

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

getPredicates_ResourceIsObj() 공개 메소드

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

getPredicates_ResourceIsSubj() 공개 메소드

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

getRelationWithLabels() 공개 메소드

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

getRelations() 공개 메소드

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

getResourcesOfPredicate() 공개 메소드

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
리턴 string>>.List

geturi() 공개 메소드

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

geturi_bestMatch() 공개 메소드

public geturi_bestMatch ( string keyword ) : string
keyword string
리턴 string

geturis_List() 공개 메소드

public geturis_List ( List keywords ) : List
keywords List
리턴 List

geturis_List_WithMaxuris() 공개 메소드

public geturis_List_WithMaxuris ( List keywords, int MaxUris ) : List>
keywords List
MaxUris int
리턴 List>

simpleGetRelationWithLabels() 공개 메소드

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

simpleGetRelations() 공개 메소드

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