Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix: re-push sparql.py with correct UTF-8 encoding

Sunilc35899711d72
diff --git a/semantica/explorer/routes/sparql.py b/semantica/explorer/routes/sparql.py
index acc825e5..c110d023 100644
--- a/semantica/explorer/routes/sparql.py
+++ b/semantica/explorer/routes/sparql.py
@@ -8,7 +8,7 @@ Security contract
* Multi-statement injections that start with an allowed keyword (e.g.
``SELECT ... ; DROP ALL``) pass the prefix check and reach rdflib, which
rejects non-SELECT/ASK/CONSTRUCT/DESCRIBE update syntax in the parser.
-* The in-memory rdflib graph is a read-only projection — the live
+* The in-memory rdflib graph is a read-only projection — the live
``GraphSession`` is never mutated by this route.
"""
@@ -177,9 +177,9 @@ async def execute_sparql(
# ---------------------------------------------------------------------------
# Serialize results into a type-aware tabular representation.
- # ASK → single row: {"result": "true"|"false"}
- # CONSTRUCT/DESCRIBE → rows of {"subject", "predicate", "object"} triples
- # SELECT → rows keyed by projected variable names
+ # ASK → single row: {"result": "true"|"false"}
+ # CONSTRUCT/DESCRIBE → rows of {"subject", "predicate", "object"} triples
+ # SELECT → rows keyed by projected variable names
# ---------------------------------------------------------------------------
query_type: str = query_results.type # always set by rdflib