Click or drag to resize

TripleStore Class

Class for representing Triple Stores which are collections of RDF Graphs.
Inheritance Hierarchy

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class TripleStore : BaseTripleStore, 
	IInMemoryQueryableStore, ITripleStore, IDisposable, IInferencingTripleStore, IUpdateableTripleStore

The TripleStore type exposes the following members.

Constructors
  NameDescription
Public methodTripleStore
Creates a new Triple Store using a new empty Graph collection.
Public methodTripleStore(BaseGraphCollection)
Creates a new Triple Store using the given Graph collection which may be non-empty.
Top
Properties
  NameDescription
Public propertyGraphs
Gets the Collection of Graphs that comprise this Triple Store.
(Inherited from BaseTripleStore.)
Public propertyIsEmpty
Gets whether the Triple Store is empty.
(Inherited from BaseTripleStore.)
Public propertyItem
Gets the Graph with the given URI.
(Inherited from BaseTripleStore.)
Public propertyTriples
Gets all the Triples in the Triple Store.
(Inherited from BaseTripleStore.)
Top
Methods
  NameDescription
Public methodAdd(IGraph)
Adds a Graph into the Triple Store.
(Inherited from BaseTripleStore.)
Public methodAdd(IGraph, Boolean)
Adds a Graph into the Triple Store using the chosen Merging Behaviour.
(Inherited from BaseTripleStore.)
Public methodAddFromUri(Uri)
Adds a Graph into the Triple Store which is retrieved from the given Uri.
(Inherited from BaseTripleStore.)
Public methodAddFromUri(Uri, Boolean)
Adds a Graph into the Triple Store which is retrieved from the given Uri using the chosen Merging Behaviour.
(Inherited from BaseTripleStore.)
Public methodAddInferenceEngine
Adds an Inference Engine to the Triple Store.
Public methodApplyInference
Applies Inference to the given Graph.
Protected methodAttachEventHandlers
Helper method which attaches the Triple Store's Event Handlers to the relevant events of a Graph.
(Inherited from BaseTripleStore.)
Public methodClearInferenceEngines
Clears all Inference Engines from the Triple Store.
Public methodContains
Returns whether the Store contains the given Triple within the Query Triples.
Protected methodDetachEventHandlers
Helper method which detaches the Triple Store's Event Handlers from the relevant events of a Graph.
(Inherited from BaseTripleStore.)
Public methodDispose
Disposes of a Triple Store.
(Overrides BaseTripleStoreDispose.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecuteQuery(String) Obsolete.
Executes a SPARQL Query on the Triple Store.
Public methodExecuteQuery(SparqlQuery) Obsolete.
Executes a SPARQL Query on the Triple Store.
Public methodExecuteQuery(IRdfHandler, ISparqlResultsHandler, String) Obsolete.
Executes a SPARQL Query on the Triple Store processing the results with an appropriate handler from those provided.
Public methodExecuteQuery(IRdfHandler, ISparqlResultsHandler, SparqlQuery) Obsolete.
Executes a SPARQL Query on the Triple Store processing the results with an appropriate handler from those provided.
Public methodExecuteUpdate(String)
Executes an Update against the Triple Store.
Public methodExecuteUpdate(SparqlUpdateCommand)
Executes a single Update Command against the Triple Store.
Public methodExecuteUpdate(SparqlUpdateCommandSet)
Executes a set of Update Commands against the Triple Store.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTriples(Uri)
Selects all Triples which have a Uri Node with the given Uri from all the Query Triples.
Public methodGetTriples(INode)
Selects all Triples which contain the given Node from all Graphs in the Triple Store.
Public methodGetTriples(ListUri, Uri)
Selects all Triples which have a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.
Public methodGetTriples(ListUri, INode)
Selects all Triples which contain the given Node from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithObject(Uri)
Selects all Triples where the Object is a Uri Node with the given Uri from all Graphs in the Triple Store.
Public methodGetTriplesWithObject(INode)
Selects all Triples where the Object is a given Node from all Graphs in the Triple Store.
Public methodGetTriplesWithObject(ListUri, Uri)
Selects all Triples where the Object is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithObject(ListUri, INode)
Selects all Triples where the Object is a given Node from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithPredicate(Uri)
Selects all Triples where the Predicate is a Uri Node with the given Uri from all Graphs in the Triple Store.
Public methodGetTriplesWithPredicate(INode)
Selects all Triples where the Predicate is a given Node from all Graphs in the Triple Store.
Public methodGetTriplesWithPredicate(ListUri, Uri)
Selects all Triples where the Predicate is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithPredicate(ListUri, INode)
Selects all Triples where the Predicate is a given Node from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithPredicateObject
Selects all the Triples with the given Predicate-Object pair from all the Query Triples.
Public methodGetTriplesWithSubject(Uri)
Selects all Triples where the Subject is a Uri Node with the given Uri from all Graphs in the Triple Store.
Public methodGetTriplesWithSubject(INode)
Selects all Triples where the Subject is a given Node from all Graphs in the Triple Store.
Public methodGetTriplesWithSubject(ListUri, Uri)
Selects all Triples where the Subject is a Uri Node with the given Uri from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithSubject(ListUri, INode)
Selects all Triples where the Subject is a given Node from a Subset of Graphs in the Triple Store.
Public methodGetTriplesWithSubjectObject
Selects all the Triples with the given Subject-Object pair from all the Query Triples.
Public methodGetTriplesWithSubjectPredicate
Selects all the Triples with the given Subject-Predicate pair from all the Query Triples.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasGraph
Checks whether a Graph with the given Base Uri exists in the Triple Store.
(Inherited from BaseTripleStore.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnGraphAdded
Event Handler for the Graph Added event of the underlying Graph Collection which calls the normal event processing of the parent class BaseTripleStore and then applies Inference to the newly added Graph.
(Overrides BaseTripleStoreOnGraphAdded(Object, GraphEventArgs).)
Protected methodOnGraphChanged
Event Handler which handles the Changed event of the contained Graphs by raising the Triple Store's Graph Changed event.
(Inherited from BaseTripleStore.)
Protected methodOnGraphCleared
Event Handler which handles the Cleared event of the contained Graphs by raising the Triple Stores's Graph Cleared event.
(Inherited from BaseTripleStore.)
Protected methodOnGraphMerged
Event Handler which handles the Merged event of the contained Graphs by raising the Triple Store's Graph Merged event.
(Inherited from BaseTripleStore.)
Protected methodOnGraphRemoved
Event Handler which handles the Graph Removed event from the underlying Graph Collection and raises the Triple Stores's Graph Removed event.
(Inherited from BaseTripleStore.)
Protected methodRaiseGraphAdded(GraphEventArgs)
Helper method for raising the Graph Added event manually.
(Inherited from BaseTripleStore.)
Protected methodRaiseGraphAdded(IGraph)
Helper method for raising the Graph Added event manually.
(Inherited from BaseTripleStore.)
Protected methodRaiseGraphChanged(GraphEventArgs)
Helper method for raising the Graph Changed event manually.
(Inherited from BaseTripleStore.)
Protected methodRaiseGraphChanged(IGraph)
Helper method for raising the Graph Changed event manually.
(Inherited from BaseTripleStore.)
Protected methodRaiseGraphCleared
Helper method for raising the Graph Cleared event manually.
(Inherited from BaseTripleStore.)
Protected methodRaiseGraphMerged
Helper method for raising the Graph Merged event manually.
(Inherited from BaseTripleStore.)
Protected methodRaiseGraphRemoved(GraphEventArgs)
Helper method for raising the Graph Removed event manually.
(Inherited from BaseTripleStore.)
Protected methodRaiseGraphRemoved(IGraph)
Helper method for raising the Graph Removed event manually.
(Inherited from BaseTripleStore.)
Public methodRemove
Removes a Graph from the Triple Store.
(Inherited from BaseTripleStore.)
Public methodRemoveInferenceEngine
Removes an Inference Engine from the Triple Store.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventGraphAdded
Event which is raised when a Graph is added
(Inherited from BaseTripleStore.)
Public eventGraphChanged
Event which is raised when a Graphs contents changes
(Inherited from BaseTripleStore.)
Public eventGraphCleared
Event which is raised when a Graph is cleared
(Inherited from BaseTripleStore.)
Public eventGraphMerged
Event which is raised when a Graph has a merge operation performed on it
(Inherited from BaseTripleStore.)
Public eventGraphRemoved
Event which is raised when a Graph is removed
(Inherited from BaseTripleStore.)
Top
Fields
  NameDescription
Protected field_graphs
Collection of Graphs that comprise the Triple Store.
(Inherited from BaseTripleStore.)
Protected field_inferenceGraphUri
Graph Uri for the special Graph used to store inferred information.
Protected field_reasoners
List of Reasoners that are applied to Graphs as they are added to the Triple Store.
Protected field_storeInferencesExternally
Controls whether inferred information is stored in a special Graph or in the original Graph.
Top
Extension Methods
  NameDescription
Public Extension MethodLoadFromEmbeddedResource(String)Overloaded.
Loads an RDF dataset from an Embedded Resource into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromEmbeddedResource(String, IStoreReader)Overloaded.
Loads an RDF dataset from an Embedded Resource into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromFile(String)Overloaded.
Loads an RDF dataset from a file into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromFile(String, IStoreReader)Overloaded.
Loads an RDF dataset from a file into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromString(String)Overloaded.
Loads an RDF dataset from a String into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromString(String, IStoreReader)Overloaded.
Loads an RDF dataset from a String into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromUri(Uri)Overloaded.
Loads an RDF dataset from a URI into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodLoadFromUri(Uri, IStoreReader)Overloaded.
Loads an RDF dataset from a URI into a Triple Store.
(Defined by TripleStoreExtensions.)
Public Extension MethodSaveToFile(String)Overloaded.
Saves a Triple Store to a file.
(Defined by TripleStoreExtensions.)
Public Extension MethodSaveToFile(String, IStoreWriter)Overloaded.
Saves a Triple Store to a file.
(Defined by TripleStoreExtensions.)
Top
See Also