dotNetRDF API Documentation

Graph Members

Graph overview

Public Instance Constructors

Graph Overloaded. Initializes a new instance of the Graph class.

Public Instance Properties

BaseUri (inherited from BaseGraph) Gets the current Base Uri for the Graph
IsEmpty (inherited from BaseGraph) Gets whether a Graph is Empty ie. Contains No Triples or Nodes
NamespaceMap (inherited from BaseGraph) Gets the Namespace Mapper for this Graph which contains all in use Namespace Prefixes and their URIs
Nodes (inherited from BaseGraph) Gets the set of Nodes which make up this Graph
Triples (inherited from BaseGraph) Gets the set of Triples described in this Graph

Public Instance Methods

AssertOverloaded. Asserts a Triple in the Graph
Clear (inherited from BaseGraph) Clears all Triples from the Graph
ContainsTriple (inherited from BaseGraph) Gets whether a given Triple exists in this Graph
CreateBlankNode (inherited from BaseGraph)Overloaded. Creates a New Blank Node with an auto-generated Blank Node ID
CreateGraphLiteralNode (inherited from BaseGraph)Overloaded. Creates a new Graph Literal Node with its value being an Empty Subgraph
CreateLiteralNode (inherited from BaseGraph)Overloaded. Creates a New Literal Node with the given Value
CreateUriNode (inherited from BaseGraph)Overloaded. Creates a new URI Node that refers to the Base Uri of the Graph
CreateVariableNode (inherited from BaseGraph) Creates a new Variable Node
Difference (inherited from BaseGraph) Computes the Difference between this Graph the given Graph
Dispose (inherited from BaseGraph) Disposes of a Graph
Equals (inherited from BaseGraph)Overloaded. Determines whether a Graph is equal to another Object
GetBlankNode Returns the Blank Node with the given Identifier
GetHashCode (inherited from Object)
GetLiteralNodeOverloaded. Returns the LiteralNode with the given Value if it exists
GetNextBlankNodeID (inherited from BaseGraph) Creates a new unused Blank Node ID and returns it
GetObjectData (inherited from BaseGraph) Gets the Serialization Information for serializing a Graph
GetSchema (inherited from BaseGraph) Gets the Schema for XML Serialization
GetTriplesOverloaded. Gets all the Triples involving the given Node
GetTriplesWithObjectOverloaded. Gets all the Triples with the given Node as the Object
GetTriplesWithPredicateOverloaded. Gets all the Triples with the given Node as the Predicate
GetTriplesWithPredicateObject Selects all Triples with the given Predicate and Object
GetTriplesWithSubjectOverloaded. Gets all the Triples with the given Node as the Subject
GetTriplesWithSubjectObject Selects all Triples with the given Subject and Object
GetTriplesWithSubjectPredicate Selects all Triples with the given Subject and Predicate
GetType (inherited from Object)
GetUriNodeOverloaded. Returns the UriNode with the given Uri if it exists
HasSubGraph (inherited from BaseGraph)Overloaded. Checks whether this Graph has the given Graph as a sub-graph
IsSubGraphOf (inherited from BaseGraph)Overloaded. Checks whether this Graph is a sub-graph of the given Graph
Merge (inherited from BaseGraph)Overloaded. Merges another Graph into the current Graph
ReadXml (inherited from BaseGraph) Reads the data for XML deserialization
ResolveQName (inherited from BaseGraph) Helper function for Resolving QNames to URIs
RetractOverloaded. Retracts a Triple from the Graph
ToDataTable (inherited from BaseGraph) Converts a Graph into a DataTable using the explicit cast operator defined by this class
ToString (inherited from Object)
WriteXml (inherited from BaseGraph) Writes the data for XML serialization

Public Instance Events

Changed (inherited from BaseGraph) Event which is raised when the Graph contents change
Cleared (inherited from BaseGraph) Event which is raised after the Graph is cleared of its contents
ClearRequested (inherited from BaseGraph) Event which is raised just before the Graph is cleared of its contents
Merged (inherited from BaseGraph) Event which is raised when a Merge operation is completed on the Graph
MergeRequested (inherited from BaseGraph) Event which is raised when a Merge operation is requested on the Graph
TripleAsserted (inherited from BaseGraph) Event which is raised when a Triple is asserted in the Graph
TripleRetracted (inherited from BaseGraph) Event which is raised when a Triple is retracted from the Graph

Protected Instance Constructors

Graph Overloaded. Initializes a new instance of the Graph class.

Protected Instance Fields

_baseuri (inherited from BaseGraph) Base Uri of the Graph
_bnodemapper (inherited from BaseGraph) Blank Node ID Mapper
_nsmapper (inherited from BaseGraph) Namespace Mapper
_triples (inherited from BaseGraph) Collection of Triples in the Graph

Protected Instance Methods

AttachEventHandlers (inherited from BaseGraph) Helper method for attaching the necessary event Handlers to a Triple Collection
DetachEventHandlers (inherited from BaseGraph) Helper method for detaching the necessary event Handlers from a Triple Collection
Finalize (inherited from Object)
MemberwiseClone (inherited from Object)
OnTripleAsserted (inherited from BaseGraph) Event Handler which handles the Triple Added event from the underlying Triple Collection by raising the Graph's TripleAsserted event
OnTripleRetracted (inherited from BaseGraph) Event Handler which handles the Triple Removed event from the underlying Triple Collection by raising the Graph's Triple Retracted event
RaiseCleared (inherited from BaseGraph) Helper method for raising the Cleared event
RaiseClearRequested (inherited from BaseGraph) Helper method for raising the Clear Requested event and returning whether any of the Event Handlers cancelled the operation
RaiseGraphChanged (inherited from BaseGraph)Overloaded. Helper method for raising the Changed event
RaiseMerged (inherited from BaseGraph) Helper method for raising the Merged event
RaiseMergeRequested (inherited from BaseGraph) Helper method for raising the Merge Requested event and returning whether any of the Event Handlers cancelled the operation
RaiseTripleAsserted (inherited from BaseGraph)Overloaded. Helper method for raising the Triple Asserted event manually
RaiseTripleRetracted (inherited from BaseGraph)Overloaded. Helper method for raising the Triple Retracted event manually

See Also

Graph Class | VDS.RDF Namespace