Click or drag to resize

SparqlResult Class

Class for representing a Row of a Sparql Result Set.
Inheritance Hierarchy
SystemObject
  VDS.RDF.QuerySparqlResult

Namespace:  VDS.RDF.Query
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
[SerializableAttribute]
public sealed class SparqlResult : IEnumerable<KeyValuePair<string, INode>>, 
	IEnumerable, ISerializable, IXmlSerializable

The SparqlResult type exposes the following members.

Constructors
  NameDescription
Public methodSparqlResult
Creates a new empty SPARQL Result which can only be filled by methods internal to the dotNetRDF Library.
Public methodSparqlResult(ISet)
Creates a new SPARQL Result from the given Set.
Public methodSparqlResult(ISet, IEnumerableString)
Creates a new SPARQL Result from the given Set which contains only the given variables in the given order.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of Variables for which this Result contains Bindings.
Public propertyIsGroundResult
Gets whether a Result is a Ground Result.
Public propertyItemInt32
Gets the Value that is bound at the given Index.
Public propertyItemString
Gets the Value that is bound to the given Variable.
Public propertyVariables
Gets the set of Variables that are bound in this Result.
Top
Methods
  NameDescription
Public methodEquals
Override of the Equals method for Results.
(Overrides ObjectEquals(Object).)
Public methodGetEnumerator
Enumerates the Bindings of Variable Names to Values in this Result.
Public methodGetHashCode
Override of the GetHashCode method for Results.
(Overrides ObjectGetHashCode.)
Public methodGetObjectData
Gets the data for serialization.
Public methodGetSchema
Gets the schema for XML serialization.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasBoundValue
Checks whether a given Variable has a non-null value for this result.
Public methodHasValue
Checks whether a given Variable has a value (which may be null) for this result.
Public methodReadXml
Reads the data for XML deserialization (.Net serialization not the official SPARQL results serialization).
Public methodToString
Displays the Result as a comma separated string of pairs of the form ?var = value.
(Overrides ObjectToString.)
Public methodToString(INodeFormatter)
Displays the Result as a comma separated string of paris of the form ?var = value where values are formatted using the given Node Formatter.
Public methodTrim
Removes all Variables Bindings where the Variable is Unbound.
Public methodTryGetBoundValue
Tries to get a non-null value for the variable.
Public methodTryGetValue
Tries to get a value (which may be null) for the variable.
Public methodValue
Gets the Value that is bound to the given Variable.
Public methodWriteXml
Writes the data for XML serialization (.Net serialization not the official SPARQL results serialization).
Top
Extension Methods
See Also