Did you know ... Search Documentation:
PublicShow source

Re-exported predicates

The following predicates are re-exported from other modules

Source rdf_read_turtle(+Input, -Triples, +Options)
Read a stream or file into a set of triples or quadruples (if faced with TriG input) of the format
rdf(Subject, Predicate, Object [, Graph])

The representation is consistent with the SWI-Prolog RDF/XML and ntriples parsers. Provided options are:

Initial base URI. Defaults to file://<file> for loading files.
Blank nodes are generated as <Prefix>1, <Prefix>2, etc. If Prefix is not an atom blank nodes are generated as node(1), node(2), ...
One of auto (default), turtle or trig. The auto mode switches to TriG format of there is a { before the first triple. Finally, of the format is explicitly stated as turtle and the file appears to be a TriG file, a warning is printed and the data is loaded while ignoring the graphs.
Officially, Turtle resources are IRIs. Quite a few applications however send URIs. By default we do URI->IRI mapping because this rarely causes errors. To force strictly conforming mode, pass iri.
Return encountered prefix declarations as a list of Alias-URI
Same as prefixes(Pairs). Compatibility to rdf_load/2.
Base URI used for processing the data. Unified to [] if there is no base-uri.
In warning (default), print the error and continue parsing the remainder of the file. If error, abort with an exception on the first error encountered.
If on_error(warning) is active, this option cane be used to retrieve the number of generated errors.
Input- is one of stream(Stream), atom(Atom), a http, https or file url or a filename specification as accepted by absolute_file_name/3.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 rdf_load_turtle(Arg1, Arg2, Arg3)
 rdf_process_turtle(Arg1, Arg2, Arg3)