Gets whether a given Node is valid as a List Root, this does not guarantee that the list itself is valid simply that the Node appears to be the root of a list.
dotNetRDF (in dotNetRDF.dll) Version:
public static bool IsListRoot(
this INode n,
Public Shared Function IsListRoot (
n As INode,
g As IGraph
) As Boolean
- Type: VDS.RDFINode
Node to check.
- Type: VDS.RDFIGraph
[Missing <returns> documentation for "M:VDS.RDF.Extensions.IsListRoot(VDS.RDF.INode,VDS.RDF.IGraph)"]
In Visual Basic and C#, you can call this method as an instance method on any object of type INode
. 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)
We consider a node to be a list root if there are no incoming rdf:rest triples and only a single outgoing rdf:first triple.