3.3.11 Miscellaneous predicates
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Semantic Web Library 3.0
        • Two RDF APIs
          • library(semweb/rdf_db): The RDF database
            • Miscellaneous predicates
              • rdf_bnode/1
              • rdf_source_location/2
              • rdf_generation/1
              • rdf_estimate_complexity/4
              • rdf_statistics/1
              • rdf_match_label/3
              • lang_matches/2
              • lang_equal/2
              • rdf_reset_db/0
              • rdf_version/1
Availability::- use_module(library(semweb/rdf_db)).
Sourcerdf_reset_db
Remove all triples from the RDF database and reset all its statistics.
bug
This predicate checks for active queries, but this check is not properly synchronized and therefore the use of this predicate is unsafe in multi-threaded contexts. It is mainly used to run functionality tests that need to start with an empty database.