• 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

3.3.10 Prefix Handling
All Application Manual Name SummaryHelp

  • 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_register_prefix(+Prefix, +URI)
[det]rdf_register_prefix(+Prefix, +URI, +Options)
Register Prefix as an abbreviation for URI. Options:
force(Boolean)
If true, replace existing namespace alias. Please note that replacing a namespace is dangerous as namespaces affect preprocessing. Make sure all code that depends on a namespace is compiled after changing the registration.
keep(Boolean)
If true and Alias is already defined, keep the original binding for Prefix and succeed silently.

Without options, an attempt to redefine an alias raises a permission error.

Predefined prefixes are:

Alias IRI prefix
dchttp://purl.org/dc/elements/1.1/
dctermshttp://purl.org/dc/terms/
eorhttp://dublincore.org/2000/03/13/eor\#
foafhttp://xmlns.com/foaf/0.1/
owlhttp://www.w3.org/2002/07/owl\#
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns\#
rdfshttp://www.w3.org/2000/01/rdf-schema\#
serqlhttp://www.openrdf.org/schema/serql\#
skoshttp://www.w3.org/2004/02/skos/core\#
voidhttp://rdfs.org/ns/void\#
xsdhttp://www.w3.org/2001/XMLSchema\#
ClioPatria (version V3.1.1-51-ga0b30a5)