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]read_nquad(+Stream, -Quad)
Read the next quad from Stream as Quad. Stream must have UTF-8 encoding.
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.
Errors
syntax_error(Message) on syntax errors