fix: repair broken imports in OntoRAG query module (#950)

Replace hallucinated relative imports with correct absolute imports
across the ontology query package, and fix OntologyMatcher reference
to match the actual class name OntologyMatcherForQueries. Simplify
test to use standard imports instead of importlib hack.

Cosmetic, but simpler imports provides undeterministic imports in a dev
environment, and also means we're properly testing linkage
This commit is contained in:
cybermaggedon 2026-05-26 13:12:03 +01:00 committed by GitHub
parent c10f2694a0
commit 6d07310d2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 16 additions and 33 deletions

View file

@ -7,7 +7,7 @@ Provides semantic query understanding, ontology matching, and answer generation.
from .query_service import OntoRAGQueryService, QueryRequest, QueryResponse
from .question_analyzer import QuestionAnalyzer, QuestionComponents, QuestionType
from .ontology_matcher import OntologyMatcher, QueryOntologySubset
from .ontology_matcher import OntologyMatcherForQueries, QueryOntologySubset
from .backend_router import BackendRouter, BackendType, QueryRoute
from .sparql_generator import SPARQLGenerator, SPARQLQuery
from .sparql_cassandra import SPARQLCassandraEngine, SPARQLResult
@ -27,7 +27,7 @@ __all__ = [
'QuestionType',
# Ontology matching
'OntologyMatcher',
'OntologyMatcherForQueries',
'QueryOntologySubset',
# Backend routing