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