Package org.eclipse.rdf4j.model.util
Class Namespaces
- java.lang.Object
-
- org.eclipse.rdf4j.model.util.Namespaces
-
-
Field Summary
Fields Modifier and Type Field Description static Set<Namespace>DEFAULT_RDF4JRDFa initial namespaces + additional set of prefixes for RDF4Jstatic Set<Namespace>DEFAULT_RDFA11Set of RDFa 1.1 "initial context" namespaces
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>asMap(Set<Namespace> namespaces)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.static Map<String,String>wrap(Set<Namespace> namespaces)
-
-
-
Field Detail
-
DEFAULT_RDFA11
public static final Set<Namespace> DEFAULT_RDFA11
Set of RDFa 1.1 "initial context" namespaces- See Also:
- RDFa 1.1 context, JDON-lD rdfa1 context
-
-
Method Detail
-
asMap
public static Map<String,String> asMap(Set<Namespace> namespaces)
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
public static Map<String,String> wrap(Set<Namespace> namespaces)
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.
-
-