Click or drag to resize

SparqlResultHasValue Method

Checks whether a given Variable has a value (which may be null) for this result.

Namespace:  VDS.RDF.Query
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public bool HasValue(
	string variable
)

Parameters

variable
Type: SystemString
Variable Name.

Return Value

Type: Boolean
True if the variable is present, false otherwise.
Remarks
Returns true even if the value is null, use HasBoundValue(String) instead to see whether a non-null value is present for a variable.
See Also