|
||||||||||
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 | |
---|---|
String |
getFullUri(String partial)
Returns the URI that is mapped to the prefix or null if the prefix is not mapped. |
Set<Map.Entry<String,String>> |
getNameEntries()
Returns the Names mapping entry set. |
String |
getPrefix(URIReference resource)
Returns the prefix that is mapped to the resource 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 getPrefix(URIReference resource)
resource
- prefix to look up.
String getFullUri(String partial)
partial
- prefix to lookup.
Set<Map.Entry<String,String>> getNameEntries()
void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |