Package org.eclipse.rdf4j.model.util
Class Namespaces
java.lang.Object
org.eclipse.rdf4j.model.util.Namespaces
A utility class to perform operations on
Namespace
s.- Author:
- Peter Ansell
-
Field Summary
Modifier and TypeFieldDescriptionRDFa initial namespaces + additional set of prefixes for RDF4JSet of RDFa 1.1 "initial context" namespaces -
Method Summary
Modifier and TypeMethodDescriptionConverts a set ofNamespace
s into a map containing theNamespace.getPrefix()
strings as keys, with theNamespace.getName()
strings as values in the map for each namespace in the given set.
-
Field Details
-
DEFAULT_RDFA11
Set of RDFa 1.1 "initial context" namespaces- See Also:
-
DEFAULT_RDF4J
RDFa initial namespaces + additional set of prefixes for RDF4J
-
-
Method Details
-
asMap
Converts a set ofNamespace
s into a map containing theNamespace.getPrefix()
strings as keys, with theNamespace.getName()
strings as values in the map for each namespace in the given set. -
wrap
Wraps the givenSet
ofNamespace
s as aMap
of prefix to URI mappings, so that it can be used where aMap
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
Namespace
s.
-