niyue

Sesame Repository 配置

In semanticweb on February 6, 2005 at 1:12 PM

Sesame Repository使用id和title来进行标识,id是Sesame中区repository的唯一标识符,而title则是让人容易识别的一个标
记。Sesame
Repository的配置主要是Sail栈的配置,通过Sail栈的配置,可以对repository的持续层存储、是否进行推理、安全和版本问题等等
进行配置。
Sail栈是一种自顶向下的结构,base sail一共有六种:

  • org.openrdf.sesame.sailimpl.rdbms.RdfRepository:
    an non-inferencing driver for relational database storage.
  • org.openrdf.sesame.sailimpl.omm.versioning.VersioningRdbmsSail:
    an inferencing driver for relational database storage that
    supports change tracking.
  • org.openrdf.sesame.sailimpl.memory.RdfRepository:
    a non-inferencing driver for storage in main memory.
  • org.openrdf.sesame.sailimpl.memory.RdfSchemaRepository:
    an inferencing driver for storage in main memory that support RDF and RDF
    Schema entailment.
  • org.openrdf.sesame.sailimpl.nativerdf.NativeRdfRepository:
    a non-inferencing driver for storage directly on disk.

以上六个base sail中,基于关系数据库的sail有六个参数要进行配置,分别是:

  • jdbcDriver
  • jdbcUrl
  • user
  • password
  • dependency-inferencing
  • commitInterval

基于内存的sail有四个参数要进行配置:

  • file
  • dataFormat
  • compressFile
  • syncDelay

基于native disk的sail有一个参数要进行配置:

  • dir

其中蓝色的参数时必须设置的,而紫红色的参数是可选的。

除了base sail以外,还有一个在base sail层之上构造的sail,org.openrdf.sesame.sailimpl.sync.SyncRdfSchemaRepository。
这一sail不是必要的,但是推荐使用这一sail。这一sail层处理了并发访问的问题,如果没有它的话,Sesame遇到多用户同时访问
repository时可能会以不可预测的方式进行工作。

以上主要参考Sesame 1.1用户手册第四章Advanced repository configuration


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: