Click or drag to resize

Extensions Class

Provides useful Extension Methods for use elsewhere in the Library.
Inheritance Hierarchy
SystemObject
  VDS.RDFExtensions

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static class Extensions

The Extensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddToList(IGraph, INode, IEnumerableINode)
Adds new items to the end of a list (aka a RDF collection).
Public methodStatic memberAddToListT(IGraph, INode, IEnumerableT, FuncT, INode)
Adds new items to the end of a list (aka a RDF collection).
Public methodStatic memberAsEnumerableT
Takes a single item and generates an IEnumerable containing only it.
Public methodStatic memberAssert
Asserts a new Triple in the Graph.
Public methodStatic memberAssertList(IGraph, IEnumerableINode)
Asserts a list as a RDF collection and returns the node that represents the root of the RDF collection.
Public methodStatic memberAssertList(IGraph, INode, IEnumerableINode)
Asserts a list as a RDF collection using an existing node as the list root.
Public methodStatic memberAssertListT(IGraph, IEnumerableT, FuncT, INode)
Asserts a list as a RDF collection and returns the node that represents the root of the RDF collection.
Public methodStatic memberAssertListT(IGraph, INode, IEnumerableT, FuncT, INode)
Asserts a list as a RDF collection using an existing node as the list root.
Public methodStatic memberBlankNodes
Gets the Blank Nodes.
Public methodStatic memberCopyNode(INode, IGraph)
Copies a Node to the target Graph.
Public methodStatic memberCopyNode(INode, IGraph, Boolean)
Copies a Node to the target Graph.
Public methodStatic memberCopyTriple(Triple, IGraph)
Copies a Triple to the target Graph.
Public methodStatic memberCopyTriple(Triple, IGraph, Boolean)
Copies a Triple to the target Graph.
Public methodStatic memberEscape(String, Char) Obsolete.
Escapes all occurrences of a given character in a String.
Public methodStatic memberEscape(String, Char, Char) Obsolete.
Escapes all occurrences of a given character in a String using the given escape character.
Public methodStatic memberEscapeBackslashes Obsolete.
Takes a String and escapes any backslashes in it which are not followed by a valid escape character.
Public methodStatic memberGetEnhancedHashCode
Gets an Enhanced Hash Code for a Uri.
Public methodStatic memberGetListAsTriples
Gets all the Triples that make up a list (aka a RDF collection).
Public methodStatic memberGetListItems
Gets all the Nodes which are the items of the list (aka the RDF collection).
Public methodStatic memberGetListNodes
Gets all the Nodes which are the intermediate nodes in the list (aka the RDF collection). These represents the nodes used to link the actual items of the list together rather than the actual items of the list.
Public methodStatic memberGetSha256Hash
Gets an SHA256 Hash for a URI.
Public methodStatic memberGraphLiteralNodes
Gets the Graph Literal Nodes.
Public methodStatic memberIsAscii
Determines whether a string is ASCII.
Public methodStatic memberIsDisjointT
Determines whether the contents of two enumerables are disjoint.
Public methodStatic memberIsFullyEscaped Obsolete.
Determines whether a String is fully escaped.
Public methodStatic memberIsListRoot
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.
Public methodStatic memberLiteralNodes
Gets the Literal Nodes.
Public methodStatic memberMapTriple
Copies a Triple from one Graph mapping Nodes as appropriate.
Public methodStatic memberRemoveFromList(IGraph, INode, IEnumerableINode)
Removes the given items from a list (aka a RDF collection), if an item occurs multiple times in the list all occurrences will be removed.
Public methodStatic memberRemoveFromListT(IGraph, INode, IEnumerableT, FuncT, INode)
Removes the given items from a list (aka a RDF collection), if an item occurs multiple times in the list all occurrences will be removed.
Public methodStatic memberRetract
Retracts a Triple from the Graph.
Public methodStatic memberRetractList
Retracts a List (aka a RDF collection).
Public methodStatic memberToString
Gets the String representation of the URI formatted using the given Formatter.
Public methodStatic memberUriNodes
Gets the URI Nodes.
Public methodStatic memberVariableNodes
Gets the Variable Nodes.
Public methodStatic memberWithObject
Gets the Subset of Triples from an existing Enumerable that have a given Object.
Public methodStatic memberWithPredicate
Gets the Subset of Triples from an existing Enumerable that have a given Predicate.
Public methodStatic memberWithSubject
Gets the Subset of Triples from an existing Enumerable that have a given Subject.
Top
See Also