Class SubQueryPattern
Class for representing Sub-queries which occur as part of a SPARQL query.
Implements
Inherited Members
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRdf.dll
Syntax
public class SubQueryPattern : BaseTriplePattern, ISubQueryPattern, ITriplePattern, IComparable<ITriplePattern>, IProcessable, IVisitable, IComparable<ISubQueryPattern>, IComparable<SubQueryPattern>
  Constructors
| Edit this page View SourceSubQueryPattern(SparqlQuery)
Creates a new Sub-query pattern which represents the given sub-query.
Declaration
public SubQueryPattern(SparqlQuery subquery)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SparqlQuery | subquery | Sub-query.  | 
      
Properties
| Edit this page View SourceFixedVariables
Gets the enumeration of fixed variables in the algebra i.e. variables that are guaranteed to have a bound value.
Declaration
public override IEnumerable<string> FixedVariables { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<string> | 
Overrides
| Edit this page View SourceFloatingVariables
Gets the enumeration of floating variables in the algebra i.e. variables that are not guaranteed to have a bound value.
Declaration
public override IEnumerable<string> FloatingVariables { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<string> | 
Overrides
| Edit this page View SourceHasNoBlankVariables
Returns true as while a sub-query may contain blank node variables they will not be in scope here.
Declaration
public override bool HasNoBlankVariables { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Overrides
| Edit this page View SourceIsAcceptAll
Returns that the Pattern is not an accept all since it is a Sub-query.
Declaration
public override bool IsAcceptAll { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Overrides
| Edit this page View SourcePatternType
Gets the pattern type.
Declaration
public override TriplePatternType PatternType { get; }
  Property Value
| Type | Description | 
|---|---|
| TriplePatternType | 
Overrides
| Edit this page View SourceSubQuery
Gets the Sub-Query.
Declaration
public SparqlQuery SubQuery { get; }
  Property Value
| Type | Description | 
|---|---|
| SparqlQuery | 
UsesDefaultDataset
Gets whether the Sub-query is Thread Safe.
Declaration
public override bool UsesDefaultDataset { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Overrides
Methods
| Edit this page View SourceAccept<T>(ISparqlAlgebraVisitor<T>)
Accept a simple algebra visitor.
Declaration
public override T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ISparqlAlgebraVisitor<T> | visitor | The visitor implementation.  | 
      
Returns
| Type | Description | 
|---|---|
| T | 
Type Parameters
| Name | Description | 
|---|---|
| T | The type returned by the Visit methods of the visitor.  | 
      
Overrides
| Edit this page View SourceAccept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
Called by an algebra visitor to process an item by invoking the appropriate method on the processor passed in.
Declaration
public override TResult Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext> processor, TContext context)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ISparqlQueryAlgebraProcessor<TResult, TContext> | processor | The processor to invoke.  | 
      
| TContext | context | The context to pass to the processor.  | 
      
Returns
| Type | Description | 
|---|---|
| TResult | The result of invoking the processor method.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| TResult | The type of result returned by the processor.  | 
      
| TContext | The type of the context object to be provided to the processor.  | 
      
Overrides
| Edit this page View SourceCompareTo(ISubQueryPattern)
Compares a sub-query pattern to another.
Declaration
public int CompareTo(ISubQueryPattern other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ISubQueryPattern | other | Pattern.  | 
      
Returns
| Type | Description | 
|---|---|
| int | 
CompareTo(SubQueryPattern)
Compares a sub-query pattern to another.
Declaration
public int CompareTo(SubQueryPattern other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| SubQueryPattern | other | Pattern.  | 
      
Returns
| Type | Description | 
|---|---|
| int | 
ToString()
Gets the string representation of the sub-query.
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| string |