What it is

The substantive code is tools.py: a natural-language→SPARQL query tool over a GraphDB exocortex with a self-correcting retry loop, an artifact store, and a validation harness (run_validation.py + task file) for checking the local specialist’s work.

The planned Flask + React environment around it stayed a skeleton — backend/ holds only requirements, frontend/ only a package file — and its README roadmap says Phase 1 is unfinished. The exocortex idea, of course, escaped and became production infrastructure elsewhere in this portfolio (see the Exocortex entry); this repo is its first sketch, local-model era (LM Studio on 127.0.0.1).

Code

tools.py (exact):

def _run_sparql_query(query: str) -> requests.Response:
    """Helper to execute a SPARQL SELECT query."""
    headers = {"Accept": "application/sparql-results+json", "Content-Type": "application/sparql-query"}
    response = requests.post(GRAPHDB_REPO_URL, data=query, headers=headers, timeout=20)
    response.raise_for_status()
    return response

Lesson

A prototype’s job is to find the load-bearing idea. The workbench failed to grow; the knowledge-graph-with-retry-loop inside it became a production system. Keep the tools, let the shell go.

Status: Prototype, dormant since Oct 2025 · Python, Flask (planned), React (skeleton), SPARQL, LM Studio