The library(semweb/rdf_ntriples) provides a fast reader
for the RDF N-Triples and N-Quads format. N-Triples is a simple format,
originally used to support the W3C RDF test suites. The current format
has been extended and is a subset of the Turtle format (see
library(semweb/turtle)).
The API of this library is almost identical to library(semweb/turtle).
This module provides a plugin into rdf_load/2,
making this predicate support the format ntriples and nquads.
| Triple | is a term triple(Subject,Predicate,Object).
Arguments follow the normal conventions of the RDF libraries. NodeID
elements are mapped to node(Id). If end-of-file is reached, Triple
is unified with
end_of_file. |
syntax_error(Message) on syntax errors| Quad | is a term quad(Subject,Predicate,Object,Graph).
Arguments follow the normal conventions of the RDF libraries. NodeID
elements are mapped to node(Id). If end-of-file is reached, Quad
is unified with
end_of_file. |
syntax_error(Message) on syntax errors
triple(Subject,Predicate,Object)quad(Subject,Predicate,Object,Graph).node(_), bnodes are returned as node(Id).:<baseuri>_warning (default) or erroron_error is warning, unify Count
with th number of errors.| Triples | is a list of rdf(Subject, Predicate, Object) |
| Quads | is a list of rdf(Subject, Predicate, Object, Graph) |
graph(Graph).
| CallBack | is called as call(CallBack, Triples, Graph),
where Triples is a list holding a single rdf(S,P,O) triple.
Graph is passed from the graph option and unbound if this
option is omitted. |
ntriples and nquads
formats.nt,
ntriples and nquads.