SemanticSearchImplementation
|
Implements necessary functions for querying and manipulating the RDF-based knowledge graph. More...
Public Member Functions | |
VirtuosoRdfConnector (string virtuosoServer="localhost", int dbPort=1111, string db="db", string dbUser="dba", string dbPassword="dba") | |
Graph | GetGraph (string graphName) |
Returns a metadata graph. More... | |
IGraph | QueryWithResultGraph (SparqlParameterizedString query) |
Queries the knowledge graph with a parametrized string and a Graph as result. More... | |
SparqlResultSet | QueryWithResultSet (string query, bool withInference=true) |
Queries the knowledge graph with a query and possibly with stored inference rules. More... | |
SparqlResultSet | QueryWithResultSet (SparqlParameterizedString query) |
Queries the knowledge graph with a parametrized string and a SparqlResultSet as result. More... | |
void | Update (SparqlParameterizedString query) |
Updates the knoeldge graph with a parametrized string. More... | |
Private Member Functions | |
string | GetFinalQueryString (string query, bool withInference=true) |
Builds the final SPARQLL query which contains possible inference rules and namespaces. More... | |
Private Attributes | |
readonly SparqlParameterizedString | _queryString |
readonly VirtuosoManager | _manager |
readonly IDictionary< string, Uri > | NAMESPACES |
Static Private Attributes | |
const string | RULESET_QUERY = "DEFINE input:inference 'ruleset' " |
Implements necessary functions for querying and manipulating the RDF-based knowledge graph.
|
inline |
|
inlineprivate |
Builds the final SPARQLL query which contains possible inference rules and namespaces.
query | String representation of a SPARQL query. |
withInference | Flag which indicates if inference rules should be used. |
|
inline |
Returns a metadata graph.
graphName | ID of the metadata graph. |
Implements SemanticSearchImplementation.IRdfConnector.
|
inline |
Queries the knowledge graph with a parametrized string and a Graph
as result.
query | Parametrized SPARQL query which returns a Graph . |
Graph
.Implements SemanticSearchImplementation.IRdfConnector.
|
inline |
Queries the knowledge graph with a parametrized string and a SparqlResultSet
as result.
query | Parametrized SPARQL query which returns a SparqlResultSet . |
SparqlResultSet
.Implements SemanticSearchImplementation.IRdfConnector.
|
inline |
Queries the knowledge graph with a query and possibly with stored inference rules.
query | String representation of a SPARQL query. |
withInference | Flag which indicates the use of the inference rules. |
SparqlResultSet
.Implements SemanticSearchImplementation.IRdfConnector.
|
inline |
Updates the knoeldge graph with a parametrized string.
query | Parametrized SPARQL query. |
Implements SemanticSearchImplementation.IRdfConnector.
|
private |
|
private |
|
private |
|
staticprivate |