Class ResilientSparqlQueryModule

  • All Implemented Interfaces:
    IQueryModule

    public class ResilientSparqlQueryModule
    extends SparqlQueryModule
    implements IQueryModule
    Version:
    Jul 12, 2016
    Author:
    Mohamed Sherif (sherif@informatik.uni-leipzig.de)
    • Field Detail

      • logger

        protected org.slf4j.Logger logger
      • retryCount

        protected int retryCount
      • retryDelayInMS

        protected int retryDelayInMS
      • requestDelayInMs

        protected int requestDelayInMs
      • pageSize

        protected int pageSize
      • timeToLive

        protected long timeToLive
      • cacheDirectory

        protected String cacheDirectory
    • Constructor Detail

      • ResilientSparqlQueryModule

        public ResilientSparqlQueryModule​(KBInfo kbInfo)
      • ResilientSparqlQueryModule

        public ResilientSparqlQueryModule​(KBInfo kbinfo,
                                          org.slf4j.Logger logger,
                                          int retryCount,
                                          int retryDelayInMS,
                                          int requestDelayInMs,
                                          int pageSize,
                                          long timeToLive,
                                          String cacheDirectory)
    • Method Detail

      • fillCache

        public void fillCache​(ACache cache,
                              boolean sparql)
        Reads from a SPARQL endpoint or a file and writes the results in a cache
        Overrides:
        fillCache in class SparqlQueryModule
        Parameters:
        cache - The cache in which the content on the SPARQL endpoint is to be written
        sparql - True if the endpoint is a remote SPARQL endpoint, else assume that is is a jena model