Skip to content

Commit

Permalink
feat: expose the value of the SPARQL Endpoint Enabled setting on the …
Browse files Browse the repository at this point in the history
…root endpoint, under the predicate https://prez.dev/sparqlEndpointEnabled
  • Loading branch information
recalcitrantsupplant committed Nov 10, 2024
1 parent 45ad323 commit 2b87359
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prez/routers/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2b87359

Please sign in to comment.