Graph Class |
Namespace: VDS.RDF
The Graph type exposes the following members.
Name | Description | |
---|---|---|
Graph |
Creates a new instance of a Graph.
| |
Graph(Boolean) |
Creates a new instance of a Graph with an optionally empty Namespace Map.
| |
Graph(BaseTripleCollection) |
Creates a new instance of a Graph using the given Triple Collection.
| |
Graph(SerializationInfo, StreamingContext) |
Deserialization Constructor.
| |
Graph(BaseTripleCollection, Boolean) |
Creates a new instance of a Graph using the given Triple Collection and an optionally empty Namespace Map.
|
Name | Description | |
---|---|---|
AllNodes |
Gets the unique Subject, Predicate and Object nodes of the Graph.
(Inherited from BaseGraph.) | |
BaseUri |
Gets the current Base Uri for the Graph.
(Inherited from BaseGraph.) | |
IsEmpty |
Gets whether a Graph is Empty ie. Contains No Triples or Nodes.
(Inherited from BaseGraph.) | |
NamespaceMap |
Gets the Namespace Mapper for this Graph which contains all in use Namespace Prefixes and their URIs.
(Inherited from BaseGraph.) | |
Nodes |
Gets the unique Subject and Object nodes of the Graph.
(Inherited from BaseGraph.) | |
Triples |
Gets the set of Triples described in this Graph.
(Inherited from BaseGraph.) |
Name | Description | |
---|---|---|
Assert(IEnumerableTriple) |
Asserts a List of Triples in the graph.
(Overrides BaseGraphAssert(IEnumerableTriple).) | |
Assert(Triple) |
Asserts a Triple in the Graph.
(Overrides BaseGraphAssert(Triple).) | |
AttachEventHandlers |
Helper method for attaching the necessary event Handlers to a Triple Collection.
(Inherited from BaseGraph.) | |
Clear |
Clears all Triples from the Graph.
(Inherited from BaseGraph.) | |
ContainsTriple |
Gets whether a given Triple exists in this Graph.
(Inherited from BaseGraph.) | |
CreateBlankNode |
Creates a New Blank Node with an auto-generated Blank Node ID.
(Inherited from BaseGraph.) | |
CreateBlankNode(String) |
Creates a New Blank Node with a user-defined Blank Node ID.
(Inherited from BaseGraph.) | |
CreateGraphLiteralNode |
Creates a new Graph Literal Node with its value being an Empty Subgraph.
(Inherited from BaseGraph.) | |
CreateGraphLiteralNode(IGraph) |
Creates a new Graph Literal Node with its value being the given Subgraph.
(Inherited from BaseGraph.) | |
CreateLiteralNode(String) |
Creates a New Literal Node with the given Value.
(Inherited from BaseGraph.) | |
CreateLiteralNode(String, String) |
Creates a New Literal Node with the given Value and Language Specifier.
(Inherited from BaseGraph.) | |
CreateLiteralNode(String, Uri) |
Creates a new Literal Node with the given Value and Data Type.
(Inherited from BaseGraph.) | |
CreateUriNode |
Creates a new URI Node that refers to the Base Uri of the Graph.
(Inherited from BaseGraph.) | |
CreateUriNode(String) |
Creates a new URI Node with the given QName.
(Inherited from BaseGraph.) | |
CreateUriNode(Uri) |
Creates a new URI Node with the given URI.
(Inherited from BaseGraph.) | |
CreateVariableNode |
Creates a new Variable Node.
(Inherited from BaseGraph.) | |
DetachEventHandlers |
Helper method for detaching the necessary event Handlers from a Triple Collection.
(Inherited from BaseGraph.) | |
Difference |
Computes the Difference between this Graph the given Graph.
(Inherited from BaseGraph.) | |
Dispose |
Disposes of a Graph.
(Inherited from BaseGraph.) | |
Equals(Object) |
Determines whether a Graph is equal to another Object.
(Inherited from BaseGraph.) | |
Equals(IGraph, DictionaryINode, INode) |
Determines whether this Graph is equal to the given Graph.
(Inherited from BaseGraph.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetBlankNode |
Returns the Blank Node with the given Identifier.
(Overrides BaseGraphGetBlankNode(String).) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLiteralNode(String) |
Returns the LiteralNode with the given Value if it exists.
(Overrides BaseGraphGetLiteralNode(String).) | |
GetLiteralNode(String, String) |
Returns the LiteralNode with the given Value in the given Language if it exists.
(Overrides BaseGraphGetLiteralNode(String, String).) | |
GetLiteralNode(String, Uri) |
Returns the LiteralNode with the given Value and given Data Type if it exists.
(Overrides BaseGraphGetLiteralNode(String, Uri).) | |
GetNextBlankNodeID |
Creates a new unused Blank Node ID and returns it.
(Inherited from BaseGraph.) | |
GetObjectData |
Gets the Serialization Information for serializing a Graph.
(Inherited from BaseGraph.) | |
GetSchema |
Gets the Schema for XML Serialization.
(Inherited from BaseGraph.) | |
GetTriples(Uri) |
Gets all the Triples involving the given Uri.
(Overrides BaseGraphGetTriples(Uri).) | |
GetTriples(INode) |
Gets all the Triples involving the given Node.
(Overrides BaseGraphGetTriples(INode).) | |
GetTriplesWithObject(Uri) |
Gets all the Triples with the given Uri as the Object.
(Overrides BaseGraphGetTriplesWithObject(Uri).) | |
GetTriplesWithObject(INode) |
Gets all the Triples with the given Node as the Object.
(Overrides BaseGraphGetTriplesWithObject(INode).) | |
GetTriplesWithPredicate(Uri) |
Gets all the Triples with the given Uri as the Predicate.
(Overrides BaseGraphGetTriplesWithPredicate(Uri).) | |
GetTriplesWithPredicate(INode) |
Gets all the Triples with the given Node as the Predicate.
(Overrides BaseGraphGetTriplesWithPredicate(INode).) | |
GetTriplesWithPredicateObject |
Selects all Triples with the given Predicate and Object.
(Overrides BaseGraphGetTriplesWithPredicateObject(INode, INode).) | |
GetTriplesWithSubject(Uri) |
Gets all the Triples with the given Uri as the Subject.
(Overrides BaseGraphGetTriplesWithSubject(Uri).) | |
GetTriplesWithSubject(INode) |
Gets all the Triples with the given Node as the Subject.
(Overrides BaseGraphGetTriplesWithSubject(INode).) | |
GetTriplesWithSubjectObject |
Selects all Triples with the given Subject and Object.
(Overrides BaseGraphGetTriplesWithSubjectObject(INode, INode).) | |
GetTriplesWithSubjectPredicate |
Selects all Triples with the given Subject and Predicate.
(Overrides BaseGraphGetTriplesWithSubjectPredicate(INode, INode).) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUriNode(String) |
Returns the UriNode with the given QName if it exists.
(Overrides BaseGraphGetUriNode(String).) | |
GetUriNode(Uri) |
Returns the UriNode with the given Uri if it exists.
(Overrides BaseGraphGetUriNode(Uri).) | |
HasSubGraph(IGraph) |
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from BaseGraph.) | |
HasSubGraph(IGraph, DictionaryINode, INode) |
Checks whether this Graph has the given Graph as a sub-graph.
(Inherited from BaseGraph.) | |
IsSubGraphOf(IGraph) |
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from BaseGraph.) | |
IsSubGraphOf(IGraph, DictionaryINode, INode) |
Checks whether this Graph is a sub-graph of the given Graph.
(Inherited from BaseGraph.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Merge(IGraph) |
Merges another Graph into the current Graph.
(Inherited from BaseGraph.) | |
Merge(IGraph, Boolean) |
Merges another Graph into the current Graph.
(Inherited from BaseGraph.) | |
OnTripleAsserted |
Event Handler which handles the Triple Added event from the underlying Triple Collection by raising the Graph's TripleAsserted event.
(Inherited from BaseGraph.) | |
OnTripleRetracted |
Event Handler which handles the Triple Removed event from the underlying Triple Collection by raising the Graph's Triple Retracted event.
(Inherited from BaseGraph.) | |
RaiseCleared |
Helper method for raising the Cleared event.
(Inherited from BaseGraph.) | |
RaiseClearRequested |
Helper method for raising the Clear Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from BaseGraph.) | |
RaiseGraphChanged |
Helper method for raising the Changed event.
(Inherited from BaseGraph.) | |
RaiseGraphChanged(TripleEventArgs) |
Helper method for raising the Changed event.
(Inherited from BaseGraph.) | |
RaiseMerged |
Helper method for raising the Merged event.
(Inherited from BaseGraph.) | |
RaiseMergeRequested |
Helper method for raising the Merge Requested event and returning whether any of the Event Handlers cancelled the operation.
(Inherited from BaseGraph.) | |
RaiseTripleAsserted(Triple) |
Helper method for raising the Triple Asserted event manually.
(Inherited from BaseGraph.) | |
RaiseTripleAsserted(TripleEventArgs) |
Helper method for raising the Triple Asserted event manually.
(Inherited from BaseGraph.) | |
RaiseTripleRetracted(Triple) |
Helper method for raising the Triple Retracted event manually.
(Inherited from BaseGraph.) | |
RaiseTripleRetracted(TripleEventArgs) |
Helper method for raising the Triple Retracted event manually.
(Inherited from BaseGraph.) | |
ReadXml |
Reads the data for XML deserialization.
(Inherited from BaseGraph.) | |
ResolveQName |
Helper function for Resolving QNames to URIs.
(Inherited from BaseGraph.) | |
Retract(IEnumerableTriple) |
Retracts a enumeration of Triples from the graph.
(Overrides BaseGraphRetract(IEnumerableTriple).) | |
Retract(Triple) |
Retracts a Triple from the Graph.
(Overrides BaseGraphRetract(Triple).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteXml |
Writes the data for XML serialization.
(Inherited from BaseGraph.) |
Name | Description | |
---|---|---|
Changed |
Event which is raised when the Graph contents change
(Inherited from BaseGraph.) | |
Cleared |
Event which is raised after the Graph is cleared of its contents
(Inherited from BaseGraph.) | |
ClearRequested |
Event which is raised just before the Graph is cleared of its contents
(Inherited from BaseGraph.) | |
Merged |
Event which is raised when a Merge operation is completed on the Graph
(Inherited from BaseGraph.) | |
MergeRequested |
Event which is raised when a Merge operation is requested on the Graph
(Inherited from BaseGraph.) | |
TripleAsserted |
Event which is raised when a Triple is asserted in the Graph
(Inherited from BaseGraph.) | |
TripleRetracted |
Event which is raised when a Triple is retracted from the Graph
(Inherited from BaseGraph.) |
Name | Description | |
---|---|---|
_baseuri |
Base Uri of the Graph.
(Inherited from BaseGraph.) | |
_bnodemapper |
Blank Node ID Mapper.
(Inherited from BaseGraph.) | |
_nsmapper |
Namespace Mapper.
(Inherited from BaseGraph.) | |
_triples |
Collection of Triples in the Graph.
(Inherited from BaseGraph.) |