Show / Hide Table of Contents

Class SparqlOperators

Registry of SPARQL Operators.

Inheritance
object
SparqlOperators
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Query.Operators
Assembly: dotNetRdf.dll
Syntax
public static class SparqlOperators

Methods

| Edit this page View Source

AddOperator(ISparqlOperator)

Registers a new operator.

Declaration
public static void AddOperator(ISparqlOperator op)
Parameters
Type Name Description
ISparqlOperator op

Operator.

| Edit this page View Source

GetOperators()

Gets all registered Operators.

Declaration
public static IEnumerable<ISparqlOperator> GetOperators()
Returns
Type Description
IEnumerable<ISparqlOperator>
| Edit this page View Source

GetOperators(SparqlOperatorType)

Gets all registered operators for the given Operator Type.

Declaration
public static IEnumerable<ISparqlOperator> GetOperators(SparqlOperatorType type)
Parameters
Type Name Description
SparqlOperatorType type

Operator Type.

Returns
Type Description
IEnumerable<ISparqlOperator>
| Edit this page View Source

IsRegistered(ISparqlOperator)

Returns whether the given operator is registered.

Declaration
public static bool IsRegistered(ISparqlOperator op)
Parameters
Type Name Description
ISparqlOperator op

Operator.

Returns
Type Description
bool
Remarks

Checking is done both by reference and instance type so you can check if an operator is registered even if you don't have the actual reference to the instance that registered.

| Edit this page View Source

RemoveOperator(ISparqlOperator)

Removes the registration of an operator by instance reference.

Declaration
public static void RemoveOperator(ISparqlOperator op)
Parameters
Type Name Description
ISparqlOperator op

Operator Reference.

| Edit this page View Source

RemoveOperatorByType(ISparqlOperator)

Removes the registration of an operator by instance type of the operator.

Declaration
public static void RemoveOperatorByType(ISparqlOperator op)
Parameters
Type Name Description
ISparqlOperator op

Operator.

| Edit this page View Source

Reset()

Resets Operator registry to default state.

Declaration
public static void Reset()
| Edit this page View Source

TryGetOperator(SparqlOperatorType, bool, out ISparqlOperator, params IValuedNode[])

Tries to return the operator which applies for the given inputs.

Declaration
public static bool TryGetOperator(SparqlOperatorType type, bool strict, out ISparqlOperator op, params IValuedNode[] ns)
Parameters
Type Name Description
SparqlOperatorType type

Operator Type.

bool strict

If true, return only operators specified by the SPARQL specification. If false, also return operators that extend the SPARQL specification.

ISparqlOperator op

Operator.

IValuedNode[] ns

Inputs.

Returns
Type Description
bool
  • Edit this page
  • View Source
In this article
  • Methods
    • AddOperator(ISparqlOperator)
    • GetOperators()
    • GetOperators(SparqlOperatorType)
    • IsRegistered(ISparqlOperator)
    • RemoveOperator(ISparqlOperator)
    • RemoveOperatorByType(ISparqlOperator)
    • Reset()
    • TryGetOperator(SparqlOperatorType, bool, out ISparqlOperator, params IValuedNode[])
Back to top Generated by DocFX