C# Класс VDS.RDF.Storage.BlazegraphConnector

Class for connecting to a Blazegraph Store
Наследование: BaseAsyncHttpConnector, IAsyncQueryableTimeoutStorage, IQueryableTimeoutStorage, IConfigurationSerializable, IAsyncTransactionalStorage, ITransactionalStorage
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_activeTrans string
_baseUri string
_writer VDS.RDF.Writing.TriGWriter
transLock object

Открытые методы

Метод Описание
Begin ( ) : void

Begins a new Transaction

A single transaction

Begin ( AsyncStorageCallback callback, object state ) : void

Begins a transaction asynchronously

BlazegraphConnector ( string baseUri ) : System

Creates a new Connection to a Blazegraph store with default namespace

BlazegraphConnector ( string baseUri, string ns ) : System

Creates a new Connection to a Blazegraph store

Commit ( ) : void

Commits the active Transaction

Transactions are scoped to Managed Threads

Commit ( AsyncStorageCallback callback, object state ) : void

Commits a transaction asynchronously

DeleteGraph ( Uri graphUri ) : void

Deletes a Graph from the Blazegraph store

DeleteGraph ( string graphUri ) : void

Deletes a Graph from the Blazegraph store

DeleteGraph ( string graphUri, AsyncStorageCallback callback, object state ) : void

Deletes a Graph from the Store

Dispose ( ) : void
ListGraphs ( ) : IEnumerable

Gets the list of Graphs in the Blazegraph store

LoadGraph ( IGraph g, Uri graphUri ) : void

Loads a Graph from the Store

If an empty/null URI is specified then the Default Graph of the Store will be loaded

LoadGraph ( IGraph g, string graphUri ) : void

Loads a Graph from the Store

If an empty/null Uri is specified then the Default Graph of the Store will be loaded

LoadGraph ( IRdfHandler handler, Uri graphUri ) : void

Loads a Graph from the Store

If an empty/null URI is specified then the Default Graph of the Store will be loaded

LoadGraph ( IRdfHandler handler, string graphUri ) : void

Loads a Graph from the Store

If an empty/null URI is specified then the Default Graph of the Store will be loaded

LoadGraph ( IRdfHandler handler, string graphUri, AsyncStorageCallback callback, object state ) : void

Loads a Graph from the Store asynchronously

Query ( String sparqlQuery ) : object

Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use

Query ( string sparqlQuery, long timeoutMilliseconds ) : object

Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use

Query ( IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery ) : void

Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use processing the results using an appropriate handler from those provided

Query ( IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, AsyncStorageCallback callback, object state ) : void

Queries the store asynchronously

Query ( IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, AsyncStorageCallback callback, object state, long timeoutMilliseconds ) : void

Queries the store asynchronously

Query ( IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, long timeoutMilliseconds ) : void

Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use processing the results using an appropriate handler from those provided

Query ( string sparqlQuery, AsyncStorageCallback callback, object state ) : void

Queries the store asynchronously

Query ( string sparqlQuery, AsyncStorageCallback callback, object state, long timeoutMilliseconds ) : void

Queries the store asynchronously

Rollback ( ) : void

Rolls back the active Transaction

Transactions are scoped to Managed Threads

Rollback ( AsyncStorageCallback callback, object state ) : void

Rolls back a transaction asynchronously

SaveGraph ( IGraph g ) : void

Saves a Graph into the Store (see remarks for notes on merge/overwrite behaviour)

If the Graph has no URI then the contents will be appended to the Store's Default Graph. If the Graph has a URI then existing Graph associated with that URI will be replaced. To append to a named Graph use the UpdateGraph() method instead

SaveGraph ( IGraph g, AsyncStorageCallback callback, object state ) : void

Saves a Graph to the Store asynchronously

SerializeConfiguration ( VDS.RDF.Configuration.ConfigurationSerializationContext context ) : void

Serializes the connection's configuration

ToString ( ) : string

Gets a String which gives details of the Connection

UpdateGraph ( Uri graphUri, IEnumerable additions, IEnumerable removals ) : void

Updates a Graph in the Blazegraph Store

