Show / Hide Table of Contents

Class SparqlOperators

Registry of SPARQL Operators.

Inheritance
System.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

| Improve this Doc View Source

AddOperator(ISparqlOperator)

Registers a new operator.

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

Operator.

| Improve this Doc View Source

GetOperators()

Gets all registered Operators.

Declaration
public static IEnumerable<ISparqlOperator> GetOperators()
Returns
Type Description
System.Collections.Generic.IEnumerable<T><ISparqlOperator>
| Improve this Doc 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
System.Collections.Generic.IEnumerable<T><ISparqlOperator>
| Improve this Doc 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
System.Boolean
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.

| Improve this Doc 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.

| Improve this Doc 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.

| Improve this Doc View Source

Reset()

Resets Operator registry to default state.

Declaration
public static void Reset()
| Improve this Doc 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.

System.Boolean 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
System.Boolean
  • Improve this Doc
  • 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