SWI-Prolog RDF parser
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog RDF parser
        • Introduction
        • Parsing RDF in Prolog
        • Predicates for parsing RDF/XML
        • Writing RDF graphs
        • Testing the RDF translator
          • suite/1
          • passed/1
          • test/0
        • Metrics

5 Testing the RDF translator

A test-suite and driver program are provided by rdf_test.pl in the source directory. To run these tests, load this file into Prolog in the distribution directory. The test files are in the directory suite and the proper output in suite/ok. Predicates provided by rdf_test.pl:

suite(+N)
Run test N using the file suite/tN.rdf and display the RDF source, the intermediate Prolog representation and the resulting triples.
passed(+N)
Process suite/tN.rdf and store the resulting triples in suite/ok/tN.pl for later validation by test/0.
test
Run all tests and classify the result.