Show / Hide Table of Contents

Class QuotedTriplePattern

Class for representing quoted triple patterns in SPARQL-Star.

Inheritance
object
PatternItem
QuotedTriplePattern
Inherited Members
PatternItem._context
PatternItem.BindingContext
PatternItem.RigorousEvaluation
PatternItem.Repeated
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRdf.dll
Syntax
public class QuotedTriplePattern : PatternItem

Constructors

| Edit this page View Source

QuotedTriplePattern(TriplePattern)

Create a new quoted triple pattern.

Declaration
public QuotedTriplePattern(TriplePattern qtPattern)
Parameters
Type Name Description
TriplePattern qtPattern

The pattern for matching quoted triples.

Properties

| Edit this page View Source

HasNoBlankVariables

Returns true if the quoted triple pattern dost not contain any BlankNodePattern pattern items.

Declaration
public bool HasNoBlankVariables { get; }
Property Value
Type Description
bool
| Edit this page View Source

HasNoExplicitVariables

Returns true if the quoted triple pattern does not contain any VariablePattern pattern items.

Declaration
public bool HasNoExplicitVariables { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsFixed

Return true if this pattern item contains no variables, false otherwise.

Declaration
public override bool IsFixed { get; }
Property Value
Type Description
bool
Overrides
PatternItem.IsFixed
| Edit this page View Source

QuotedTriple

Get the pattern for the quoted triple.

Declaration
public TriplePattern QuotedTriple { get; }
Property Value
Type Description
TriplePattern
| Edit this page View Source

Variables

Gets an enumeration of the names of the variables of this pattern.

Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type Description
IEnumerable<string>
Overrides
PatternItem.Variables
Remarks

If this item is a Variable Pattern, the enumeration will contain a single item. If this item is a QuotedTriplePattern, the enumeration may contain zero or more items. For other pattern items the enumeration will be empty.

Methods

| Edit this page View Source

Accepts(IPatternEvaluationContext, INode, ISet)

Checks whether the Pattern Item accepts the given Node in the given Context.

Declaration
public override bool Accepts(IPatternEvaluationContext context, INode obj, ISet s)
Parameters
Type Name Description
IPatternEvaluationContext context

Evaluation Context.

INode obj

Node to test.

ISet s
Returns
Type Description
bool
Overrides
PatternItem.Accepts(IPatternEvaluationContext, INode, ISet)
| Edit this page View Source

AddBindings(INode, ISet)

Returns the variable bindings created when this pattern item accepts the given node to the specified set.

Declaration
public override void AddBindings(INode forNode, ISet toSet)
Parameters
Type Name Description
INode forNode
ISet toSet
Overrides
PatternItem.AddBindings(INode, ISet)
| Edit this page View Source

Bind(ISet)

Returns a node created by applying the variable bindings in the input set to this pattern item.

Declaration
public override INode Bind(ISet variableBindings)
Parameters
Type Name Description
ISet variableBindings
Returns
Type Description
INode

A node binding for the pattern item or null if no binding is possible with the provide set.

Overrides
PatternItem.Bind(ISet)
| Edit this page View Source

Construct(ConstructContext)

Constructs a Node based on this Pattern for the given Set.

Declaration
public override INode Construct(ConstructContext context)
Parameters
Type Name Description
ConstructContext context

Construct Context.

Returns
Type Description
INode
Overrides
PatternItem.Construct(ConstructContext)
| Edit this page View Source

CreateResults(INode)

Create a set of bindings by matching node to this pattern.

Declaration
public ISet CreateResults(INode node)
Parameters
Type Name Description
INode node

The node to match.

Returns
Type Description
ISet

A set of result bindings, which may be empty if node does not match this pattern.

| Edit this page View Source

ToString()

Gets the String representation of the Pattern.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
PatternItem.ToString()

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • QuotedTriplePattern(TriplePattern)
  • Properties
    • HasNoBlankVariables
    • HasNoExplicitVariables
    • IsFixed
    • QuotedTriple
    • Variables
  • Methods
    • Accepts(IPatternEvaluationContext, INode, ISet)
    • AddBindings(INode, ISet)
    • Bind(ISet)
    • Construct(ConstructContext)
    • CreateResults(INode)
    • ToString()
  • Extension Methods
Back to top Generated by DocFX