- library
- semweb
- rdf_db.pl -- Core RDF database
- rdf_equal/2
- lang_equal/2
- lang_matches/2
- rdf/3
- rdf/4
- rdf_has/3
- rdf_has/4
- rdf_reachable/3
- rdf_reachable/5
- rdf_subject/1
- rdf_resource/1
- rdf_assert/3
- rdf_assert/4
- rdf_retractall/3
- rdf_retractall/4
- rdf_update/4
- rdf_update/5
- rdf_member_property/2
- rdf_node/1
- rdf_bnode/1
- rdf_is_bnode/1
- rdf_is_resource/1
- rdf_is_literal/1
- rdf_current_literal/1
- rdf_literal_value/2
- rdf_source_location/2
- rdf_create_gc_thread/0
- rdf_gc/0
- rdf_statistics/1
- rdf_current_predicate/1
- rdf_predicate_property/2
- rdf_set_predicate/2
- rdf_snapshot/1
- rdf_delete_snapshot/1
- rdf_current_snapshot/1
- rdf_transaction/1
- rdf_transaction/2
- rdf_transaction/3
- rdf_active_transaction/1
- rdf_monitor/2
- rdf_warm_indexes/0
- rdf_warm_indexes/1
- rdf_update_duplicates/0
- rdf_update_duplicates_thread/0
- rdf_update_duplicates/0
- rdf_save_db/1
- rdf_save_db/2
- rdf_load_db/1
- rdf_load/1
- rdf_load/2
- rdf_file_type/2
- rdf_load_stream/3
- rdf_unload/1
- rdf_unload_graph/1
- rdf_create_graph/1
- rdf_graph/1
- rdf_source/2
- rdf_source/1
- rdf_make/0
- rdf_graph_property/2
- rdf_set_graph/2
- rdf_reset_db/0
- rdf_save/1
- rdf_save/2
- rdf_save_header/2
- rdf_graph_prefixes/2
- rdf_graph_prefixes/3
- rdf_save_footer/1
- rdf_save_subject/3
- rdf_compare/3
- rdf_match_label/3
- rdf_split_url/3
- rdf_url_namespace/2
- rdf_new_literal_map/1
- rdf_destroy_literal_map/1
- rdf_reset_literal_map/1
- rdf_insert_literal_map/3
- rdf_insert_literal_map/4
- rdf_delete_literal_map/2
- rdf_delete_literal_map/3
- rdf_find_literal_map/3
- rdf_keys_in_literal_map/3
- rdf_statistics_literal_map/2
- rdf_version/1
- rdf_set/1
- rdf_md5/2
- rdf_generation/1
- rdf_estimate_complexity/4
- rdf_debug/1
- rdf_atom_md5/3
- rdf_prefixes.pl -- RDF prefixes management
- rdfs.pl -- RDFS handling
- rdf11.pl -- RDF 1.1 API
- rdf_persistency.pl -- RDF persistency plugin
- rdf_litindex.pl -- Search literals
- rdf_ntriples.pl -- Process files in the RDF N-Triples format
- sparql_client.pl -- SPARQL client library
- rdf_http_plugin.pl -- RDF HTTP Plugin
- rdf_turtle_write.pl -- Turtle - Terse RDF Triple Language writer
- turtle.pl -- Turtle: Terse RDF Triple Language
- rdf_library.pl -- RDF Library Manager
- rdf_portray.pl -- Portray RDF resources
- rdf_sandbox.pl -- Declare RDF API sandbox-safe
- rdf_zlib_plugin.pl -- RDF compressed-data plugin
- rdf_cache.pl -- Cache RDF triples
- rdf_db.pl -- Core RDF database
- semweb
- rdf_load(+FileOrList, :Options) is det
- Load RDF data. Options provides additional processing options.
Defined options are:
- blank_nodes(+ShareMode)
- How to handle equivalent blank nodes. If
share
(default), equivalent blank nodes are shared in the same resource. - base_uri(+URI)
- URI that is used for rdf:about="" and other RDF constructs that are relative to the base uri. Default is the source URL.
- concurrent(+Jobs)
- 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.
- format(+Format)
- 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.
- graph(?Graph)
- 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. - if(Condition)
- When to load the file. One of
true
,changed
(default) ornot_loaded
. - modified(-Modified)
- Unify Modified with one of
not_modified
,cached(File)
,last_modified(Stamp)
orunknown
. - cache(Bool)
- If
false
, do not use or create a cache file. - register_namespaces(Bool)
- If
true
(defaultfalse
), registerxmlns
namespace declarations or Turtle@prefix
prefixes using rdf_register_prefix/3 if there is no conflict. - silent(+Bool)
- If
true
, the message reporting completion is printed using levelsilent
. Otherwise the level isinformational
. See also print_message/2. - prefixes(-Prefixes)
- Returns the prefixes defined in the source data file as a list of pairs.
- multifile +Boolean
- 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. By default, 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 :- use_module(library(semweb/rdf_ntriples)). :- use_module(library(semweb/rdf_zlib_plugin)). :- use_module(library(semweb/rdf_http_plugin)). :- use_module(library(http/http_ssl_plugin)).
- See also
- - rdf_open_hook/3, library(semweb/rdf_persistency) and library(semweb/rdf_cache)