Package org.eclipse.rdf4j.model.util
Class Namespaces
java.lang.Object
org.eclipse.rdf4j.model.util.Namespaces
A utility class to perform operations on
Namespaces.- Author:
- Peter Ansell
-
Field Summary
FieldsModifier and TypeFieldDescriptionRDFa initial namespaces + additional set of prefixes for RDF4JSet of RDFa 1.1 "initial context" namespaces -
Method Summary
Modifier and TypeMethodDescriptionConverts a set ofNamespaces 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 ofNamespaces 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 givenSetofNamespaces as aMapof prefix to URI mappings, so that it can be used where aMapis 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.
-