UpdateGraph ( string graphUri, IEnumerable additions, IEnumerable removals ) : void

Updates a Graph in the Blazegraph store

UpdateGraph ( string graphUri, IEnumerable additions, IEnumerable removals, AsyncStorageCallback callback, object state ) : void

Updates a Graph in the Store asychronously

Защищенные методы

Метод Описание
BeginTransaction ( ) : string
CommitTransaction ( string tID ) : void
CreateRequest ( string servicePath, string accept, string method, string>.Dictionary requestParams, bool withNS = true ) : HttpWebRequest

Helper method for creating HTTP Requests to the Store

DeleteGraphAsync ( bool autoCommit, string graphUri, AsyncStorageCallback callback, object state ) : void
RollbackTransaction ( string tID ) : void
SaveGraphAsync ( IGraph g, AsyncStorageCallback callback, object state ) : void
SaveGraphAsync ( bool autoCommit, IGraph g, AsyncStorageCallback callback, object state ) : void
UpdateGraphAsync ( bool autoCommit, string graphUri, IEnumerable additions, IEnumerable removals, AsyncStorageCallback callback, object state ) : void
UpdateGraphAsync ( string graphUri, IEnumerable additions, IEnumerable removals, AsyncStorageCallback callback, object state ) : void

Описание методов

Begin() публичный Метод

Begins a new Transaction
A single transaction
public Begin ( ) : void
Результат void

Begin() публичный Метод

Begins a transaction asynchronously
public Begin ( AsyncStorageCallback callback, object state ) : void
callback AsyncStorageCallback Callback
state object State to pass to the callback
Результат void

BeginTransaction() защищенный Метод

protected BeginTransaction ( ) : string
Результат string

BlazegraphConnector() публичный Метод

Creates a new Connection to a Blazegraph store with default namespace
public BlazegraphConnector ( string baseUri ) : System
baseUri string
Результат System

BlazegraphConnector() публичный Метод

Creates a new Connection to a Blazegraph store
public BlazegraphConnector ( string baseUri, string ns ) : System
baseUri string
ns string Namespace
Результат System

Commit() публичный Метод

Commits the active Transaction
Transactions are scoped to Managed Threads
Thrown if there is not an active Transaction on the current Thread
public Commit ( ) : void
Результат void

Commit() публичный Метод

Commits a transaction asynchronously
public Commit ( AsyncStorageCallback callback, object state ) : void
callback AsyncStorageCallback Callback
state object State to pass to the callback
Результат void

CommitTransaction() защищенный Метод

protected CommitTransaction ( string tID ) : void
tID string
Результат void

CreateRequest() защищенный Метод

Helper method for creating HTTP Requests to the Store
protected CreateRequest ( string servicePath, string accept, string method, string>.Dictionary requestParams, bool withNS = true ) : HttpWebRequest
servicePath string Path to the Service requested
accept string Acceptable Content Types
method string HTTP Method
requestParams string>.Dictionary Querystring Parameters
withNS bool
Результат System.Net.HttpWebRequest

DeleteGraph() публичный Метод

Deletes a Graph from the Blazegraph store
public DeleteGraph ( Uri graphUri ) : void
graphUri System.Uri URI of the Graph to delete
Результат void

DeleteGraph() публичный Метод

Deletes a Graph from the Blazegraph store
public DeleteGraph ( string graphUri ) : void
graphUri string URI of the Graph to delete
Результат void

DeleteGraph() публичный Метод

Deletes a Graph from the Store
public DeleteGraph ( string graphUri, AsyncStorageCallback callback, object state ) : void
graphUri string URI of the Graph to delete
callback AsyncStorageCallback Callback
state object State to pass to the callback
Результат void

DeleteGraphAsync() защищенный Метод

protected DeleteGraphAsync ( bool autoCommit, string graphUri, AsyncStorageCallback callback, object state ) : void
autoCommit bool
graphUri string
callback AsyncStorageCallback
state object
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

ListGraphs() публичный Метод

Gets the list of Graphs in the Blazegraph store
public ListGraphs ( ) : IEnumerable
Результат IEnumerable

