• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

SWI-Prolog RDF parser
All Application Manual Name SummaryHelp

  • 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.

ClioPatria (version V3.1.1-51-ga0b30a5)