• 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

4.17.5 Adding IRI schemas
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Input and output
          • Adding IRI schemas
            • register_iri_scheme/3
    • Packages
Availability:built-in
Sourceregister_iri_scheme(+Scheme, :Hook, +Options)
Register Hook to be called by all file handling predicates if a name that starts with Scheme:// is encountered. The Hook is called by call/4 using the operation, the IRI and a term that receives the result of the operation. The following operations are defined:
open(Mode,Options)
Called by open/3,4. The result argument must be unified with a stream.
access(Mode)
Called by access_file/2, exists_file/1 (Mode is file) and exists_directory/1 (Mode is directory). The result argument must be unified with a boolean.
time
Called by time_file/2. The result must be unified with a time stamp.
size
Called by size_file/2. The result must be unified with an integer representing the size in bytes.
ClioPatria (version V3.1.1-51-ga0b30a5)