Click or drag to resize

AskBgp Class

Represents a BGP which is a set of Triple Patterns.
Inheritance Hierarchy
SystemObject
  VDS.RDF.Query.AlgebraAskBgp

Namespace:  VDS.RDF.Query.Algebra
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class AskBgp : IBgp, ISparqlAlgebra, 
	ITerminalOperator

The AskBgp type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyFixedVariables
Gets the enumeration of fixed variables in the algebra i.e. variables that are guaranteed to have a bound value.
Public propertyFloatingVariables
Gets the enumeration of floating variables in the algebra i.e. variables that are not guaranteed to have a bound value.
Public propertyIsEmpty
Gets whether the BGP is the emtpy BGP.
Public propertyPatternCount
Gets the number of Triple Patterns in the BGP.
Public propertyTriplePatterns
Gets the Triple Patterns in the BGP.
Public propertyVariables
Gets the Variables used in the Algebra.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluate
Evaluates the BGP against the Evaluation Context.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToGraphPattern
Converts the BGP back to a Graph Pattern.
Public methodToQuery
Converts the Algebra back to a SPARQL Query.
Public methodToString
Gets the String representation of the Algebra.
(Overrides ObjectToString.)
Top
Remarks

An Ask 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 ASK queries where we are only concerned with whether a BGP matches and not in the specific solutions.

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

See Also