问题
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