Is it possible to import an rdf file from a URL into Swish?
I.e. something like:
myload:- load_rdf('www.myrdf.com').
Then I could query ?-rdf(A,B,C)
Is it possible to import an rdf file from a URL into Swish?
I.e. something like:
myload:- load_rdf('www.myrdf.com').
Then I could query ?-rdf(A,B,C)
With the Semweb
package and using Swi-Prolog locally, it's easy:
use_module(library(semweb/rdf11)).
use_module(library(semweb/rdf_http_plugin)).
rdf_load('http://dbpedia.org/resource/Amsterdam').
% Parsed "http://dbpedia.org/resource/Amsterdam" in 0.13 sec; 5,120 triples