public interface NamespaceSupport
Model
change the mapping in the surrounding
ModelSet
if any. As namespaces do not really exist *in RDF*, only in
syntaxes, there are no definitive specifications on this subject.
This API is modeled after the OpenRDF 2.0 API.
Discussion about this interfaces at http://issues.semweb4j.org/RTGO-20Modifier and Type | Method and Description |
---|---|
String |
getNamespace(String prefix) |
Map<String,String> |
getNamespaces()
Get all namespaces as a map of prefix to namespace.
|
void |
removeNamespace(String prefix)
Throws no exception if the prefix was not present.
|
void |
setNamespace(String prefix,
String namespaceURI) |
String getNamespace(String prefix)
prefix
- Map<String,String> getNamespaces()
void removeNamespace(String prefix)
prefix
- void setNamespace(String prefix, String namespaceURI) throws IllegalArgumentException
prefix
- namespaceURI
- IllegalArgumentException
- if the given namespaceURI is not a valid URI in this
environment.Copyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.