gutenberg/acquire/metadata.py
def _check_can_be_instantiated(cls, cache_location):
        """Pre-conditions: the cache location is the URL to a Fuseki server
        and the SPARQLWrapper library exists (transitive dependency of
        RDFlib's sparqlstore).

        """
        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
Pre-conditions: the cache location is the URL to a Fuseki server
        and the SPARQLWrapper library exists (transitive dependency of
        RDFlib's sparqlstore).

        
Pre-conditions: the cache location is the URL to a Fuseki server
and the SPARQLWrapper library exists (transitive dependency of
RDFlib's sparqlstore).
Pre - conditions : the cache location is the URL to a Fuseki server and the SPARQLWrapper library exists ( transitive dependency of RDFlib ' s sparqlstore ) .
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
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
Pre-conditions: the cache location is the URL to a Fuseki server
and the SPARQLWrapper library exists (transitive dependency of
RDFlib's sparqlstore).
Pre - conditions : the cache location is the URL to a Fuseki server and the SPARQLWrapper library exists ( transitive dependency of RDFlib ' s sparqlstore ) .
"""Pre-conditions: the cache location is the URL to a Fuseki server
        and the SPARQLWrapper library exists (transitive dependency of
        RDFlib's sparqlstore).

        """
cls
cache_location