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)).
Source[semidet]lang_matches(+Lang, +Pattern)
True if Lang matches Pattern. This implements XML language matching conform RFC 4647. Both Lang and Pattern are dash-separated strings of identifiers or (for Pattern) the wildcard *. Identifiers are matched case-insensitive and a * matches any number of identifiers. A short pattern is the same as *.