public interface URIFactory
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
String |
getNamespace(String ns_prefix) |
org.openrdf.model.URI |
getURI(String sURI) |
org.openrdf.model.URI |
getURI(String sURI,
boolean useLoadedPrefix)
Loaded prefixes will be used, use
getURI(java.lang.String) if loaded prefixes are not used. |
org.openrdf.model.URI |
getURI(String snamespace,
String localName) |
Map<String,String> |
getURIPrefixes() |
boolean |
loadNamespacePrefix(String prefix,
String reference) |
String |
shortURIasString(org.openrdf.model.URI uri)
Create a string representing the URI using the loaded prefixes if any can be used
|
boolean loadNamespacePrefix(String prefix, String reference) throws SLIB_Ex_Critic
prefix - reference - SLIB_Ex_CriticString getNamespace(String ns_prefix)
ns_prefix - org.openrdf.model.URI getURI(String sURI)
org.openrdf.model.URI getURI(String sURI, boolean useLoadedPrefix)
getURI(java.lang.String) if loaded prefixes are not used.
An URI with a prefix is for instance GO:xxxxx.
Considering that GO is defined as PREFIX for http://go/ the URI will be http://go/xxxxx.sURI - useLoadedPrefix - set to true loaded prefixes will be used.IllegalArgumentException - if the URI is not well formed no error if the prefix do not existsvoid clear()
String shortURIasString(org.openrdf.model.URI uri)
uri - the URICopyright © 2014. All rights reserved.