Click or drag to resize

ExtensionsAssertList Method (IGraph, IEnumerableINode)

Asserts a list as a RDF collection and returns the node that represents the root of the RDF collection.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static INode AssertList(
	this IGraph g,
	IEnumerable<INode> objects
)

Parameters

g
Type: VDS.RDFIGraph
Graph to assert in.
objects
Type: System.Collections.GenericIEnumerableINode
Objects to place in the collection.

Return Value

Type: INode
Either the blank node which is the root of the collection or rdf:nil for empty collections.

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).
See Also