public final class URIFactoryMemory extends Object implements URIFactory
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
String |
getNamespace(String ns_prefix) |
static URIFactoryMemory |
getSingleton()
Access to the in-memory URI Factory.
|
org.openrdf.model.URI |
getURI(String sURI) |
org.openrdf.model.URI |
getURI(String sURI,
boolean useLoadedPrefix)
Loaded prefixes will be used, use
URIFactory.getURI(java.lang.String) if loaded prefixes are not used. |
org.openrdf.model.URI |
getURI(String snamespace,
String sURI) |
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
|
public static URIFactoryMemory getSingleton()
public boolean loadNamespacePrefix(String prefix, String reference) throws SLIB_Ex_Critic
loadNamespacePrefix in interface URIFactorySLIB_Ex_Criticpublic String getNamespace(String ns_prefix)
getNamespace in interface URIFactorypublic void clear()
clear in interface URIFactorypublic org.openrdf.model.URI getURI(String sURI)
getURI in interface URIFactorypublic org.openrdf.model.URI getURI(String snamespace, String sURI)
getURI in interface URIFactorypublic org.openrdf.model.URI getURI(String sURI, boolean useLoadedPrefix)
URIFactoryURIFactory.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.getURI in interface URIFactoryuseLoadedPrefix - set to true loaded prefixes will be used.public String shortURIasString(org.openrdf.model.URI uri)
URIFactoryshortURIasString in interface URIFactoryuri - the URIpublic Map<String,String> getURIPrefixes()
getURIPrefixes in interface URIFactoryCopyright © 2014. All rights reserved.