【问题标题】:How to rename graphdb repository with sparql or rest如何使用 sparql 或 rest 重命名 graphdb 存储库
【发布时间】:2019-01-04 15:37:30
【问题描述】:

我正在尝试以编程方式重命名 ontext graphdb 存储库(通过 SPARQL 查询或休息端点)。

我可以使用以下 SPARQL documented here 删除旧存储库并插入新存储库,但这会删除旧存储库中的所有数据

PREFIX sys:<http://www.openrdf.org/config/repository#>
DELETE { GRAPH ?g { ?repository sys:repositoryID ?old_name } }
INSERT { GRAPH ?g { ?repository sys:repositoryID ?new_name } }
WHERE {
  GRAPH ?g { ?repository a sys:Repository . }
  GRAPH ?g { ?repository sys:repositoryID ?old_name . }
  FILTER( ?old_name = "old_repository_name" ) .
  BIND( "new_repository_name" AS ?new_name ) . 
}

我可以手动将索引文件复制到这个新的存储库位置,但是是否有内置的 graphdb 功能可以做到这一点。

【问题讨论】:

    标签: graphdb


    【解决方案1】:

    您分享的链接是针对 6.6 文档的,这是 GraphDB 的一个非常旧的版本。在较新版本的 GraphDB 中,您可以从 Workbench Edit 存储库表单中重命名存储库。

    http://graphdb.ontotext.com/documentation/free/configuring-a-repository.html?highlight=rename#configuring-a-repository-reconfigure-a-repository-using-the-workbench

    请注意,这也会重新初始化存储库。

    【讨论】:

      猜你喜欢
      • 2020-12-13
      • 1970-01-01
      • 2021-09-30
      • 2014-10-02
      • 2023-04-02
      • 2013-03-04
      • 2011-08-10
      • 2012-12-04
      • 1970-01-01
      相关资源
      最近更新 更多