Cross-Origin Resource Sharing (CORS) enabling a Virtuoso SPARQL Endpoint
What?
Enabling a Virtuoso SPARQL Endpoint serve the Data Access needs of user agents (e.g., Javascript clients) that are programmed to leverage CORS.
Why?
CORs enables conventional client-server interactions from a single client across a Web of data sources. Basically, an effective mechanism for traversing the Web from a single original data source.
How?
You CORs enable a Virtuoso SPARQL endpoint via the following steps:
- Go to the HTML based Instance Admin UI (Conductore) at: http://{your-instance-hostname}:[port]/conductor .
- Enter dba credentials.
- Go to "Web Application Server"->"Virtual Domains & Directories":
- Expand Interface for the Default Web Site:
- Locate the
/sparql
Logical Path:
- Click "Edit":
- Enter for ex.
"*" in the "Cross-Origin Resource Sharing" input field.
Optionally you can check the "Reject Unintended CORs" check-box:
- Click "Save Changes".
Related
- Virtuoso Tips and Tricks Collection
- Setting up server-side Cross-Origin Resource Sharing (CORS) with Virtuoso
- Enable cross-origin resource sharing