LoadGraph() публичный Метод

Loads a Graph from the Store
If an empty/null URI is specified then the Default Graph of the Store will be loaded
public LoadGraph ( IGraph g, Uri graphUri ) : void
g IGraph Graph to load into
graphUri System.Uri URI of the Graph to load
Результат void

LoadGraph() публичный Метод

Loads a Graph from the Store
If an empty/null Uri is specified then the Default Graph of the Store will be loaded
public LoadGraph ( IGraph g, string graphUri ) : void
g IGraph Graph to load into
graphUri string Uri of the Graph to load
Результат void

LoadGraph() публичный Метод

Loads a Graph from the Store
If an empty/null URI is specified then the Default Graph of the Store will be loaded
public LoadGraph ( IRdfHandler handler, Uri graphUri ) : void
handler IRdfHandler RDF Handler
graphUri System.Uri URI of the Graph to load
Результат void

LoadGraph() публичный Метод

Loads a Graph from the Store
If an empty/null URI is specified then the Default Graph of the Store will be loaded
public LoadGraph ( IRdfHandler handler, string graphUri ) : void
handler IRdfHandler RDF Handler
graphUri string URI of the Graph to load
Результат void

LoadGraph() публичный Метод

Loads a Graph from the Store asynchronously
public LoadGraph ( IRdfHandler handler, string graphUri, AsyncStorageCallback callback, object state ) : void
handler IRdfHandler Handler to load with
graphUri string URI of the Graph to load
callback AsyncStorageCallback Callback
state object State to pass to the callback
Результат void

Query() публичный Метод

Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use
public Query ( String sparqlQuery ) : object
sparqlQuery String Sparql Query
Результат object

Query() публичный Метод

Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use
public Query ( string sparqlQuery, long timeoutMilliseconds ) : object
sparqlQuery string Sparql Query
timeoutMilliseconds long Query timeout in milliseconds
Результат object

Query() публичный Метод

Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use processing the results using an appropriate handler from those provided
public Query ( IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery ) : void
rdfHandler IRdfHandler RDF Handler
resultsHandler ISparqlResultsHandler Results Handler
sparqlQuery string SPARQL Query
Результат void

Query() публичный Метод

Queries the store asynchronously
public Query ( IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, AsyncStorageCallback callback, object state ) : void
rdfHandler IRdfHandler RDF Handler
resultsHandler ISparqlResultsHandler Results Handler
sparqlQuery string SPARQL Query
callback AsyncStorageCallback Callback
state object State to pass to the callback
Результат void

Query() публичный Метод

Queries the store asynchronously
public Query ( IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, AsyncStorageCallback callback, object state, long timeoutMilliseconds ) : void
rdfHandler IRdfHandler RDF Handler
resultsHandler ISparqlResultsHandler Results Handler
sparqlQuery string SPARQL Query
callback AsyncStorageCallback Callback
state object State to pass to the callback
timeoutMilliseconds long Query timeout in milliseconds
Результат void

Query() публичный Метод

Makes a SPARQL Query against the underlying Store using whatever reasoning mode is currently in-use processing the results using an appropriate handler from those provided
public Query ( IRdfHandler rdfHandler, ISparqlResultsHandler resultsHandler, string sparqlQuery, long timeoutMilliseconds ) : void
rdfHandler IRdfHandler RDF Handler
resultsHandler ISparqlResultsHandler Results Handler
sparqlQuery string SPARQL Query
timeoutMilliseconds long Query timeout in milliseconds
Результат void

Query() публичный Метод

Queries the store asynchronously
public Query ( string sparqlQuery, AsyncStorageCallback callback, object state ) : void
sparqlQuery string SPARQL Query
callback AsyncStorageCallback Callback
state object State to pass to the callback
Результат void

Query() публичный Метод

Queries the store asynchronously
public Query ( string sparqlQuery, AsyncStorageCallback callback, object state, long timeoutMilliseconds ) : void
sparqlQuery string SPARQL Query
callback AsyncStorageCallback Callback
state object State to pass to the callback
timeoutMilliseconds long Query timeout in milliseconds
Результат void

Rollback() публичный Метод

