Class PropertyPathPattern
Class for representing property patterns in SPARQL Queries.
Implements
Inherited Members
Namespace: VDS.RDF.Query.Patterns
Assembly: dotNetRdf.dll
Syntax
public class PropertyPathPattern : BaseTriplePattern, IPropertyPathPattern, ITriplePattern, IComparable<ITriplePattern>, IProcessable, IVisitable, IComparable<IPropertyPathPattern>, IComparable<PropertyPathPattern>
Constructors
| Edit this page View SourcePropertyPathPattern(PatternItem, ISparqlPath, PatternItem)
Creates a new Property Path Pattern.
Declaration
public PropertyPathPattern(PatternItem subj, ISparqlPath path, PatternItem obj)
Parameters
| Type | Name | Description |
|---|---|---|
| PatternItem | subj | Subject. |
| ISparqlPath | path | Property Path. |
| PatternItem | obj | Object. |
Properties
| Edit this page View SourceFixedVariables
Gets the enumeration of fixed variables in the pattern i.e. variables that are guaranteed to have a bound value.
Declaration
public override IEnumerable<string> FixedVariables { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
Overrides
| Edit this page View SourceFloatingVariables
Gets the enumeration of floating variables in the pattern i.e. variables that are not guaranteed to have a bound value.
Declaration
public override IEnumerable<string> FloatingVariables { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
Overrides
| Edit this page View SourceHasNoBlankVariables
Returns false a property path may always contain implicit blank variables.
Declaration
public override bool HasNoBlankVariables { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceIsAcceptAll
Gets whether the Pattern accepts all Triple Patterns.
Declaration
public override bool IsAcceptAll { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceObject
Gets the Object of the Property Path.
Declaration
public PatternItem Object { get; }
Property Value
| Type | Description |
|---|---|
| PatternItem |
Path
Gets the Property Path.
Declaration
public ISparqlPath Path { get; }
Property Value
| Type | Description |
|---|---|
| ISparqlPath |
PatternType
Gets the pattern type.
Declaration
public override TriplePatternType PatternType { get; }
Property Value
| Type | Description |
|---|---|
| TriplePatternType |
Overrides
| Edit this page View SourceSubject
Gets the Subject of the Property Path.
Declaration
public PatternItem Subject { get; }
Property Value
| Type | Description |
|---|---|
| PatternItem |
Methods
| Edit this page View SourceAccept<T>(ISparqlAlgebraVisitor<T>)
Accept a simple algebra visitor.
Declaration
public override T Accept<T>(ISparqlAlgebraVisitor<T> visitor)
Parameters
| Type | Name | Description |
|---|---|---|
| ISparqlAlgebraVisitor<T> | visitor | The visitor implementation. |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | The type returned by the Visit methods of the visitor. |
Overrides
| Edit this page View SourceAccept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
Called by an algebra visitor to process an item by invoking the appropriate method on the processor passed in.
Declaration
public override TResult Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext> processor, TContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ISparqlQueryAlgebraProcessor<TResult, TContext> | processor | The processor to invoke. |
| TContext | context | The context to pass to the processor. |
Returns
| Type | Description |
|---|---|
| TResult | The result of invoking the processor method. |
Type Parameters
| Name | Description |
|---|---|
| TResult | The type of result returned by the processor. |
| TContext | The type of the context object to be provided to the processor. |
Overrides
| Edit this page View SourceCompareTo(IPropertyPathPattern)
Compares a property path pattern to another.
Declaration
public int CompareTo(IPropertyPathPattern other)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyPathPattern | other | Pattern. |
Returns
| Type | Description |
|---|---|
| int |
CompareTo(PropertyPathPattern)
Compares a property path pattern to another.
Declaration
public int CompareTo(PropertyPathPattern other)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyPathPattern | other | Pattern. |
Returns
| Type | Description |
|---|---|
| int |
ToString()
Gets the String representation of the Pattern.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |