Show / Hide Table of Contents

Class SesameNativeTemplate

Template for creating Sesame Native stores.

Inheritance
System.Object
StoreTemplate
BaseSesameTemplate
SesameNativeTemplate
Implements
IStoreTemplate
Inherited Members
BaseSesameTemplate.RepositoryNamespace
BaseSesameTemplate.RepositorySailNamespace
BaseSesameTemplate.RepositoryHttpNamespace
BaseSesameTemplate.SailNamespace
BaseSesameTemplate.SailMemoryNamespace
BaseSesameTemplate.SailNativeNamespace
BaseSesameTemplate.Label
BaseSesameTemplate.GetBaseTemplateGraph()
BaseSesameTemplate.ContextNode
StoreTemplate.ID
StoreTemplate.TemplateName
StoreTemplate.TemplateDescription
StoreTemplate.Validate()
StoreTemplate.ToString()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Storage.Management.Provisioning.Sesame
Assembly: dotNetRdf.dll
Syntax
public class SesameNativeTemplate : 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 sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix ns: <http://www.openrdf.org/config/sail/native#>.
[] a rep:Repository ;
rep:repositoryID "{this.ID}" ;
rdfs:label "{this.Label}" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "openrdf:NativeStore" ;
ns:tripleIndexes "{this.IndexMode}"
]
].

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

| Improve this Doc View Source

SesameNativeTemplate(string)

Creates a Sesame Native store template.

Declaration
public SesameNativeTemplate(string id)
Parameters
Type Name Description
string id

Store ID.

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 sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix ns: <http://www.openrdf.org/config/sail/native#>.
[] a rep:Repository ;
rep:repositoryID "{this.ID}" ;
rdfs:label "{this.Label}" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "openrdf:NativeStore" ;
ns:tripleIndexes "{this.IndexMode}"
]
].

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.

Properties

| Improve this Doc View Source

DirectTypeHierarchyInferencing

Gets/Sets whether to enable direct type hierarchy inferencing.

Declaration
public bool DirectTypeHierarchyInferencing { get; set; }
Property Value
Type Description
System.Boolean
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 sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix ns: <http://www.openrdf.org/config/sail/native#>.
[] a rep:Repository ;
rep:repositoryID "{this.ID}" ;
rdfs:label "{this.Label}" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "openrdf:NativeStore" ;
ns:tripleIndexes "{this.IndexMode}"
]
].

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.

| Improve this Doc View Source

IndexMode

Gets/Sets the Indexing Mode.

Declaration
public SesameNativeIndexMode IndexMode { get; set; }
Property Value
Type Description
SesameNativeIndexMode
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 sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix ns: <http://www.openrdf.org/config/sail/native#>.
[] a rep:Repository ;
rep:repositoryID "{this.ID}" ;
rdfs:label "{this.Label}" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "openrdf:NativeStore" ;
ns:tripleIndexes "{this.IndexMode}"
]
].

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.

| Improve this Doc View Source

RdfSchemaInferencing

Gets/Sets whether to enable RDF Schema Inferencing.

Declaration
public bool RdfSchemaInferencing { get; set; }
Property Value
Type Description
System.Boolean
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 sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix ns: <http://www.openrdf.org/config/sail/native#>.
[] a rep:Repository ;
rep:repositoryID "{this.ID}" ;
rdfs:label "{this.Label}" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "openrdf:NativeStore" ;
ns:tripleIndexes "{this.IndexMode}"
]
].

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.

Methods

| Improve this Doc View Source

GetTemplateGraph()

Gets the template graph used to specify the configuration of a Sesame repository.

Declaration
public override IGraph GetTemplateGraph()
Returns
Type Description
IGraph

Template Graph.

Overrides
BaseSesameTemplate.GetTemplateGraph()
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 sr: <http://www.openrdf.org/config/repository/sail#>.
@prefix sail: <http://www.openrdf.org/config/sail#>.
@prefix ns: <http://www.openrdf.org/config/sail/native#>.
[] a rep:Repository ;
rep:repositoryID "{this.ID}" ;
rdfs:label "{this.Label}" ;
rep:repositoryImpl [
rep:repositoryType "openrdf:SailRepository" ;
sr:sailImpl [
sail:sailType "openrdf:NativeStore" ;
ns:tripleIndexes "{this.IndexMode}"
]
].

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.

Implements

IStoreTemplate

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • SesameNativeTemplate(string)
  • Properties
    • DirectTypeHierarchyInferencing
    • IndexMode
    • RdfSchemaInferencing
  • Methods
    • GetTemplateGraph()
  • Implements
  • Extension Methods
Back to top Generated by DocFX