:Options)Load RDF data. Options provides additional processing
options. Defined options are:
- How to handle equivalent blank nodes. If
equivalent blank nodes are shared in the same resource.
- URI that is used for rdf:about="" and other RDF constructs
that are relative to the base uri. Default is the source URL.
- If FileOrList is a list of files, process the input files
using Jobs threads concurrently. Default is the mininum of
the number of cores and the number of inputs. Higher values can be
useful when loading inputs from (slow) network connections. Using 1
(one) does not use separate worker threads.
- Specify the source format explicitly. Normally this is deduced from the
filename extension or the mime-type. The core library understands the
formats xml (RDF/XML) and triples (internal quick load and cache
format). Plugins, such as
library(semweb/turtle) extend the
set of recognised extensions.
- Named graph in which to load the data. It is not allowed to load
two sources into the same named graph. If Graph is unbound,
it is unified to the graph into which the data is loaded. The default
graph is a
file:// URL when loading a file or, if the
specification is a URL, its normalized version without the optional #fragment.
- When to load the file. One of
- Unify Modified with one of
false, do not use or create a cache file.
namespace declarations or Turtle
@prefix prefixes using
if there is no conflict.
true, the message reporting completion is printed using
silent. Otherwise the level is
See also print_message/2.
- Returns the prefixes defined in the source data file as a list of pairs.
- Indicate that the addressed graph may be populated with triples from
multiple sources. This disables caching and avoids that an rdf_load/2
call affecting the specified graph cleans the graph.
Other options are forwarded to process_rdf/3.
rdf_load/2 only loads RDF/XML
from files. It can be extended to load data from other formats and
locations using plugins. The full set of plugins relevant to support
different formats and locations is below:
:- use_module(library(semweb/turtle)). % Turtle and TriG
- See also