ExtensionsIsListRoot Method |
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.
Namespace:
VDS.RDF
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public static bool IsListRoot(
this INode n,
IGraph g
)
<ExtensionAttribute>
Public Shared Function IsListRoot (
n As INode,
g As IGraph
) As Boolean
Parameters
- n
- Type: VDS.RDFINode
Node to check. - g
- Type: VDS.RDFIGraph
Graph.
Return Value
Type:
Boolean[Missing <returns> documentation for "M:VDS.RDF.Extensions.IsListRoot(VDS.RDF.INode,VDS.RDF.IGraph)"]
Usage Note
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).
Remarks
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.
See Also