UriLoader Class |
Namespace: VDS.RDF.Parsing
The UriLoader type exposes the following members.
Name | Description | |
---|---|---|
Cache |
Gets/Sets the Cache that is in use.
| |
CacheDirectory |
Gets/Sets the Directory used for caching Graphs loaded from URIs.
| |
CacheDuration |
Gets/Sets the amount of time Graphs are cached for.
| |
UserAgent |
Gets/Sets an optional User Agent string that will be appended to HTTP Requests.
|
Name | Description | |
---|---|---|
IsCached |
Determines whether the RDF behind the given URI is cached.
| |
Load(IGraph, Uri) |
Attempts to load a RDF Graph from the given URI into the given Graph.
| |
Load(IRdfHandler, Uri) |
Attempts to load a RDF Graph from the given URI using a RDF Handler.
| |
Load(ITripleStore, Uri) |
Attempts to load a RDF dataset from the given URI into the given Triple Store.
| |
Load(IGraph, Uri, IRdfReader) |
Attempts to load a RDF Graph from the given URI into the given Graph.
| |
Load(IRdfHandler, Uri, IRdfReader) |
Attempts to load a RDF Graph from the given URI using a RDF Handler.
| |
Load(IRdfHandler, Uri, IStoreReader) |
Attempts to load a RDF dataset from the given URI using a RDF Handler.
| |
Load(ITripleStore, Uri, IStoreReader) |
Attempts to load a RDF dataset from the given URI into the given Triple Store.
| |
Load(IGraph, Uri, GraphCallback, Object) |
Attempts to load a RDF Graph from a URI asynchronously.
| |
Load(IRdfHandler, Uri, RdfHandlerCallback, Object) |
Attempts to load a RDF Graph from a URI asynchronously using an RDF Handler.
| |
Load(ITripleStore, Uri, TripleStoreCallback, Object) |
Attempts to load a RDF dataset asynchronously from the given URI into the given Triple Store.
| |
Load(IGraph, Uri, IRdfReader, GraphCallback, Object) |
Attempts to load a RDF Graph from a URI asynchronously.
| |
Load(IRdfHandler, Uri, IRdfReader, RdfHandlerCallback, Object) |
Attempts to load a RDF Graph from a URI asynchronously using an RDF Handler.
| |
Load(IRdfHandler, Uri, IStoreReader, RdfHandlerCallback, Object) |
Attempts to load a RDF dataset asynchronously from the given URI using a RDF Handler.
| |
Load(ITripleStore, Uri, IStoreReader, TripleStoreCallback, Object) |
Attempts to load a RDF dataset asynchronously from the given URI into the given Triple Store.
| |
LoadDataset(IRdfHandler, Uri) |
Attempts to load a RDF dataset from the given URI using a RDF Handler.
| |
LoadDataset(IRdfHandler, Uri, RdfHandlerCallback, Object) |
Attempts to load a RDF dataset asynchronously from the given URI using a RDF Handler.
|
Name | Description | |
---|---|---|
StoreWarning |
Event which is raised when a store parser that is invoked by the UriLoader notices a non-fatal issue with the RDF dataset syntax
| |
Warning |
Event which is raised when a parser that is invoked by the UriLoader notices a non-fatal issue with the RDF syntax
|
As of the 0.2.2 release the loader has support for caching retrieved data locally built into it (for Graphs only), caching is done using ETags where the remote server provides them or just by a user-defineable 'freshness' criteria (i.e. number of hours retrieved resources should be cached for). By default this caching happens in the system temporary directory which means it is non-persistent i.e. if you run your application using dotNetRDF it may cache stuff during the session but once the application is closed the operating system may freely delete the cached data. If you wish to have a persistent cache then you can use the CacheDirectory property to set your own cache directory. Even when you set your own cache directory dotNetRDF will delete obsolete data from it over time though this will only happen when a new request invalidates previously cached data.
If you wish to completely control the Cache you can implement your own IUriLoaderCache implementation and use it by setting the Cache property.