Show / Hide Table of Contents

Class PropertyFunctionPattern

Class for representing property function patterns in SPARQL Query.

Inheritance
object
BaseTriplePattern
PropertyFunctionPattern
Implements
IPropertyFunctionPattern
ITriplePattern
IComparable<ITriplePattern>
IProcessable
IVisitable
IComparable<IPropertyFunctionPattern>
IComparable<PropertyFunctionPattern>
Inherited Members
BaseTriplePattern._vars
BaseTriplePattern.Variables
BaseTriplePattern.CompareTo(ITriplePattern)
BaseTriplePattern.UsesDefaultDataset
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 PropertyFunctionPattern : BaseTriplePattern, IPropertyFunctionPattern, ITriplePattern, IComparable<ITriplePattern>, IProcessable, IVisitable, IComparable<IPropertyFunctionPattern>, IComparable<PropertyFunctionPattern>

Constructors

| Edit this page View Source

PropertyFunctionPattern(IEnumerable<ITriplePattern>, IEnumerable<PatternItem>, IEnumerable<PatternItem>, ISparqlPropertyFunction)

Creates a new Property Function pattern.

Declaration
public PropertyFunctionPattern(IEnumerable<ITriplePattern> origPatterns, IEnumerable<PatternItem> lhsArgs, IEnumerable<PatternItem> rhsArgs, ISparqlPropertyFunction propertyFunction)
Parameters
Type Name Description
IEnumerable<ITriplePattern> origPatterns

Original Triple Patterns.

IEnumerable<PatternItem> lhsArgs

Subject Arguments.

IEnumerable<PatternItem> rhsArgs

Object Arguments.

ISparqlPropertyFunction propertyFunction

Property Function.

| Edit this page View Source

PropertyFunctionPattern(PropertyFunctionInfo, ISparqlPropertyFunction)

Creates a new Property Function pattern.

Declaration
public PropertyFunctionPattern(PropertyFunctionInfo info, ISparqlPropertyFunction propertyFunction)
Parameters
Type Name Description
PropertyFunctionInfo info

Function information.

ISparqlPropertyFunction propertyFunction

Property Function.

Properties

| Edit this page View Source

FixedVariables

Returns the empty enumerable as cannot guarantee any variables are bound.

Declaration
public override IEnumerable<string> FixedVariables { get; }
Property Value
Type Description
IEnumerable<string>
Overrides
BaseTriplePattern.FixedVariables
| Edit this page View Source

FloatingVariables

Returns all variables mentioned in the property function as we can't guarantee they are bound.

Declaration
public override IEnumerable<string> FloatingVariables { get; }
Property Value
Type Description
IEnumerable<string>
Overrides
BaseTriplePattern.FloatingVariables
| Edit this page View Source

HasNoBlankVariables

Returns true if none of the.

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

IsAcceptAll

Returns false because property functions are not accept-alls.

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

ObjectArgs

Gets the Object arguments.

Declaration
public IEnumerable<PatternItem> ObjectArgs { get; }
Property Value
Type Description
IEnumerable<PatternItem>
| Edit this page View Source

OriginalPatterns

Gets the original triple patterns.

Declaration
public IEnumerable<ITriplePattern> OriginalPatterns { get; }
Property Value
Type Description
IEnumerable<ITriplePattern>
| Edit this page View Source

PatternType

Gets the Pattern Type.

Declaration
public override TriplePatternType PatternType { get; }
Property Value
Type Description
TriplePatternType
Overrides
BaseTriplePattern.PatternType
| Edit this page View Source

PropertyFunction

Gets the property function.

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

SubjectArgs

Gets the Subject arguments.

Declaration
public IEnumerable<PatternItem> SubjectArgs { get; }
Property Value
Type Description
IEnumerable<PatternItem>

Methods

| Edit this page View Source

Accept<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
BaseTriplePattern.Accept<T>(ISparqlAlgebraVisitor<T>)
| Edit this page View Source

Accept<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
BaseTriplePattern.Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
| Edit this page View Source

CompareTo(IPropertyFunctionPattern)

Compares a property function pattern to another.

Declaration
public int CompareTo(IPropertyFunctionPattern other)
Parameters
Type Name Description
IPropertyFunctionPattern other

Pattern.

Returns
Type Description
int
| Edit this page View Source

CompareTo(PropertyFunctionPattern)

Compares a property function pattern to another.

Declaration
public int CompareTo(PropertyFunctionPattern other)
Parameters
Type Name Description
PropertyFunctionPattern other

Pattern.

Returns
Type Description
int
| Edit this page View Source

ToString()

Gets the string representation of the pattern.

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

Implements

IPropertyFunctionPattern
ITriplePattern
IComparable<T>
IProcessable
IVisitable
IComparable<T>
IComparable<T>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • PropertyFunctionPattern(IEnumerable<ITriplePattern>, IEnumerable<PatternItem>, IEnumerable<PatternItem>, ISparqlPropertyFunction)
    • PropertyFunctionPattern(PropertyFunctionInfo, ISparqlPropertyFunction)
  • Properties
    • FixedVariables
    • FloatingVariables
    • HasNoBlankVariables
    • IsAcceptAll
    • ObjectArgs
    • OriginalPatterns
    • PatternType
    • PropertyFunction
    • SubjectArgs
  • Methods
    • Accept<T>(ISparqlAlgebraVisitor<T>)
    • Accept<TResult, TContext>(ISparqlQueryAlgebraProcessor<TResult, TContext>, TContext)
    • CompareTo(IPropertyFunctionPattern)
    • CompareTo(PropertyFunctionPattern)
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX