Extensions.AssertList<T> Method (IGraph, INode, IEnumerable<T>, Func<T, INode>) |
Asserts a list as a RDF collection using an existing node as the list root.
Namespace:
VDS.RDF
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntaxpublic static void AssertList<T>(
this IGraph g,
INode listRoot,
IEnumerable<T> objects,
Func<T, INode> mapFunc
)
<ExtensionAttribute>
Public Shared Sub AssertList(Of T) (
g As IGraph,
listRoot As INode,
objects As IEnumerable(Of T),
mapFunc As Func(Of T, INode)
)
Parameters
- g
- Type: VDS.RDF.IGraph
Graph to assert in. - listRoot
- Type: VDS.RDF.INode
Root Node for List. - objects
- Type: System.Collections.Generic.IEnumerable<T>
Objects to place in the collection. - mapFunc
- Type: System.Func<T, INode>
Mapping from Object Type to INode.
Type Parameters
- T
- Type of Objects.
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