|
31 | 31 | import enum_tools |
32 | 32 | from rdflib import RDF, RDFS, Graph, Namespace, URIRef |
33 | 33 |
|
34 | | -from rocrate_validator.utils import log as logging |
35 | 34 | from rocrate_validator import __version__ |
36 | 35 | from rocrate_validator.constants import (DEFAULT_HTTP_CACHE_MAX_AGE, |
37 | 36 | DEFAULT_ONTOLOGY_FILE, |
|
49 | 48 | ROCrateMetadataNotFoundError) |
50 | 49 | from rocrate_validator.events import Event, EventType, Publisher, Subscriber |
51 | 50 | from rocrate_validator.rocrate import ROCrate |
52 | | -from rocrate_validator.utils.collections import (MapIndex) |
| 51 | +from rocrate_validator.utils import log as logging |
| 52 | +from rocrate_validator.utils.collections import MapIndex, MultiIndexMap |
| 53 | +from rocrate_validator.utils.http import HttpRequester |
53 | 54 | from rocrate_validator.utils.paths import get_profiles_path |
54 | | -from rocrate_validator.utils.python_helpers import get_requirement_name_from_file |
| 55 | +from rocrate_validator.utils.python_helpers import \ |
| 56 | + get_requirement_name_from_file |
55 | 57 | from rocrate_validator.utils.uri import URI |
56 | | -from rocrate_validator.utils.collections import MultiIndexMap |
57 | 58 |
|
58 | 59 | # set the default profiles path |
59 | 60 | DEFAULT_PROFILES_PATH = get_profiles_path() |
@@ -2399,8 +2400,6 @@ def __post_init__(self): |
2399 | 2400 | if isinstance(self.requirement_severity, str): |
2400 | 2401 | self.requirement_severity = Severity[self.requirement_severity] |
2401 | 2402 | # initialize the HTTP cache |
2402 | | - from rocrate_validator.utils import HttpRequester |
2403 | | - # HttpRequester.initialize_cache(cache_path=self.cache_path, cache_max_age=self.cache_max_age) |
2404 | 2403 | HttpRequester.initialize_cache(cache_path=self.cache_path, cache_max_age=self.cache_max_age) |
2405 | 2404 | logger.debug("HTTP cache initialized at %s with max age %s seconds", |
2406 | 2405 | self.cache_path, self.cache_max_age) |
|
0 commit comments