Skip to content

Separate GSP endpoint configuration from SPARQL query endpoint#338

Merged
jpmccu merged 4 commits intomainfrom
copilot/break-out-gsp-configuration
Dec 19, 2025
Merged

Separate GSP endpoint configuration from SPARQL query endpoint#338
jpmccu merged 4 commits intomainfrom
copilot/break-out-gsp-configuration

Conversation

Copy link
Contributor

Copilot AI commented Dec 18, 2025

SPARQL database connections currently use the same URL endpoint for both query operations and Graph Store Protocol (GSP) operations. This change allows configuring GSP operations to use a different endpoint.

Changes

  • sparql_driver(): Added optional _gsp_endpoint configuration parameter with fallback to _endpoint
  • _remote_sparql_store_protocol(): Updated all GSP operations (publish, put, post, delete) to use store.gsp_endpoint instead of store.query_endpoint
  • Backward compatibility: Existing configurations without _gsp_endpoint continue working unchanged

Configuration

# In system.conf or kgapp configuration
KNOWLEDGE_ENDPOINT = 'http://localhost:3030/knowledge/sparql'
KNOWLEDGE_GSP_ENDPOINT = 'http://localhost:3030/knowledge/data'  # optional

ADMIN_ENDPOINT = 'http://localhost:3030/admin/sparql'  
ADMIN_GSP_ENDPOINT = 'http://localhost:3030/admin/data'  # optional

When KNOWLEDGE_GSP_ENDPOINT or ADMIN_GSP_ENDPOINT are omitted, the system defaults to using the respective _ENDPOINT value for GSP operations.

Original prompt

Currently, the SPARQL database connections use the same URL endpoint for both query operations and SPARQL Graph Store Protocol. Please break out the GSP configuration so that it can be configured to a different endpoint URL. Start by describing a plan of action, including incorporating new tests.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits December 18, 2025 21:52
Co-authored-by: jpmccu <602385+jpmccu@users.noreply.github.com>
Co-authored-by: jpmccu <602385+jpmccu@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor SPARQL database connections to separate GSP endpoint Separate GSP endpoint configuration from SPARQL query endpoint Dec 18, 2025
Copilot AI requested a review from jpmccu December 18, 2025 21:56
@github-actions
Copy link

✅ Python tests completed! Coverage reports available in artifacts.

@jpmccu jpmccu marked this pull request as ready for review December 19, 2025 04:09
@jpmccu jpmccu merged commit 418d817 into main Dec 19, 2025
5 checks passed
@jpmccu jpmccu deleted the copilot/break-out-gsp-configuration branch December 19, 2025 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants