public class ResourceCache extends ServiceBase implements Service
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.collections.map.LRUMap |
cache |
protected static int |
MAX_SIZE |
protected static String |
PREFIX_SERIVCE_PARAM |
protected PrefixService |
prefixService |
protected static ResourceCache |
rc |
config| Constructor and Description |
|---|
ResourceCache() |
| Modifier and Type | Method and Description |
|---|---|
static ResourceCache |
get() |
String |
idFor(com.hp.hpl.jena.rdf.model.Resource r)
Determine a shortname ID to use of the URI.
|
void |
postInit() |
com.hp.hpl.jena.rdf.model.Resource |
resourceFromID(String id,
com.hp.hpl.jena.rdf.model.Model model)
Lookup a resource from an ID and ensure it is in the given model (if model is not null).
|
protected com.hp.hpl.jena.rdf.model.Resource |
reverseID(String id,
com.hp.hpl.jena.rdf.model.Model model) |
ResourceValue |
valueFromID(String id)
Lookup a value from an ID
|
Value |
valueFromNode(com.hp.hpl.jena.rdf.model.RDFNode node) |
ResourceValue |
valueFromResource(com.hp.hpl.jena.rdf.model.Resource r) |
getFileParam, getNamedService, getRequiredFileParam, getRequiredIntParam, getRequiredParam, init, postPostInitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, postPostInitprotected static final String PREFIX_SERIVCE_PARAM
protected static final int MAX_SIZE
protected PrefixService prefixService
protected static ResourceCache rc
protected org.apache.commons.collections.map.LRUMap cache
public void postInit()
postInit in interface ServicepostInit in class ServiceBasepublic static ResourceCache get()
public String idFor(com.hp.hpl.jena.rdf.model.Resource r)
public ResourceValue valueFromID(String id)
public com.hp.hpl.jena.rdf.model.Resource resourceFromID(String id, com.hp.hpl.jena.rdf.model.Model model)
public ResourceValue valueFromResource(com.hp.hpl.jena.rdf.model.Resource r)
public Value valueFromNode(com.hp.hpl.jena.rdf.model.RDFNode node)
protected com.hp.hpl.jena.rdf.model.Resource reverseID(String id, com.hp.hpl.jena.rdf.model.Model model)
Copyright © 2014. All rights reserved.