Class QuotedTriplePattern
Class for representing quoted triple patterns in SPARQL-Star.
Inherited Members
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRdf.dll
Syntax
public class QuotedTriplePattern : PatternItem
Constructors
| Edit this page View SourceQuotedTriplePattern(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 SourceHasNoBlankVariables
Returns true if the quoted triple pattern dost not contain any BlankNodePattern pattern items.
Declaration
public bool HasNoBlankVariables { get; }
Property Value
Type | Description |
---|---|
bool |
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 |
IsFixed
Return true if this pattern item contains no variables, false otherwise.
Declaration
public override bool IsFixed { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceQuotedTriple
Get the pattern for the quoted triple.
Declaration
public TriplePattern QuotedTriple { get; }
Property Value
Type | Description |
---|---|
TriplePattern |
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
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 SourceAccepts(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
| Edit this page View SourceAddBindings(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
| Edit this page View SourceBind(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
| Edit this page View SourceConstruct(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
| Edit this page View SourceCreateResults(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 |
ToString()
Gets the String representation of the Pattern.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |