C# Class mergedServices.QueryHandler

Show file Open project: sherifkandeel/weet-it_WCF

Public Properties

Property Type Description
manager VDS.RDF.Storage.VirtuosoManager

Public Methods

Method Description
ExecuteQueryWithString ( string input ) : SparqlResultSet

overload of Execute query

closeConnection ( ) : void

closes connection to the server

convertToDbpedia ( string input ) : string

converts the localhost to dbpedia, not recommended

convertToLocalhost ( string input ) : string

converts any domain name to the localhost:8890

getGraphFromURIWithlocalHost ( string input ) : VDS.RDF.Graph

gets the graph from the input Uri(changes the uri to localhost)

getLabelIfAny ( string node ) : string

Gets label of given node.

startConnection ( ) : void

starts connection with the server

Method Details

ExecuteQueryWithString() public static method

overload of Execute query
public static ExecuteQueryWithString ( string input ) : SparqlResultSet
input string the query text as string
return SparqlResultSet

closeConnection() public static method

closes connection to the server
public static closeConnection ( ) : void
return void

convertToDbpedia() public static method

converts the localhost to dbpedia, not recommended
public static convertToDbpedia ( string input ) : string
input string the localhost input
return string

convertToLocalhost() public static method

converts any domain name to the localhost:8890
public static convertToLocalhost ( string input ) : string
input string url with any domain name
return string

getGraphFromURIWithlocalHost() public static method

gets the graph from the input Uri(changes the uri to localhost)
public static getGraphFromURIWithlocalHost ( string input ) : VDS.RDF.Graph
input string the input string uri
return VDS.RDF.Graph

getLabelIfAny() public static method

Gets label of given node.
public static getLabelIfAny ( string node ) : string
node string Node
return string

startConnection() public static method

starts connection with the server
public static startConnection ( ) : void
return void

Property Details

manager public static property

public static VirtuosoManager,VDS.RDF.Storage manager
return VDS.RDF.Storage.VirtuosoManager