|
||||||||||
| 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 | |
|---|---|
void |
addNamespace(String namespace,
String partialUri)
Adds a new namespace mapping, if no mapping already exists. |
Set<Map.Entry<String,String>> |
getNameEntries()
Returns the Names mapping entry set. |
QName |
getQName(String uri)
Parses a string and finds the last # or / and treats the characters before that as the namespace URI and the characters after it as the local part. |
void |
load(Graph graph)
Loads namespaces from the graph. |
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.
void addNamespace(String namespace,
String partialUri)
throws NamespaceException
namespace - the shortened name to add, e.g. rdf.partialUri - the URI to map, e.g. http://www.w3.org/1999/02/22-rdf-syntax-ns#.
NamespaceExceptionSet<Map.Entry<String,String>> getNameEntries()
QName getQName(String uri)
uri - the uri to parse
void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||