Show / Hide Table of Contents

Class SubQueryPattern

Class for representing Sub-queries which occur as part of a SPARQL query.
Inheritance
System.Object
BaseTriplePattern
SubQueryPattern
Implements
ISubQueryPattern
ITriplePattern
System.IComparable<ITriplePattern>
System.IComparable<ISubQueryPattern>
System.IComparable<SubQueryPattern>
Inherited Members
BaseTriplePattern._vars
BaseTriplePattern.Variables
BaseTriplePattern.CompareTo(ITriplePattern)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRDF.dll
Syntax
public class SubQueryPattern : BaseTriplePattern, ISubQueryPattern, ITriplePattern, IComparable<ITriplePattern>, IComparable<ISubQueryPattern>, IComparable<SubQueryPattern>

Constructors

| Improve this Doc View Source

SubQueryPattern(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

| Improve this Doc View Source

FixedVariables

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
System.Collections.Generic.IEnumerable<System.String>
Overrides
BaseTriplePattern.FixedVariables
| Improve this Doc View Source

FloatingVariables

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
System.Collections.Generic.IEnumerable<System.String>
Overrides
BaseTriplePattern.FloatingVariables
| Improve this Doc View Source

HasNoBlankVariables

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
System.Boolean
Overrides
BaseTriplePattern.HasNoBlankVariables
| Improve this Doc View Source

IsAcceptAll

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
System.Boolean
Overrides
BaseTriplePattern.IsAcceptAll
| Improve this Doc View Source

PatternType

Gets the pattern type.
Declaration
public override TriplePatternType PatternType { get; }
Property Value
Type Description
TriplePatternType
Overrides
BaseTriplePattern.PatternType
| Improve this Doc View Source

SubQuery

Gets the Sub-Query.
Declaration
public SparqlQuery SubQuery { get; }
Property Value
Type Description
SparqlQuery
| Improve this Doc View Source

UsesDefaultDataset

Gets whether the Sub-query is Thread Safe.
Declaration
public override bool UsesDefaultDataset { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseTriplePattern.UsesDefaultDataset

Methods

| Improve this Doc View Source

CompareTo(ISubQueryPattern)

Compares a sub-query pattern to another.
Declaration
public int CompareTo(ISubQueryPattern other)
Parameters
Type Name Description
ISubQueryPattern other Pattern.
Returns
Type Description
System.Int32
| Improve this Doc View Source

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
System.Int32
| Improve this Doc View Source

Evaluate(SparqlEvaluationContext)

Evaluates a Sub-query in the given Evaluation Context.
Declaration
public override void Evaluate(SparqlEvaluationContext context)
Parameters
Type Name Description
SparqlEvaluationContext context Evaluation Context.
Overrides
BaseTriplePattern.Evaluate(SparqlEvaluationContext)
| Improve this Doc View Source

ToString()

Gets the string representation of the sub-query.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
BaseTriplePattern.ToString()

Implements

ISubQueryPattern
ITriplePattern
System.IComparable<T>
System.IComparable<T>
System.IComparable<T>

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • SubQueryPattern(SparqlQuery)
  • Properties
    • FixedVariables
    • FloatingVariables
    • HasNoBlankVariables
    • IsAcceptAll
    • PatternType
    • SubQuery
    • UsesDefaultDataset
  • Methods
    • CompareTo(ISubQueryPattern)
    • CompareTo(SubQueryPattern)
    • Evaluate(SparqlEvaluationContext)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX