Skip to content

Commit

Permalink
Merge pull request #300 from RDFLib/david/expose-sparql-endpoint-enab…
Browse files Browse the repository at this point in the history
…led-setting

feat: expose the value of the SPARQL Endpoint Enabled setting on the …
  • Loading branch information
hjohns authored Nov 11, 2024
2 parents 45ad323 + 2b87359 commit 3117912
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 3117912

Please sign in to comment.