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:

  1. Go to the HTML based Instance Admin UI (Conductore) at: http://{your-instance-hostname}:[port]/conductor .
  2. Enter dba credentials.
  3. Go to "Web Application Server"->"Virtual Domains & Directories":



  4. Expand Interface for the Default Web Site:



  5. Locate the /sparql Logical Path:



  6. Click "Edit":




  7. Enter for ex. "*" in the "Cross-Origin Resource Sharing" input field. Optionally you can check the "Reject Unintended CORs" check-box:



  8. Click "Save Changes".

Related