C# Класс mergedServices.MergedService

Наследование: keywordSearchServiceInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
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>