4.5.1 Literal maps: Creating additional indices on literals
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Semantic Web Library 3.0
        • Plugin modules for rdf_db
          • library(semweb/rdf_litindex): Indexing words in literals
            • Literal maps: Creating additional indices on literals
              • rdf_new_literal_map/1
              • rdf_destroy_literal_map/1
              • rdf_reset_literal_map/1
              • rdf_insert_literal_map/3
              • rdf_insert_literal_map/4
              • rdf_delete_literal_map/2
              • rdf_delete_literal_map/2
              • rdf_find_literal_map/3
              • rdf_keys_in_literal_map/3
              • rdf_statistics_literal_map/2
Availability::- use_module(library(semweb/rdf_litindex)).
rdf_insert_literal_map(+Map, +Key, +Value, -KeyCount)
As rdf_insert_literal_map/3. In addition, if Key is a new key in Map, unify KeyCount with the number of keys in Map. This serves two purposes. Derived maps, such as the stem and metaphone maps need to know about new keys and it avoids additional foreign calls for doing the progress in rdf_litindex.pl.