Show / Hide Table of Contents

Class TriplePatternBuilder

Provides methods for building triple patterns.
Inheritance
System.Object
TriplePatternBuilder
Implements
ITriplePatternBuilderInternal
ITriplePatternBuilder
Inherited Members
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)
System.Object.ToString()
Namespace: VDS.RDF.Query.Builder
Assembly: dotNetRDF.dll
Syntax
public class TriplePatternBuilder : ITriplePatternBuilderInternal, ITriplePatternBuilder

Constructors

| Improve this Doc View Source

TriplePatternBuilder(INamespaceMapper)

Declaration
public TriplePatternBuilder(INamespaceMapper prefixes)
Parameters
Type Name Description
INamespaceMapper prefixes

Properties

| Improve this Doc View Source

PatternItemFactory

Gets the pattern item factory.
Declaration
public IPatternItemFactory PatternItemFactory { get; }
Property Value
Type Description
IPatternItemFactory
| Improve this Doc View Source

Patterns

Gets the triple patterns.
Declaration
public ITriplePattern[] Patterns { get; }
Property Value
Type Description
ITriplePattern[]
| Improve this Doc View Source

Prefixes

Gets the prefix manager, which allows adding prefixes to the query or graph pattern.
Declaration
public INamespaceMapper Prefixes { get; }
Property Value
Type Description
INamespaceMapper

Methods

| Improve this Doc View Source

AddPattern(TriplePattern)

Add TriplePattern to the builder.
Declaration
public void AddPattern(TriplePattern triplePattern)
Parameters
Type Name Description
TriplePattern triplePattern
| Improve this Doc View Source

Subject(String)

Sets a variable as Subject.
Declaration
public TriplePatternPredicatePart Subject(string subjectVariableName)
Parameters
Type Name Description
System.String subjectVariableName
Returns
Type Description
TriplePatternPredicatePart
| Improve this Doc View Source

Subject(Uri)

Sets a System.Uri as Subject.
Declaration
public TriplePatternPredicatePart Subject(Uri subject)
Parameters
Type Name Description
System.Uri subject
Returns
Type Description
TriplePatternPredicatePart
| Improve this Doc View Source

Subject(INode)

Depending on the subjectNode's type, sets a literal, a QName or a blank node as Subject.
Declaration
public TriplePatternPredicatePart Subject(INode subjectNode)
Parameters
Type Name Description
INode subjectNode
Returns
Type Description
TriplePatternPredicatePart
Remarks
A relevant prefix/base URI must be added to Prefixes to accept a QName.
| Improve this Doc View Source

Subject(PatternItem)

Sets a PatternItem as Subject.
Declaration
public TriplePatternPredicatePart Subject(PatternItem subject)
Parameters
Type Name Description
PatternItem subject
Returns
Type Description
TriplePatternPredicatePart
| Improve this Doc View Source

Subject(SparqlVariable)

Sets a variable as Subject.
Declaration
public TriplePatternPredicatePart Subject(SparqlVariable subjectVariable)
Parameters
Type Name Description
SparqlVariable subjectVariable
Returns
Type Description
TriplePatternPredicatePart
| Improve this Doc View Source

Subject<TNode>(String)

Depending on the generic parameter type, sets a literal, a QName or a blank node as Subject.
Declaration
public TriplePatternPredicatePart Subject<TNode>(string subject)
    where TNode : INode
Parameters
Type Name Description
System.String subject Either a variable name, a literal, a QName or a blank node identifier.
Returns
Type Description
TriplePatternPredicatePart
Type Parameters
Name Description
TNode
Remarks
A relevant prefix/base URI must be added to Prefixes to accept a QName.

Implements

ITriplePatternBuilderInternal
ITriplePatternBuilder

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • TriplePatternBuilder(INamespaceMapper)
  • Properties
    • PatternItemFactory
    • Patterns
    • Prefixes
  • Methods
    • AddPattern(TriplePattern)
    • Subject(String)
    • Subject(Uri)
    • Subject(INode)
    • Subject(PatternItem)
    • Subject(SparqlVariable)
    • Subject<TNode>(String)
  • Implements
  • Extension Methods
Back to top Generated by DocFX