Executes a SPARQL query against the underlying store and binds the results to
domain context objects based on the info (rdf:type) found in the
Namespace: BrightstarDB.EntityFrameworkAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
C# |
---|
public Dictionary<Type, IList<BrightstarEntityObject>> ExecuteQueryToResultTypes( string sparqlQuery ) |
Visual Basic |
---|
Public Function ExecuteQueryToResultTypes ( sparqlQuery As String ) As Dictionary(Of Type, IList(Of BrightstarEntityObject)) |
Visual C++ |
---|
public: Dictionary<Type^, IList<BrightstarEntityObject^>^>^ ExecuteQueryToResultTypes( String^ sparqlQuery ) |
F# |
---|
member ExecuteQueryToResultTypes : sparqlQuery : string -> Dictionary<Type, IList<BrightstarEntityObject>> |
Parameters
- sparqlQuery
- Type: System..::..String
The query to be executed
Return Value
Type: Dictionary<(Of <(<'Type, IList<(Of <(<'BrightstarEntityObject>)>)>>)>)>A dictionary with a list of entities for each found type
Examples
Each type can be retrieved:
results[typeof(Person)].Cast<Person>().ToList()