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 URIFactory
SLIB_Ex_Critic
public String getNamespace(String ns_prefix)
getNamespace
in interface URIFactory
public void clear()
clear
in interface URIFactory
public org.openrdf.model.URI getURI(String sURI)
getURI
in interface URIFactory
public org.openrdf.model.URI getURI(String snamespace, String sURI)
getURI
in interface URIFactory
public org.openrdf.model.URI getURI(String sURI, boolean useLoadedPrefix)
URIFactory
URIFactory.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 URIFactory
useLoadedPrefix
- set to true loaded prefixes will be used.public String shortURIasString(org.openrdf.model.URI uri)
URIFactory
shortURIasString
in interface URIFactory
uri
- the URIpublic Map<String,String> getURIPrefixes()
getURIPrefixes
in interface URIFactory
Copyright © 2014. All rights reserved.