public class LinkedDataCache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LinkedDataCache.DataStore |
class |
LinkedDataCache.SailInserter |
| Modifier and Type | Field and Description |
|---|---|
static org.openrdf.model.IRI |
CACHE_GRAPH |
static org.openrdf.model.IRI |
CACHE_MEMO |
static org.openrdf.model.IRI |
CACHE_REDIRECTSTO |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
static LinkedDataCache |
createDefault(org.openrdf.sail.Sail sail)
Constructs a cache with the default settings, dereferencers, and rdfizers.
|
java.lang.String |
getAcceptHeader() |
boolean |
getDereferenceContexts() |
boolean |
getDereferenceObjects() |
boolean |
getDereferencePredicates() |
boolean |
getDereferenceSubjects() |
org.openrdf.sail.SailConnection |
getSailConnection() |
boolean |
isAutoCommit() |
CacheEntry.Status |
peek(org.openrdf.model.IRI iri,
org.openrdf.sail.SailConnection sc)
Retrieves caching metadata for a IRI if it exists, but does not dereference the IRI or modify the cache.
|
CacheEntry.Status |
retrieve(org.openrdf.model.IRI iri,
org.openrdf.sail.SailConnection sc)
Retrieves caching metadata for a URI, possibly dereferencing a document from the Web first.
|
void |
setAutoCommit(boolean autoCommit) |
void |
setDataStore(LinkedDataCache.DataStore dataStore) |
void |
setDereferenceContexts(boolean flag) |
void |
setDereferenceObjects(boolean flag) |
void |
setDereferencePredicates(boolean flag) |
void |
setDereferenceSubjects(boolean flag) |
void |
setExpirationPolicy(CacheExpirationPolicy expirationPolicy) |
public static final org.openrdf.model.IRI CACHE_MEMO
public static final org.openrdf.model.IRI CACHE_REDIRECTSTO
public static final org.openrdf.model.IRI CACHE_GRAPH
public static LinkedDataCache createDefault(org.openrdf.sail.Sail sail)
sail - the underlying triple store for the cachepublic void clear()
public void close()
public org.openrdf.sail.SailConnection getSailConnection()
public void setDataStore(LinkedDataCache.DataStore dataStore)
public java.lang.String getAcceptHeader()
public CacheEntry.Status peek(org.openrdf.model.IRI iri, org.openrdf.sail.SailConnection sc) throws java.io.IOException
iri - the IRI to look upsc - a connection to a Sailjava.io.IOExceptionpublic CacheEntry.Status retrieve(org.openrdf.model.IRI iri, org.openrdf.sail.SailConnection sc) throws java.io.IOException
iri - the IRI to look up and possibly dereferencesc - a connection to a Sailjava.io.IOExceptionpublic boolean isAutoCommit()
public void setAutoCommit(boolean autoCommit)
autoCommit - whether the cache should commit to the triple store after each Web request
(true by default)public void setExpirationPolicy(CacheExpirationPolicy expirationPolicy)
expirationPolicy - the rule by which the cache determines whether a cache entry has expired.
If an entry has expired, the cache will issue a new request in order to refresh it.public boolean getDereferenceSubjects()
public void setDereferenceSubjects(boolean flag)
public boolean getDereferencePredicates()
public void setDereferencePredicates(boolean flag)
public boolean getDereferenceObjects()
public void setDereferenceObjects(boolean flag)
public boolean getDereferenceContexts()
public void setDereferenceContexts(boolean flag)
Copyright © 2007-2016. All Rights Reserved.