且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何以编程方式上传到Dydra时防止三元组混淆?

更新时间:2022-06-19 09:53:21

复制数据的一种简单得多的方法(除了使用CONSTRUCT查询而不是SELECT,就像我在评论中提到的一样)就是使用Dydra本身可以直接访问您的芝麻端点,例如通过SERVICE子句.

A far simpler way to copy your data over (apart from using a CONSTRUCT query instead of a SELECT, like I mentioned in the comment) is simply to have Dydra itself directly access your Sesame endpoint, for example via a SERVICE-clause.

在Dydra数据库上执行以下操作,然后(一段时间后,具体取决于芝麻数据库的大小),所有内容都将被复制:

Execute the following on your Dydra database, and (after some time, depending on how large your Sesame database is), everything will be copied over:

   INSERT { ?s ?p ?o }
   WHERE { 
      SERVICE <http://my.ip.ad.here:8080/openrdf-sesame/repositories/rep_name> 
      { ?s ?p ?o }
   }

如果上述方法在Dydra上不起作用,则可以选择使用URI http://my.ip.ad.here:8080/openrdf-sesame/repositories/rep_name/statements直接从芝麻商店中访问RDF语句.假定Dydra具有上载功能,您可以在其中提供RDF文档的URL,则只需在上面的URI中提供它,它就可以加载它.

If the above doesn't work on Dydra, you can alternatively just directly access the RDF statements from your Sesame store by using the URI http://my.ip.ad.here:8080/openrdf-sesame/repositories/rep_name/statements. Assuming Dydra has an upload-feature where you can provide the URL of an RDF document, you can simply provide it the above URI and it should be able to load it.