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)).
- read_ntriple(+Stream, -Triple) is det
- Read the next triple from Stream as Triple. Stream must have UTF-8 encoding.
- read_nquad(+Stream, -Quad) is det
- Read the next quad from Stream as Quad. Stream must have UTF-8 encoding.
- read_ntuple(+Stream, -Tuple) is det
- Read the next triple or quad from Stream as Tuple. Tuple is one
of the terms below. See read_ntriple/2 and read_nquad/2 for
- rdf_read_ntriples(+Input, -Triples, +Options) is det
- rdf_read_nquads(+Input, -Quads, +Options) is det
- True when Triples/Quads is a list of triples/quads from Input.
- Prefix nodeIDs with this atom. If AtomOrNode is the term
node(_), bnodes are returned as
- Defines the default anon_prefix as _:<baseuri>_
- One of
warning, unify Count with th number of errors.
- For rdf_read_nquads/3, this defines the graph associated to triples loaded from the input. For rdf_read_ntriples/3 this opion is ignored.
- rdf_process_ntriples(+Input, :CallBack, +Options)
- Call-back interface, compatible with the other triple readers.
In addition to the options from rdf_read_ntriples/3, this
processes the option
- rdf_db:rdf_load_stream(+Format, +Stream, :Options) is semidet[multifile]
- Plugin rule that supports loading the
- rdf_db:rdf_file_type(+Extension, -Format)[multifile]
- Bind the ntriples reader to files with the extensions
The following predicates are exported, but not or incorrectly documented.