-
Notifications
You must be signed in to change notification settings - Fork 0
UserGuide Storage AllegroGraph
Home > User Guide > Storage API > Storage Providers > Allegro Graph
dotNetRDF supports Franz AllegroGraph 3.x and 4.x via the AllegroGraphConnector class.
Currently the connector supports the following capabilities:
- Load, Save, Update, Delete and List Graphs
- SPARQL Query
- SPARQL Update (if using dotNetRDF 1.0.0 and higher)
To connect to Allegro Graph you will need to know the Base URI of your server, the catalog and store ID. Optionally you can also provide HTTP authentication credentials and a HTTP proxy.
For 3.x you can create a connection like so:
//Create an unauthenticated connection
AllegroGraphConnector agraph = new AllegroGraphConnector("http://localhost:9875", "catalog", "store");Or provide authentication credentials like so:
//Create an authenticated connection
AllegroGraphConnector agraph = new AllegroGraphConnector("http://localhost:9875", "catalog", "store", "user", "password");The 4.x release introduced the notion of a root catalog which allows you to omit the Catalog ID for stores in this catalog, you can either set the catalog to null or use the constructors which omit the argument e.g.
//Create an unauthenticated connection to a store in the root catalog
AllegroGraphConnector agraph = new AllegroGraphConnector("http://localhost:9875", "store");We support managing a server via the AllegroGraphServer class which implements our Servers API
Managing a server allows you to manage a single catalog at a time, a AllegroGraphConnector provides access to its associated server via the ParentServer or AsyncParentServer property.
You can also create connect directly to a server by creating an instance of the AllegroGraphServer class. This requires you to know the Base URI and catalog ID you want to manage.
For 3.x you will always need the catalog ID:
//Create an unauthenticated connection
AllegroGraphServer agraph = new AllegroGraphServer("http://localhost:9875", "catalog");For 4.x you can manage the root catalog like so:
//Create an unauthenticated connection to the root catalog
AllegroGraphServer agraph = new AllegroGraphServer("http://localhost:9875");When creating a store the AllegroGraphServer will provide only simple StoreTemplate instances as templates. No extra settings may currently be configured when creating stores on a Allegro Graph server.
- Getting Started
- Library Overview
- Hello World
- Reading RDF
- Writing RDF
- Working With Graphs
- Typed Values and Lists
- Working with Triple Stores
- Building SPARQL
- Querying with SPARQL
- Updating with SPARQL
- Exceptions
- Equality and Comparison
- Event Model
- Utility Methods
- Extension Methods
- Using the Namespace Mapper
- Storage API
- Advanced SPARQL
- Ontology API
- Inference and Reasoning
- ASP.NET Integration
- Global Options
- Formatting API
-
Configuration API
- Graphs
- Triple Stores
- Object Factories
- Readers and Writers
- SPARQL Endpoints
- Query Processors
- Update Processors
- Protocol Processors
- SPARQL Datasets
- SPARQL Expression Factories
- SPARQL Operators
- SPARQL Optimisers
- Full Text Query
- Reasoners
- Storage Providers
- User Groups
- Permissions
- Users
- Static Options
- Proxy Servers
- Handlers API
- JSON-LD API
- Tools