Class Namespaces


  • public class Namespaces
    extends Object
    A utility class to perform operations on Namespaces.
    Author:
    Peter Ansell
    • Field Detail

      • DEFAULT_RDFA11

        public static final Set<Namespace> DEFAULT_RDFA11
        Set of RDFa 1.1 "initial context" namespaces
      • DEFAULT_RDF4J

        public static final Set<Namespace> DEFAULT_RDF4J
        RDFa initial namespaces + additional set of prefixes for RDF4J
    • Method Detail

      • wrap

        public static Map<String,​String> wrap​(Set<Namespace> namespaces)
        Wraps the given Set of Namespaces as a Map of prefix to URI mappings, so that it can be used where a Map is required by the API.
        NOTE: The Map returned by this method is not synchronized.
        Parameters:
        namespaces - The Set to wrap.
        Returns:
        A Map of prefix to URI mappings which is backed by the given Set of Namespaces.