Show / Hide Table of Contents

Class LazyBgp

Represents a BGP which is a set of Triple Patterns.
Inheritance
System.Object
Bgp
LazyBgp
Implements
IBgp
ITerminalOperator
ISparqlAlgebra
Inherited Members
Bgp._triplePatterns
Bgp.PatternCount
Bgp.TriplePatterns
Bgp.Variables
Bgp.FixedVariables
Bgp.FloatingVariables
Bgp.IsEmpty
Bgp.ToQuery()
Bgp.ToGraphPattern()
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.Algebra
Assembly: dotNetRDF.dll
Syntax
public class LazyBgp : Bgp, IBgp, ITerminalOperator, ISparqlAlgebra
Remarks

A Lazy BGP differs from a BGP in that rather than evaluating each Triple Pattern in turn it evaluates across all Triple Patterns. This is used for queries where we are only want to retrieve a limited number of solutions.

A Lazy BGP can only contain concrete Triple Patterns and/or FILTERs and not any of other the specialised Triple Pattern classes.

Constructors

| Improve this Doc View Source

LazyBgp(IEnumerable<ITriplePattern>)

Creates a Streamed BGP containing a set of Triple Patterns.
Declaration
public LazyBgp(IEnumerable<ITriplePattern> ps)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ITriplePattern> ps Triple Patterns.
| Improve this Doc View Source

LazyBgp(IEnumerable<ITriplePattern>, Int32)

Creates a Streamed BGP containing a set of Triple Patterns.
Declaration
public LazyBgp(IEnumerable<ITriplePattern> ps, int requiredResults)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ITriplePattern> ps Triple Patterns.
System.Int32 requiredResults The number of Results the BGP should attempt to return.
| Improve this Doc View Source

LazyBgp(ITriplePattern)

Creates a Streamed BGP containing a single Triple Pattern.
Declaration
public LazyBgp(ITriplePattern p)
Parameters
Type Name Description
ITriplePattern p Triple Pattern.
| Improve this Doc View Source

LazyBgp(ITriplePattern, Int32)

Creates a Streamed BGP containing a single Triple Pattern.
Declaration
public LazyBgp(ITriplePattern p, int requiredResults)
Parameters
Type Name Description
ITriplePattern p Triple Pattern.
System.Int32 requiredResults The number of Results the BGP should attempt to return.

Methods

| Improve this Doc View Source

Evaluate(SparqlEvaluationContext)

Evaluates the BGP against the Evaluation Context.
Declaration
public override BaseMultiset Evaluate(SparqlEvaluationContext context)
Parameters
Type Name Description
SparqlEvaluationContext context Evaluation Context.
Returns
Type Description
BaseMultiset
Overrides
Bgp.Evaluate(SparqlEvaluationContext)
| Improve this Doc View Source

ToString()

Gets the String representation of the Algebra.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
Bgp.ToString()

Implements

IBgp
ITerminalOperator
ISparqlAlgebra

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • LazyBgp(IEnumerable<ITriplePattern>)
    • LazyBgp(IEnumerable<ITriplePattern>, Int32)
    • LazyBgp(ITriplePattern)
    • LazyBgp(ITriplePattern, Int32)
  • Methods
    • Evaluate(SparqlEvaluationContext)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX