code: def _check_can_be_instantiated(cls, cache_location):
          
          if not any(cache_location.startswith(prefix)
                     for prefix in cls._CACHE_URL_PREFIXES):
              raise InvalidCacheException('cache location is not a Fuseki url')
  
          try:
              from rdflib.plugins.stores.sparqlstore import SPARQLUpdateStore
          except ImportError:
              raise InvalidCacheException('unable to import sparql store')
          del SPARQLUpdateStore
docs: Pre-conditions: the cache location is the URL to a Fuseki server
          and the SPARQLWrapper library exists (transitive dependency of
          RDFlib's sparqlstore).