C# Class mergedServices.ResSetToJSON

Show file Open project: sherifkandeel/weet-it_WCF Class Usage Examples

Public Methods

Method Description
ToListOfJsonObj ( List b ) : List

gets the list of the json objects to be drawn for each query

namer ( string URI ) : string

renames the string;

Private Methods

Method Description
ToJsonObj ( List b ) : string
innerResultToURIs ( List inner ) : List>

get the value of each variable

reArrangeRelationVariables ( List query ) : List

This function sorts the results and the variables names to be different from each side Egypt->Type->Country<-Type<-Syria The first Type should be drawn separately from the second one

toJSONEdge ( List query ) : string

get the nodes of each query

toJSONNode ( List query ) : string

get all the results of each variable

valuesOfResults ( SparqlResult sq ) : List

we get the values of each result from here

Method Details

ToListOfJsonObj() public static method

gets the list of the json objects to be drawn for each query
public static ToListOfJsonObj ( List b ) : List
b List the result list of each query
return List

namer() public static method

renames the string;
public static namer ( string URI ) : string
URI string
return string