mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 03:01:03 +02:00
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:
parent
c10f2694a0
commit
6d07310d2b
5 changed files with 16 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue