Class Ask
Represents the Ask step of Query Evaluation.
Inheritance
Inherited Members
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public class Ask : IUnaryOperator, ISparqlAlgebra, IVisitable, IProcessable
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
Constructors
| Improve this Doc View SourceAsk(ISparqlAlgebra)
Creates a new ASK.
Declaration
public Ask(ISparqlAlgebra pattern)
Parameters
Type | Name | Description |
---|---|---|
ISparql |
pattern | Inner Pattern. |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
Properties
| Improve this Doc View SourceFixedVariables
Gets the enumeration of fixed variables in the algebra i.e. variables that are guaranteed to have a bound value.
Declaration
public IEnumerable<string> FixedVariables { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
FloatingVariables
Gets the enumeration of floating variables in the algebra i.e. variables that are not guaranteed to have a bound value.
Declaration
public IEnumerable<string> FloatingVariables { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
InnerAlgebra
Gets the Inner Algebra.
Declaration
public ISparqlAlgebra InnerAlgebra { get; }
Property Value
Type | Description |
---|---|
ISparql |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
Variables
Gets the Variables used in the Algebra.
Declaration
public IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
Methods
| Improve this Doc View SourceAccept<T>(ISparqlAlgebraVisitor<T>)
Declaration
public T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
Parameters
Type | Name | Description |
---|---|---|
ISparql |
visitor |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
Declaration
public TResult Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext> processor, TContext context)
Parameters
Type | Name | Description |
---|---|---|
ISparql |
processor | |
TContext | context |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
TResult | |
TContext |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
ToGraphPattern()
Throws an exception since an Ask() cannot be converted to a Graph Pattern.
Declaration
public GraphPattern ToGraphPattern()
Returns
Type | Description |
---|---|
Graph |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
Exceptions
Type | Condition |
---|---|
System. |
Thrown since an Ask() cannot be converted to a Graph Pattern. |
ToQuery()
Converts the Algebra back to a SPARQL Query.
Declaration
public SparqlQuery ToQuery()
Returns
Type | Description |
---|---|
Sparql |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
ToString()
Gets the String representation of the Ask.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity
Transform(IAlgebraOptimiser)
Transforms the Inner Algebra using the given Optimiser.
Declaration
public ISparqlAlgebra Transform(IAlgebraOptimiser optimiser)
Parameters
Type | Name | Description |
---|---|---|
IAlgebra |
optimiser | Optimiser. |
Returns
Type | Description |
---|---|
ISparql |
Remarks
Used only for ASK queries. Turns the final Multiset into either an Identity