public class NameMap extends HashMap<String,org.openrdf.model.URI>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static org.openrdf.model.URI |
AMBIGUOUS |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.openrdf.model.Value value) |
void |
addAll(Graph graph) |
void |
addShapes(Collection<Shape> shapeList) |
void |
addStaticFields(Class<?> type) |
static void |
appendAll(StringBuilder builder,
NamespaceManager nsManager,
Set<org.openrdf.model.URI> set)
A helper method that appends all the URIs from the given set to a StringBuilder, using
CURIE values where possible.
|
org.openrdf.model.URI |
get(String name)
Get the unique URI with a given local name.
|
Set<org.openrdf.model.URI> |
getAll(String name)
Get all URIs with a given local name.
|
org.openrdf.model.URI |
put(String name,
org.openrdf.model.URI uri) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic NameMap()
public NameMap(Graph graph)
public void addStaticFields(Class<?> type)
public void addAll(Graph graph)
public void addShapes(Collection<Shape> shapeList)
public void add(org.openrdf.model.Value value)
public org.openrdf.model.URI put(String name, org.openrdf.model.URI uri)
public Set<org.openrdf.model.URI> getAll(String name)
name - The local name.public static void appendAll(StringBuilder builder, NamespaceManager nsManager, Set<org.openrdf.model.URI> set)
builder - The StringBuilder to which URI values will be appended.nsManager - The NamespaceManager used to lookup namespace prefixes for CURIE valuesset - The URI values to be appended to the StringBuilder.public org.openrdf.model.URI get(String name)
getAll to find all URIs with the the supplied name.name - The local nameCopyright © 2019. All rights reserved.