RDF file not uploaded in virtuoso

余生颓废 提交于 2019-12-24 18:22:36

问题


I am trying to single upload an .rdf file to virtuoso with the ld_dir command, as follows:

ld_dir('/home', 'filename.rdf', 'http://domain.example/TEST');

The operation seems to be done, although it takes 1 msec; which is not logical.. however when I try to view the content of the grapgh using:

SELECT * FROM <http://domain.example/TEST> WHERE {?p ?o ?s} 

it just does not display any results. Performing the same query on another graph brings out results.


回答1:


ld_dir command will only bring RDF file's path into the awareness of Virtuoso. It won't make Virtuoso to start 'ingesting' the RDF file. Here are the commands to be typed inside isql console :

code ld_dir('/home', 'filename.rdf', 'http://domain.example/TEST');
set isolation='uncommitted';
rdf_loader_run();

It is the rdf_loader_run(); command which does the trick. And this command took lots of time (already running since few minutes) on my machine - than just 1ms

Source The complete tutorial on RDF data ingestion in Virtuoso



来源:https://stackoverflow.com/questions/23825374/rdf-file-not-uploaded-in-virtuoso

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!