Click or drag to resize

GraphExtensionsLoadFromString Method (IGraph, String, IRdfReader)

Loads RDF data from a String into a Graph.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static void LoadFromString(
	this IGraph g,
	string data,
	IRdfReader parser
)

Parameters

g
Type: VDS.RDFIGraph
Graph to load into.
data
Type: SystemString
Data to load.
parser
Type: VDS.RDFIRdfReader
Parser to use.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraph. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This is just a shortcut to using the static Parse() methods from the StringParser class located in the Parsing namespace.
See Also