From 2b873594d914b91796e8e5d6cd0b62c5ed0a0a65 Mon Sep 17 00:00:00 2001 From: recalcitrantsupplant Date: Mon, 11 Nov 2024 08:53:13 +1000 Subject: [PATCH] feat: expose the value of the SPARQL Endpoint Enabled setting on the root endpoint, under the predicate https://prez.dev/sparqlEndpointEnabled --- prez/routers/management.py | 1 + 1 file changed, 1 insertion(+) diff --git a/prez/routers/management.py b/prez/routers/management.py index 14779730..154e6b99 100755 --- a/prez/routers/management.py +++ b/prez/routers/management.py @@ -43,6 +43,7 @@ async def index(request: Request, system_repo: Repo = Depends(get_system_repo)): g.bind("prez", "https://prez.dev/") g.bind("ont", "https://prez.dev/ont/") g.add((URIRef(settings.system_uri), PREZ.version, Literal(settings.prez_version))) + g.add((URIRef(settings.system_uri), PREZ.sparqlEndpointEnabled, Literal(settings.enable_sparql_endpoint, datatype=URIRef("http://www.w3.org/2001/XMLSchema#boolean")))) g += endpoints_graph_cache g += await return_annotation_predicates() return await return_from_graph(