niyue

Sesame Repository 配置

In semanticweb on 2月 6, 2005 at 1:12 下午

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


发表评论

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

WordPress.com 徽标

您正在使用您的 WordPress.com 账号评论。 注销 /  更改 )

Twitter picture

您正在使用您的 Twitter 账号评论。 注销 /  更改 )

Facebook photo

您正在使用您的 Facebook 账号评论。 注销 /  更改 )

Connecting to %s

%d 博主赞过: