![](/img/trans.png)
[英]Why is adding an RDF dump (InputStream) to a RDF4J repository so slow (in Java)?
[英]How can I use the RDF4J console to programmatically create a repository?
只需將對話框的預期輸入放在腳本中,每行一個。 例如,創建一個名為“test-script”的內存存儲庫,對它發起查詢,然后關閉它:
create memory.
test-script
testing using a script
10000
true
0
org.eclipse.rdf4j.query.algebra.evaluation.impl.StrictEvaluationStrategyFactory
open test-script.
select * where {?s ?p ?o }.
close.
quit.
至於通過 REST API 創建存儲庫,這是可能的,但文檔不足(主要是因為它很麻煩)。 如果您需要以編程方式訪問此類內容,則使用RDF4J Java API 會容易得多。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.