3.3.10 Prefix Handling
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog Semantic Web Library 3.0
        • Two RDF APIs
          • library(semweb/rdf_db): The RDF database
            • Prefix Handling
              • rdf_current_prefix/2
              • rdf_register_prefix/2
              • rdf_register_prefix/3
              • rdf_equal/2
              • rdf_global_id/2
              • rdf_global_object/2
              • rdf_global_term/2
Availability::- use_module(library(semweb/rdf_db)).
Source[det]rdf_global_term(+TermIn, :GlobalTerm)
Performs rdf_global_id/2 on predixed IRIs and rdf_global_object/2 on RDF literals, by recursively analysing the term. Note that the predicate is a meta-predicate on the output argument. This is necessary to get the module context while the first argument may be of the form (:)/2.

Terms of the form Prefix:Local that appear in TermIn for which Prefix is not defined are not replaced. Unlike rdf_global_id/2 and rdf_global_object/2, no error is raised.