Class SetExtensions
Additional utility methods for ISet.
Inherited Members
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public static class SetExtensions
Methods
| Edit this page View SourceAsSparqlResult(ISet)
Creates a SparqlResult instance that contains all of the variables in this set.
Declaration
[Obsolete("Replaced by the ISparqlResultFactory interface and its implementation.")]
public static SparqlResult AsSparqlResult(this ISet set)
Parameters
Type | Name | Description |
---|---|---|
ISet | set |
Returns
Type | Description |
---|---|
SparqlResult |
AsSparqlResult(ISet, IEnumerable<string>)
Creates a SparqlResult instance that contains the bindings for the specified variables in the set.
Declaration
public static SparqlResult AsSparqlResult(this ISet set, IEnumerable<string> variables)
Parameters
Type | Name | Description |
---|---|---|
ISet | set | The set containing the bindings to be added to the SPARQL result. |
IEnumerable<string> | variables | The names of the variables to be included in the SPARQL result. |
Returns
Type | Description |
---|---|
SparqlResult |