at.newmedialab.ldpath.backend.linkeddata
Class LDPersistentBackend
java.lang.Object
at.newmedialab.ldpath.backend.sesame.AbstractSesameBackend
at.newmedialab.ldpath.backend.sesame.SesameRepositoryBackend
at.newmedialab.ldpath.backend.linkeddata.AbstractLDBackend
at.newmedialab.ldpath.backend.linkeddata.LDPersistentBackend
- All Implemented Interfaces:
- LDCacheProvider, at.newmedialab.ldpath.api.backend.RDFBackend<org.openrdf.model.Value>
public class LDPersistentBackend
- extends AbstractLDBackend
A Linked Data backend with persistent caching of the retrieved data. All data is read and stored in the directory
passed as constructor argument.
Author: Sebastian Schaffert
|
Constructor Summary |
LDPersistentBackend(File dataDirectory)
Create a persistent linked data backend storing the cache data in the directory passed as argument. |
| Methods inherited from class at.newmedialab.ldpath.backend.sesame.AbstractSesameBackend |
booleanValue, createLiteralInternal, createLiteralInternal, createURIInternal, dateTimeValue, dateValue, debugType, decimalValue, doubleValue, floatValue, getLiteralLanguage, getLiteralType, getThreadPool, integerValue, intValue, isBlank, isLiteral, isURI, listObjectsInternal, listSubjectsInternal, longValue, stringValue, supportsThreading, timeValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDPersistentBackend
public LDPersistentBackend(File dataDirectory)
throws IOException
- Create a persistent linked data backend storing the cache data in the directory passed as argument.
The directory will be created if it does not exist.
- Parameters:
dataDirectory -
- Throws:
IOException
shutdown
public void shutdown()
getMetadataRepository
public Map<String,CacheEntry> getMetadataRepository()
- /**
Return a map that can be used to store caching metadata about resources. The LDCacheProvider should take care
of persisting the metadata if desired.
- Returns:
- a map for storing caching metadata
Copyright © 2012-2013 Salzburg Research. All Rights Reserved.