| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RdfNamespaceMap
Contains mappings between namespaces and partial URIs.
| Method Summary | |
|---|---|
|  Set<Map.Entry<String,String>> | getNameEntries()Returns the Names mapping entry set. | 
|  String | getNamespace(URIReference resource)Returns the namespace that is mapped to the resource URI (prefix), or null if the URI is not mapped. | 
|  void | load(Graph graph)Loads namespaces from the graph. | 
|  String | replaceNamespace(URIReference resource)Returns a string representing the resource URI with its URI prefix replaced by the mapped namespace. | 
|  void | reset()Reset the name and uri mappings. | 
| Method Detail | 
|---|
void load(Graph graph)
          throws GraphException
graph - Graph containing URIs to load from.
GraphException - If the graph cannot be read.
String replaceNamespace(URIReference resource)
                        throws NamespaceException
resource - URIReference resource URI
NamespaceException - If there is no mapping for the partial resource URI.String getNamespace(URIReference resource)
resource - URIReference resource URI to look up.
Set<Map.Entry<String,String>> getNameEntries()
void reset()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||