This commit is contained in:
AI-Bot 2026-05-09 10:21:51 +01:00 committed by GitHub
commit 99ab983c63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -203,10 +203,12 @@ ASK {{
if response and isinstance(response, dict):
query = response.get('query', '').strip()
if query.upper().startswith(('SELECT', 'ASK', 'CONSTRUCT', 'DESCRIBE')):
parts = query.split()
query_type = parts[0].upper() if parts else 'SELECT'
return SPARQLQuery(
query=query,
variables=self._extract_variables(query),
query_type=query.split()[0].upper(),
query_type=query_type,
explanation=response.get('explanation', 'Generated by LLM'),
complexity_score=self._calculate_complexity(query)
)