Class SesameHttpTemplate
Templates for creating remote Sesame stores.
Implements
Inherited Members
Namespace: VDS.RDF.Storage.Management.Provisioning.Sesame
Assembly: dotNetRdf.dll
Syntax
public class SesameHttpTemplate : BaseSesameTemplate, IStoreTemplate
Remarks
This template generates a Sesame repository config graph like the following, depending on exact options the graph may differ:
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rep: <http://www.openrdf.org/config/repository#>.
@prefix hr: <http://www.openrdf.org/config/repository/http#>.
[] a rep:Repository ;
rep:repositoryImpl [
rep:repositoryType "openrdf:HTTPRepository" ;
hr:repositoryURL <{%Sesame server location|http://localhost:8080/openrdf-sesame%}/repositories/{%Remote repository ID|SYSTEM%}>
];
rep:repositoryID "{this.ID}" ;
rdfs:label "{this.Label}" .
The placeholders of the form {this.Property} represent properties of this class whose values will be inserted into the repository config graph and used to create a new store in Sesame.
Constructors
| Edit this page View SourceSesameHttpTemplate(string)
Creates a new Template.
Declaration
public SesameHttpTemplate(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | Store ID. |
Properties
| Edit this page View SourceRemoteRepositoryID
Gets/Sets the ID of the remote repository to connect to.
Declaration
public string RemoteRepositoryID { get; set; }
Property Value
Type | Description |
---|---|
string |
RemoteServer
Gets/Sets the remote Sesame server to connect to.
Declaration
public string RemoteServer { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGetTemplateGraph()
Gets the template graph.
Declaration
public override IGraph GetTemplateGraph()
Returns
Type | Description |
---|---|
IGraph |