Click or drag to resize

SparqlResultSetToTripleCollection Method (IGraph)

Converts a Result Set into a Triple Collection.

Namespace:  VDS.RDF.Query
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public BaseTripleCollection ToTripleCollection(
	IGraph g
)

Parameters

g
Type: VDS.RDFIGraph
Graph to generate the Nodes in.

Return Value

Type: BaseTripleCollection

[Missing <returns> documentation for "M:VDS.RDF.Query.SparqlResultSet.ToTripleCollection(VDS.RDF.IGraph)"]

Remarks
Assumes the Result Set contains three variables ?s, ?p and ?o to use as the Subject, Predicate and Object respectively. Only Results for which all three variables have bound values will generate Triples.
See Also