Package org.aksw.limes.core.io.cache
Class ACache
- java.lang.Object
-
- org.aksw.limes.core.io.cache.ACache
-
- All Implemented Interfaces:
ICache
- Direct Known Subclasses:
MemoryCache
public abstract class ACache extends Object implements ICache
- Version:
- Jul 8, 2015
- Author:
- Mohamed Sherif (sherif@informatik.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description ACache()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidaddInstance(Instance i)abstract ACacheaddProperty(String sourcePropertyName, String targetPropertyName, String processingChain)Method to process data of a property into a new property with specific preprocessing.abstract voidaddTriple(String s, String p, String o)abstract ACacheclone()abstract booleancontainsInstance(Instance i)abstract booleancontainsUri(String uri)abstract booleanequals(Object obj)abstract ArrayList<Instance>getAllInstances()abstract Set<String>getAllProperties()abstract ArrayList<String>getAllUris()abstract InstancegetInstance(String uri)abstract InstancegetNextInstance()abstract ACachegetSample(int size)abstract inthashCode()abstract org.apache.jena.rdf.model.ModelparseCSVtoRDFModel(String baseURI, String IDbaseURI, String rdfType)Basic method to create a JENA Model out of a cache.abstract voidreplaceInstance(String uri, Instance a)abstract voidresetIterator()abstract intsize()
-
-
-
Method Detail
-
addInstance
public abstract void addInstance(Instance i)
-
getNextInstance
public abstract Instance getNextInstance()
-
containsInstance
public abstract boolean containsInstance(Instance i)
-
containsUri
public abstract boolean containsUri(String uri)
-
resetIterator
public abstract void resetIterator()
-
size
public abstract int size()
-
getSample
public abstract ACache getSample(int size)
-
addProperty
public abstract ACache addProperty(String sourcePropertyName, String targetPropertyName, String processingChain)
Method to process data of a property into a new property with specific preprocessing.- Parameters:
sourcePropertyName- Name of the property to process.targetPropertyName- Name of the new property to process data into.processingChain- Preprocessing Expression.- Returns:
- Cache after property add
-
parseCSVtoRDFModel
public abstract org.apache.jena.rdf.model.Model parseCSVtoRDFModel(String baseURI, String IDbaseURI, String rdfType)
Basic method to create a JENA Model out of a cache. Restriction 1: Assumes all objects are literal values. Thus, resource URIs are represented as Strings. Restriction 2: Adds a rdf:Type statement for all instances.- Parameters:
baseURI- Base URI of properties, could be empty.IDbaseURI- Base URI for id of resources: URI(instance) := IDbaseURI+instance.getID(). Could be empty.rdfType- rdf:Type of the instances.- Returns:
- JENA RDF Model
-
-