Show / Hide Table of Contents

Class TriplePattern

Class for representing Triple Patterns in SPARQL Queries.
Inheritance
System.Object
BaseTriplePattern
TriplePattern
Implements
IMatchTriplePattern
System.IComparable<IMatchTriplePattern>
IConstructTriplePattern
ITriplePattern
System.IComparable<ITriplePattern>
System.IComparable<TriplePattern>
Inherited Members
BaseTriplePattern._vars
BaseTriplePattern.Variables
BaseTriplePattern.CompareTo(ITriplePattern)
BaseTriplePattern.UsesDefaultDataset
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 TriplePattern : BaseTriplePattern, IMatchTriplePattern, IComparable<IMatchTriplePattern>, IConstructTriplePattern, ITriplePattern, IComparable<ITriplePattern>, IComparable<TriplePattern>

Constructors

| Improve this Doc View Source

TriplePattern(PatternItem, PatternItem, PatternItem)

Creates a new Triple Pattern.
Declaration
public TriplePattern(PatternItem subj, PatternItem pred, PatternItem obj)
Parameters
Type Name Description
PatternItem subj Subject Pattern.
PatternItem pred Predicate Pattern.
PatternItem obj Object Pattern.

Properties

| Improve this Doc View Source

FixedVariables

Returns all variables mentioned as a match guarantees all variables are bound.
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

Returns an empty enumeration as a match guarantees all variables are bound.
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

Gets whether the Pattern contains no Explicit Variables (i.e. Blank Node Variables are ignored).
Declaration
public override bool HasNoBlankVariables { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseTriplePattern.HasNoBlankVariables
| Improve this Doc View Source

HasNoExplicitVariables

Gets whether the Pattern contains no Explicit Variables (i.e. Blank Node Variables are ignored).
Declaration
public bool HasNoExplicitVariables { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

HasNoVariables

Gets whether the Pattern contains no Variables of any kind.
Declaration
public bool HasNoVariables { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IndexType

Gets the Index Type we will use for this Pattern.
Declaration
public TripleIndexType IndexType { get; }
Property Value
Type Description
TripleIndexType
| Improve this Doc View Source

IsAcceptAll

Returns whether the Triple Pattern is an accept all.
Declaration
public override bool IsAcceptAll { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseTriplePattern.IsAcceptAll
Remarks
True if all three Pattern Items are VariablePattern and all the Variables names are distinct.
| Improve this Doc View Source

Object

Object Pattern.
Declaration
public PatternItem Object { get; }
Property Value
Type Description
PatternItem
| 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

Predicate

Predicate Pattern.
Declaration
public PatternItem Predicate { get; }
Property Value
Type Description
PatternItem
| Improve this Doc View Source

Subject

Subject Pattern.
Declaration
public PatternItem Subject { get; }
Property Value
Type Description
PatternItem

Methods

| Improve this Doc View Source

Accepts(SparqlEvaluationContext, Triple)

Gets whether a given Triple is accepted by this Pattern in the given Context.
Declaration
public bool Accepts(SparqlEvaluationContext context, Triple obj)
Parameters
Type Name Description
SparqlEvaluationContext context Evaluation Context.
Triple obj Triple to test.
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CompareTo(IMatchTriplePattern)

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

CompareTo(TriplePattern)

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

Construct(ConstructContext)

Constructs a Triple from a Set based on this Triple Pattern.
Declaration
public Triple Construct(ConstructContext context)
Parameters
Type Name Description
ConstructContext context Construct Context.
Returns
Type Description
Triple
| Improve this Doc View Source

CreateResult(Triple)

Generates a Result Set for a Triple that matches the Pattern.
Declaration
public ISet CreateResult(Triple t)
Parameters
Type Name Description
Triple t Triple.
Returns
Type Description
ISet
| Improve this Doc View Source

Evaluate(SparqlEvaluationContext)

Evaluates a Triple Pattern 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

GetTriples(SparqlEvaluationContext)

Gets the Enumeration of Triples that should be assessed for matching the pattern.
Declaration
public IEnumerable<Triple> GetTriples(SparqlEvaluationContext context)
Parameters
Type Name Description
SparqlEvaluationContext context Evaluation Context.
Returns
Type Description
System.Collections.Generic.IEnumerable<Triple>
| Improve this Doc View Source

ToString()

Gets the String representation of this Pattern.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
BaseTriplePattern.ToString()

Implements

IMatchTriplePattern
System.IComparable<T>
IConstructTriplePattern
ITriplePattern
System.IComparable<T>
System.IComparable<T>

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • TriplePattern(PatternItem, PatternItem, PatternItem)
  • Properties
    • FixedVariables
    • FloatingVariables
    • HasNoBlankVariables
    • HasNoExplicitVariables
    • HasNoVariables
    • IndexType
    • IsAcceptAll
    • Object
    • PatternType
    • Predicate
    • Subject
  • Methods
    • Accepts(SparqlEvaluationContext, Triple)
    • CompareTo(IMatchTriplePattern)
    • CompareTo(TriplePattern)
    • Construct(ConstructContext)
    • CreateResult(Triple)
    • Evaluate(SparqlEvaluationContext)
    • GetTriples(SparqlEvaluationContext)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX