Click or drag to resize

SesameMemTemplate Class

Template for creating Sesame memory stores.
Inheritance Hierarchy

Namespace:  VDS.RDF.Storage.Management.Provisioning.Sesame
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public class SesameMemTemplate : BaseSesameTemplate

The SesameMemTemplate type exposes the following members.

Constructors
  NameDescription
Public methodSesameMemTemplate
Creates a new memory store template.
Top
Properties
  NameDescription
Public propertyContextNode
Gets the Node used to refer to the store configuration context.
(Inherited from BaseSesameTemplate.)
Public propertyDirectTypeHierarchyInferencing
Gets/Sets whether to enable direct type hierarchy inferencing.
Public propertyID
Gets/Sets the Store ID.
(Inherited from StoreTemplate.)
Public propertyLabel
Gets/Sets the descriptive label for a Sesame store.
(Inherited from BaseSesameTemplate.)
Public propertyPersist
Gets/Sets whether to persist the store.
Public propertyRdfSchemaInferencing
Gets/Sets whether to enable RDF Schema Inferencing.
Public propertySyncDelay
Gets/Sets the sync delay.
Public propertyTemplateDescription
Gets the description of the type of store the template will create.
(Inherited from StoreTemplate.)
Public propertyTemplateName
Gets the name of the type of store the template will create.
(Inherited from StoreTemplate.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetBaseTemplateGraph
Gets the basic template graph which is a graph with all the required namespaces registered and the ID and label filled in.
(Inherited from BaseSesameTemplate.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTemplateGraph
Gets the template graph used to create the store.
(Overrides BaseSesameTemplateGetTemplateGraph.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Gets the string representation of the template which is the Template Name.
(Inherited from StoreTemplate.)
Public methodValidate
Validates the template.
(Inherited from StoreTemplate.)
Top
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 ms: <http://www.openrdf.org/config/sail/memory#>.

[] a rep:Repository ;
rep:repositoryID "{this.ID}" ;
rdfs:label "{this.Label}" ;    
   rep:repositoryImpl [
      rep:repositoryType "openrdf:SailRepository" ;
      sr:sailImpl [
         sail:sailType "openrdf:MemoryStore" ;
         ms:persist {this.Persist} ;
         ms:syncDelay {this.SyncDelay}
      ]
  ].

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.

See Also