/usr/local/lib/swipl/library/ext/semweb/semweb/rdf_prefixes.pl
All Application Manual Name SummaryHelp

  • semweb
    • semweb
      • rdf_db.pl -- Core RDF database
      • rdf_prefixes.pl -- RDF prefixes management
        • rdf_empty_prefix_cache/2
        • rdf_current_prefix/2
        • rdf_prefix/2
        • rdf_register_prefix/2
        • rdf_register_prefix/3
        • rdf_unregister_prefix/1
        • rdf_current_ns/2
        • rdf_register_ns/2
        • rdf_register_ns/3
        • register_file_prefixes/1
        • rdf_global_id/2
        • rdf_global_object/2
        • rdf_global_term/2
        • rdf_meta/1
        • ns/2
      • rdf_edit.pl -- RDF edit layer
      • rdfs.pl -- RDFS handling
 rdf_current_prefix(:Alias, ?URI) is nondet
Query predefined prefixes and prefixes defined with rdf_register_prefix/2 and local prefixes defined with rdf_prefix/2. If Alias is unbound and one URI is the prefix of another, the longest is returned first. This allows turning a resource into a prefix/local couple using the simple enumeration below. See rdf_global_id/2.
rdf_current_prefix(Prefix, Expansion),
atom_concat(Expansion, Local, URI),