Query the store using a SPARQL query

Namespace: BrightstarDB.Client
Assembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)

Syntax

C#
public Stream ExecuteQuery(
	string storeName,
	string queryExpression,
	Nullable<DateTime> ifNotModifiedSince = null,
	SparqlResultsFormat resultsFormat = null,
	RdfFormat graphFormat = null
)
Visual Basic
Public Function ExecuteQuery ( 
	storeName As String,
	queryExpression As String,
	Optional ifNotModifiedSince As Nullable(Of DateTime) = Nothing,
	Optional resultsFormat As SparqlResultsFormat = Nothing,
	Optional graphFormat As RdfFormat = Nothing
) As Stream
Visual C++
public:
virtual Stream^ ExecuteQuery(
	String^ storeName, 
	String^ queryExpression, 
	Nullable<DateTime> ifNotModifiedSince = nullptr, 
	SparqlResultsFormat^ resultsFormat = nullptr, 
	RdfFormat^ graphFormat = nullptr
) sealed
F#
abstract ExecuteQuery : 
        storeName : string * 
        queryExpression : string * 
        ?ifNotModifiedSince : Nullable<DateTime> * 
        ?resultsFormat : SparqlResultsFormat * 
        ?graphFormat : RdfFormat 
(* Defaults:
        let _ifNotModifiedSince = defaultArg ifNotModifiedSince null
        let _resultsFormat = defaultArg resultsFormat null
        let _graphFormat = defaultArg graphFormat null
*)
-> Stream 
override ExecuteQuery : 
        storeName : string * 
        queryExpression : string * 
        ?ifNotModifiedSince : Nullable<DateTime> * 
        ?resultsFormat : SparqlResultsFormat * 
        ?graphFormat : RdfFormat 
(* Defaults:
        let _ifNotModifiedSince = defaultArg ifNotModifiedSince null
        let _resultsFormat = defaultArg resultsFormat null
        let _graphFormat = defaultArg graphFormat null
*)
-> Stream 

Parameters

storeName
Type: System..::..String
The name of the store to query
queryExpression
Type: System..::..String
SPARQL query string
ifNotModifiedSince (Optional)
Type: System..::..Nullable<(Of <(<'DateTime>)>)>
OPTIONAL : If this parameter is provided and the store has not been changed since the time specified, a BrightstarClientException will be raised with the message "Store not modified".
resultsFormat (Optional)
Type: BrightstarDB..::..SparqlResultsFormat
OPTIONAL: Specifies the serialization format for the SPARQL results. Defaults to Xml
graphFormat (Optional)
Type: BrightstarDB..::..RdfFormat
OPTIONAL: Specifies the serialization format for RDF graph results. Defaults to RdfXml

Return Value

Type: Stream
A stream containing XML SPARQL result XML

Implements

IBrightstarService..::..ExecuteQuery(String, String, Nullable<(Of <<'(DateTime>)>>), SparqlResultsFormat, RdfFormat)

See Also