public class SparqlQueryModule extends Object implements IQueryModule
| Constructor and Description |
|---|
SparqlQueryModule(KBInfo kbinfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillCache(ACache cache)
Reads from a SPARQL endpoint and writes the results in a cache
|
void |
fillCache(ACache cache,
boolean isSparql)
Reads from a SPARQL endpoint or a file and writes the results in a cache
|
protected String |
generateQuery() |
protected KBInfo kb
public SparqlQueryModule(KBInfo kbinfo)
public void fillCache(ACache cache)
fillCache in interface IQueryModulecache - The cache in which the content on the SPARQL endpoint is to be
writtenpublic void fillCache(ACache cache, boolean isSparql)
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 modelprotected String generateQuery()
Copyright © 2020. All rights reserved.