Click or drag to resize

ExtensionsAssert Method

Asserts a new Triple in the Graph.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static void Assert(
	this IGraph g,
	INode subj,
	INode pred,
	INode obj
)

Parameters

g
Type: VDS.RDFIGraph
Graph to assert in.
subj
Type: VDS.RDFINode
Subject.
pred
Type: VDS.RDFINode
Predicate.
obj
Type: VDS.RDFINode
Object.

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
Handy method which means you can assert a Triple by specifying the Subject, Predicate and Object without having to explicity declare a new Triple.
See Also