Package org.aksw.limes.core.io.query
Class SparqlQueryModule
- java.lang.Object
-
- org.aksw.limes.core.io.query.SparqlQueryModule
-
- All Implemented Interfaces:
IQueryModule
- Direct Known Subclasses:
ResilientSparqlQueryModule
public class SparqlQueryModule extends Object implements IQueryModule
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description SparqlQueryModule(KBInfo kbinfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillCache(ACache cache)Reads from a SPARQL endpoint and writes the results in a cachevoidfillCache(ACache cache, boolean isSparql)Reads from a SPARQL endpoint or a file and writes the results in a cacheprotected StringgenerateQuery()
-
-
-
Field Detail
-
kb
protected KBInfo kb
-
-
Constructor Detail
-
SparqlQueryModule
public SparqlQueryModule(KBInfo kbinfo)
-
-
Method Detail
-
fillCache
public void fillCache(ACache cache)
Reads from a SPARQL endpoint and writes the results in a cache- Specified by:
fillCachein interfaceIQueryModule- Parameters:
cache- The cache in which the content on the SPARQL endpoint is to be written
-
fillCache
public void fillCache(ACache cache, boolean isSparql)
Reads from a SPARQL endpoint or a file and writes the results in a cache- Parameters:
cache- The cache in which the content on the SPARQL endpoint is to be writtenisSparql- True if the endpoint is a remote SPARQL endpoint, else assume that is is a Jena model
-
generateQuery
protected String generateQuery()
-
-