6 library(semweb/rdf_ntriples): Process files in the RDF N-Triples format
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Semantic Web Library 3.0
        • library(semweb/rdf_ntriples): Process files in the RDF N-Triples format
          • read_ntriple/2
          • read_nquad/2
          • read_ntuple/2
          • rdf_read_ntriples/3
          • rdf_read_nquads/3
          • rdf_process_ntriples/3
          • rdf_db:rdf_load_stream/3
          • rdf_db:rdf_file_type/2
Availability::- use_module(library(semweb/rdf_ntriples)).
[det]rdf_read_ntriples(+Input, -Triples, +Options)
[det]rdf_read_nquads(+Input, -Quads, +Options)
True when Triples/Quads is a list of triples/quads from Input. Options:
anon_prefix(+AtomOrNode)
Prefix nodeIDs with this atom. If AtomOrNode is the term node(_), bnodes are returned as node(Id).
base_uri(+Atom)
Defines the default anon_prefix as _:<baseuri>_
on_error(Action)
One of warning (default) or error
error_count(-Count)
If on_error is warning, unify Count with th number of errors.
graph(+Graph)
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.
Triples is a list of rdf(Subject, Predicate, Object)
Quads is a list of rdf(Subject, Predicate, Object, Graph)