Rolls back the active Transaction
Transactions are scoped to Managed Threads
Thrown if there is not an active Transaction on the current Thread
public Rollback ( ) : void
Результат void

Rollback() публичный Метод

Rolls back a transaction asynchronously
public Rollback ( AsyncStorageCallback callback, object state ) : void
callback AsyncStorageCallback Callback
state object State to pass to the callback
Результат void

RollbackTransaction() защищенный Метод

protected RollbackTransaction ( string tID ) : void
tID string
Результат void

SaveGraph() публичный Метод

Saves a Graph into the Store (see remarks for notes on merge/overwrite behaviour)

If the Graph has no URI then the contents will be appended to the Store's Default Graph. If the Graph has a URI then existing Graph associated with that URI will be replaced. To append to a named Graph use the UpdateGraph() method instead

public SaveGraph ( IGraph g ) : void
g IGraph Graph to save
Результат void

SaveGraph() публичный Метод

Saves a Graph to the Store asynchronously
public SaveGraph ( IGraph g, AsyncStorageCallback callback, object state ) : void
g IGraph Graph to save
callback AsyncStorageCallback Callback
state object State to pass to the callback
Результат void

SaveGraphAsync() защищенный Метод

protected SaveGraphAsync ( IGraph g, AsyncStorageCallback callback, object state ) : void
g IGraph
callback AsyncStorageCallback
state object
Результат void

SaveGraphAsync() защищенный Метод

protected SaveGraphAsync ( bool autoCommit, IGraph g, AsyncStorageCallback callback, object state ) : void
autoCommit bool
g IGraph
callback AsyncStorageCallback
state object
Результат void

SerializeConfiguration() публичный Метод

Serializes the connection's configuration
public SerializeConfiguration ( VDS.RDF.Configuration.ConfigurationSerializationContext context ) : void
context VDS.RDF.Configuration.ConfigurationSerializationContext Configuration Serialization Context
Результат void

ToString() публичный Метод

Gets a String which gives details of the Connection
public ToString ( ) : string
Результат string

UpdateGraph() публичный Метод

Updates a Graph in the Blazegraph Store
public UpdateGraph ( Uri graphUri, IEnumerable additions, IEnumerable removals ) : void
graphUri System.Uri Uri of the Graph to update
additions IEnumerable Triples to be added
removals IEnumerable Triples to be removed
Результат void

UpdateGraph() публичный Метод

Updates a Graph in the Blazegraph store
public UpdateGraph ( string graphUri, IEnumerable additions, IEnumerable removals ) : void
graphUri string Uri of the Graph to update
additions IEnumerable Triples to be added
removals IEnumerable Triples to be removed
Результат void

UpdateGraph() публичный Метод

Updates a Graph in the Store asychronously
public UpdateGraph ( string graphUri, IEnumerable additions, IEnumerable removals, AsyncStorageCallback callback, object state ) : void
graphUri string URI of the Graph to update
additions IEnumerable Triples to be added
removals IEnumerable Triples to be removed
callback AsyncStorageCallback Callback
state object State to pass to the callback
Результат void

UpdateGraphAsync() защищенный Метод

protected UpdateGraphAsync ( bool autoCommit, string graphUri, IEnumerable additions, IEnumerable removals, AsyncStorageCallback callback, object state ) : void
autoCommit bool
graphUri string
additions IEnumerable
removals IEnumerable
callback AsyncStorageCallback
state object
Результат void

UpdateGraphAsync() защищенный Метод

protected UpdateGraphAsync ( string graphUri, IEnumerable additions, IEnumerable removals, AsyncStorageCallback callback, object state ) : void
graphUri string
additions IEnumerable
removals IEnumerable
callback AsyncStorageCallback
state object
Результат void

Описание свойств

_activeTrans защищенное свойство

protected string _activeTrans
Результат string

_baseUri защищенное свойство

protected string _baseUri
Результат string

_writer защищенное свойство

protected TriGWriter,VDS.RDF.Writing _writer
Результат VDS.RDF.Writing.TriGWriter

transLock защищенное свойство

protected object transLock
Результат object