BaseGraph Class |
Namespace: VDS.RDF
The BaseGraph type exposes the following members.
Name | Description | |
---|---|---|
BaseGraph |
Creates a new Base Graph which uses the default TreeIndexedTripleCollection as the Triple Collection.
| |
BaseGraph(BaseTripleCollection) |
Creates a new Base Graph using the given Triple Collection.
| |
BaseGraph(SerializationInfo, StreamingContext) |
Creates a Graph from the given Serialization Information.
|
Name | Description | |
---|---|---|
AllNodes |
Gets the unique Subject, Predicate and Object nodes of the Graph.
| |
BaseUri |
Gets the current Base Uri for the Graph.
| |
IsEmpty |
Gets whether a Graph is Empty ie. Contains No Triples or Nodes.
| |
NamespaceMap |
Gets the Namespace Mapper for this Graph which contains all in use Namespace Prefixes and their URIs.
| |
Nodes |
Gets the unique Subject and Object nodes of the Graph.
| |
Triples |
Gets the set of Triples described in this Graph.
|
Name | Description | |
---|---|---|
Assert(IEnumerableTriple) |
Asserts a List of Triples in the graph.
| |
Assert(Triple) |
Asserts a Triple in the Graph.
| |
AttachEventHandlers |
Helper method for attaching the necessary event Handlers to a Triple Collection.
| |
Clear |
Clears all Triples from the Graph.
| |
ContainsTriple |
Gets whether a given Triple exists in this Graph.
| |
CreateBlankNode |
Creates a New Blank Node with an auto-generated Blank Node ID.
| |
CreateBlankNode(String) |
Creates a New Blank Node with a user-defined Blank Node ID.
| |
CreateGraphLiteralNode |
Creates a new Graph Literal Node with its value being an Empty Subgraph.
| |
CreateGraphLiteralNode(IGraph) |
Creates a new Graph Literal Node with its value being the given Subgraph.
| |
CreateLiteralNode(String) |
Creates a New Literal Node with the given Value.
| |
CreateLiteralNode(String, String) |
Creates a New Literal Node with the given Value and Language Specifier.
| |
CreateLiteralNode(String, Uri) |
Creates a new Literal Node with the given Value and Data Type.
| |
CreateUriNode |
Creates a new URI Node that refers to the Base Uri of the Graph.
| |
CreateUriNode(String) |
Creates a new URI Node with the given QName.
| |
CreateUriNode(Uri) |
Creates a new URI Node with the given URI.
| |
CreateVariableNode |
Creates a new Variable Node.
| |
DetachEventHandlers |
Helper method for detaching the necessary event Handlers from a Triple Collection.
| |
Difference |
Computes the Difference between this Graph the given Graph.
| |
Dispose |
Disposes of a Graph.
| |
Equals(Object) |
Determines whether a Graph is equal to another Object.
(Overrides ObjectEquals(Object).) | |
Equals(IGraph, DictionaryINode, INode) |
Determines whether this Graph is equal to the given Graph.
| |
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.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLiteralNode(String) |
Returns the LiteralNode with the given Value if it exists.
| |
GetLiteralNode(String, String) |
Returns the LiteralNode with the given Value in the given Language if it exists.
| |
GetLiteralNode(String, Uri) |
Returns the LiteralNode with the given Value and given Data Type if it exists.
| |
GetNextBlankNodeID |
Creates a new unused Blank Node ID and returns it.
| |
GetObjectData |
Gets the Serialization Information for serializing a Graph.
| |
GetSchema |
Gets the Schema for XML Serialization.
| |
GetTriples(Uri) |
Gets all the Triples involving the given Uri.
| |
GetTriples(INode) |
Gets all the Triples involving the given Node.
| |
GetTriplesWithObject(Uri) |
Gets all the Triples with the given Uri as the Object.
| |
GetTriplesWithObject(INode) |
Gets all the Triples with the given Node as the Object.
| |
GetTriplesWithPredicate(Uri) |
Gets all the Triples with the given Uri as the Predicate.
| |
GetTriplesWithPredicate(INode) |
Gets all the Triples with the given Node as the Predicate.
| |
GetTriplesWithPredicateObject |
Selects all Triples with the given Predicate and Object.
| |
GetTriplesWithSubject(Uri) |
Gets all the Triples with the given Uri as the Subject.
| |
GetTriplesWithSubject(INode) |
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 | Gets the Type of the current instance. (Inherited from Object.) | |
GetUriNode(String) |
Returns the UriNode with the given QName if it exists.
| |
GetUriNode(Uri) |
Returns the UriNode with the given Uri if it exists.
| |
HasSubGraph(IGraph) |
Checks whether this Graph has the given Graph as a sub-graph.
| |
HasSubGraph(IGraph, DictionaryINode, INode) |
Checks whether this Graph has the given Graph as a sub-graph.
| |
IsSubGraphOf(IGraph) |
Checks whether this Graph is a sub-graph of the given Graph.
| |
IsSubGraphOf(IGraph, DictionaryINode, INode) |
Checks whether this Graph is a sub-graph of the given Graph.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Merge(IGraph) |
Merges another Graph into the current Graph.
| |
Merge(IGraph, Boolean) |
Merges another Graph into the current Graph.
| |
OnTripleAsserted |
Event Handler which handles the Triple Added event from the underlying Triple Collection by raising the Graph's TripleAsserted event.
| |
OnTripleRetracted |
Event Handler which handles the Triple Removed event from the underlying Triple Collection by raising the Graph's Triple Retracted event.
| |
RaiseCleared |
Helper method for raising the Cleared event.
| |
RaiseClearRequested |
Helper method for raising the Clear Requested event and returning whether any of the Event Handlers cancelled the operation.
| |
RaiseGraphChanged |
Helper method for raising the Changed event.
| |
RaiseGraphChanged(TripleEventArgs) |
Helper method for raising the Changed event.
| |
RaiseMerged |
Helper method for raising the Merged event.
| |
RaiseMergeRequested |
Helper method for raising the Merge Requested event and returning whether any of the Event Handlers cancelled the operation.
| |
RaiseTripleAsserted(Triple) |
Helper method for raising the Triple Asserted event manually.
| |
RaiseTripleAsserted(TripleEventArgs) |
Helper method for raising the Triple Asserted event manually.
| |
RaiseTripleRetracted(Triple) |
Helper method for raising the Triple Retracted event manually.
| |
RaiseTripleRetracted(TripleEventArgs) |
Helper method for raising the Triple Retracted event manually.
| |
ReadXml |
Reads the data for XML deserialization.
| |
ResolveQName |
Helper function for Resolving QNames to URIs.
| |
Retract(IEnumerableTriple) |
Retracts a enumeration of Triples from the graph.
| |
Retract(Triple) |
Retracts a Triple from the Graph.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteXml |
Writes the data for XML serialization.
|
Name | Description | |
---|---|---|
Changed |
Event which is raised when the Graph contents change
| |
Cleared |
Event which is raised after the Graph is cleared of its contents
| |
ClearRequested |
Event which is raised just before the Graph is cleared of its contents
| |
Merged |
Event which is raised when a Merge operation is completed on the Graph
| |
MergeRequested |
Event which is raised when a Merge operation is requested on the Graph
| |
TripleAsserted |
Event which is raised when a Triple is asserted in the Graph
| |
TripleRetracted |
Event which is raised when a Triple is retracted from the Graph
|
Name | Description | |
---|---|---|
_baseuri |
Base Uri of the Graph.
| |
_bnodemapper |
Blank Node ID Mapper.
| |
_nsmapper |
Namespace Mapper.
| |
_triples |
Collection of Triples in the Graph.
|
Name | Description | |
---|---|---|
AddToList(INode, IEnumerableINode) | Overloaded.
Adds new items to the end of a list (aka a RDF collection).
(Defined by Extensions.) | |
AddToListT(INode, IEnumerableT, FuncT, INode) | Overloaded.
Adds new items to the end of a list (aka a RDF collection).
(Defined by Extensions.) | |
AsDynamic |
Dynamically wraps a graph.
(Defined by DynamicExtensions.) | |
Assert |
Asserts a new Triple in the Graph.
(Defined by Extensions.) | |
AssertList(IEnumerableINode) | Overloaded.
Asserts a list as a RDF collection and returns the node that represents the root of the RDF collection.
(Defined by Extensions.) | |
AssertList(INode, IEnumerableINode) | Overloaded.
Asserts a list as a RDF collection using an existing node as the list root.
(Defined by Extensions.) | |
AssertListT(IEnumerableT, FuncT, INode) | Overloaded.
Asserts a list as a RDF collection and returns the node that represents the root of the RDF collection.
(Defined by Extensions.) | |
AssertListT(INode, IEnumerableT, FuncT, INode) | Overloaded.
Asserts a list as a RDF collection using an existing node as the list root.
(Defined by Extensions.) | |
ExecuteQuery(String) | Overloaded.
Executes a SPARQL Query on a Graph.
(Defined by GraphExtensions.) | |
ExecuteQuery(SparqlParameterizedString) | Overloaded.
Executes a SPARQL Query on a Graph.
(Defined by GraphExtensions.) | |
ExecuteQuery(SparqlQuery) | Overloaded.
Executes a SPARQL Query on a Graph.
(Defined by GraphExtensions.) | |
ExecuteQuery(IRdfHandler, ISparqlResultsHandler, String) | Overloaded.
Executes a SPARQL Query on a Graph handling the results using the handlers provided.
(Defined by GraphExtensions.) | |
ExecuteQuery(IRdfHandler, ISparqlResultsHandler, SparqlParameterizedString) | Overloaded.
Executes a SPARQL Query on a Graph handling the results using the handlers provided.
(Defined by GraphExtensions.) | |
ExecuteQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery) | Overloaded.
Executes a SPARQL Query on a Graph handling the results using the handlers provided.
(Defined by GraphExtensions.) | |
GetListAsTriples |
Gets all the Triples that make up a list (aka a RDF collection).
(Defined by Extensions.) | |
GetListItems |
Gets all the Nodes which are the items of the list (aka the RDF collection).
(Defined by Extensions.) | |
GetListNodes |
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.
(Defined by Extensions.) | |
LoadFromEmbeddedResource(String) | Overloaded.
Loads RDF data from an Embedded Resource into a Graph.
(Defined by GraphExtensions.) | |
LoadFromEmbeddedResource(String, IRdfReader) | Overloaded.
Loads RDF data from an Embedded Resource into a Graph.
(Defined by GraphExtensions.) | |
LoadFromFile(String) | Overloaded.
Loads RDF data from a file into a Graph.
(Defined by GraphExtensions.) | |
LoadFromFile(String, IRdfReader) | Overloaded.
Loads RDF data from a file into a Graph.
(Defined by GraphExtensions.) | |
LoadFromString(String) | Overloaded.
Loads RDF data from a String into a Graph.
(Defined by GraphExtensions.) | |
LoadFromString(String, IRdfReader) | Overloaded.
Loads RDF data from a String into a Graph.
(Defined by GraphExtensions.) | |
LoadFromUri(Uri) | Overloaded.
Loads RDF data from a URI into a Graph.
(Defined by GraphExtensions.) | |
LoadFromUri(Uri, IRdfReader) | Overloaded.
Loads RDF data from a URI into a Graph.
(Defined by GraphExtensions.) | |
RemoveFromList(INode, IEnumerableINode) | Overloaded.
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.
(Defined by Extensions.) | |
RemoveFromListT(INode, IEnumerableT, FuncT, INode) | Overloaded.
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.
(Defined by Extensions.) | |
Retract |
Retracts a Triple from the Graph.
(Defined by Extensions.) | |
RetractList |
Retracts a List (aka a RDF collection).
(Defined by Extensions.) | |
SaveToFile(String) | Overloaded.
Saves a Graph to a File.
(Defined by GraphExtensions.) | |
SaveToFile(String, IRdfWriter) | Overloaded.
Saves a Graph to a File.
(Defined by GraphExtensions.) | |
SaveToFile(String, IStoreWriter) | Overloaded.
Saves a Graph to a File.
(Defined by GraphExtensions.) | |
SaveToStream(TextWriter, IRdfWriter) | Overloaded.
Saves a Graph to a stream.
(Defined by GraphExtensions.) | |
SaveToStream(TextWriter, IStoreWriter) | Overloaded.
Saves a Graph to a stream.
(Defined by GraphExtensions.) | |
SaveToStream(String, TextWriter) | Overloaded.
Save a graph to a stream, determining the type of writer to use by the output file name.
(Defined by GraphExtensions.) |