• 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

8 library(uri): Process URIs
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog C-library
        • library(uri): Process URIs
          • uri_components/2
          • uri_data/3
          • uri_data/4
          • uri_normalized/2
          • iri_normalized/2
          • uri_normalized_iri/2
          • uri_is_global/1
          • uri_resolve/3
          • uri_normalized/3
          • iri_normalized/3
          • uri_normalized_iri/3
          • uri_query_components/2
          • uri_authority_components/2
          • uri_authority_data/3
          • uri_encoded/3
          • uri_iri/2
          • uri_file_name/2
          • uri_edit/3
Availability::- use_module(library(uri)).(can be autoloaded)
Source[det]uri_components(+URI, -Components)
[det]uri_components(-URI, +Components)
Break a URI into its 5 basic components according to the RFC-3986 regular expression:
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
 12            3  4          5       6  7        8 9
Components is a term uri_components(Scheme, Authority, Path, Search, Fragment). If a URI is parsed, i.e., using mode (+,-), components that are not found are left uninstantiated (variable). See uri_data/3 for accessing this structure.
ClioPatria (version V3.1.1-51-ga0b30a5)