Class BaseOperator
Abstract base class for SPARQL Operators which also makes their configuration serializable.
Inheritance
System.Object
BaseOperator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Query.Operators
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseOperator : ISparqlOperator, IConfigurationSerializable
Properties
| Improve this Doc View SourceOperator
Gets the operator this implementation represents.
Declaration
public abstract SparqlOperatorType Operator { get; }
Property Value
Type | Description |
---|---|
SparqlOperatorType |
Methods
| Improve this Doc View SourceApply(IValuedNode[])
Applies the operator.
Declaration
public abstract IValuedNode Apply(params IValuedNode[] ns)
Parameters
Type | Name | Description |
---|---|---|
IValuedNode[] | ns | Inputs. |
Returns
Type | Description |
---|---|
IValuedNode |
IsApplicable(IValuedNode[])
Gets whether the operator can be applied to the given inputs.
Declaration
public abstract bool IsApplicable(params IValuedNode[] ns)
Parameters
Type | Name | Description |
---|---|---|
IValuedNode[] | ns | Inputs. |
Returns
Type | Description |
---|---|
System.Boolean | True if applicable to the given inputs. |
SerializeConfiguration(ConfigurationSerializationContext)
Serializes the configuration of the operator.
Declaration
public virtual void SerializeConfiguration(ConfigurationSerializationContext context)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationSerializationContext | context | Serialization Context. |