. "VirtCustomizeSPARQLEndpoint" . "2017-06-13T05:48:02Z" . . "2017-06-13T05:48:02Z" . . . "VirtCustomizeSPARQLEndpoint" . . "2017-06-13T05:48:02.348100"^^ . "1290ba0921b501412aae1d24d3e5962b" . "2017-06-13T05:48:02.348100"^^ . . . . . . . "---+ Customizing the Virtuoso SPARQL Endpoint \n\nThis page will guide you through changing the SPARQL endpoint web page. You can create different variants of the page for different IRIs:\n\n 1. The default SPARQL endpoint page is found in the procedure named WS.WS.\"/!sparql/\", which is built from source code found in libsrc/Wi/sparql_io.sql.\n 1. Copy the code from the above procedure, and load it to a different name, e.g., WS.WS.\"/!sparql_new/\", through iSQL --\n\nSQL> CREATE PROCEDURE WS.WS.\"/!sparql_new/\"\n ( INOUT path VARCHAR, \n INOUT params ANY, \n INOUT lines ANY\n )\n {...\n http('

TEST This query page is designed to help you test OpenLink Virtuoso

\n ...\n };\nDone. -- 60 msec.\nSQL>\n
\n 1. Remove the VHost definition targeting the original page --\n\nSQL> DB.DBA.VHOST_REMOVE (lpath=>'/sparql');\n\n 1. Add a VHost definition targeting your new page. The command follows this form --\n\nSQL> DB.DBA.VHOST_DEFINE \n ( lpath=>'/sparql/', \n ppath => '/your-function-name/', \n is_dav => 1, \n vsp_user => 'dba', \n opts => vector('noinherit', 1)\n );\n\n-- so, for this example --\n\nSQL> DB.DBA.VHOST_DEFINE \n ( lpath=>'/sparql/', \n ppath => '/!sparql_new/', \n is_dav => 1, \n vsp_user => 'dba', \n opts => vector('noinherit', 1)\n );\n\n 1. Give the SPARQL user permission to execute your new page, following this form --\n\nSQL> GRANT EXECUTE \n ON WS.WS.\"your-function\" \n TO \"SPARQL\"\n ;\n\n-- so, for this example --\n\nSQL> GRANT EXECUTE\n ON WS.WS.\"/!sparql_new/\"\n TO \"SPARQL\"\n ;\n\nNote: you should use double quotes around name of \"SPARQL\" user and the upper case, to avoid confusion with the SPARQL keyword, you should always use double-quote wrappers *and* upper-case to refer to the \"SPARQL\" user.%BR%%BR%\n 1. Set attributes on your new page, such that Virtuoso's HTTP server component will not treat it as a physical path (DAV or filesystem) to be read and compiled as a procedure, following the command form --\n\nSQL> registry_set \n ( '/your-function-name/', \n 'no_vsp_recompile'\n );\n\n-- so, for this example --\n\nSQL> registry_set\n ( '/!sparql_new/', \n 'no_vsp_recompile'\n );\n\n 1. Access the new SPARQL endpoint, which should show your changes --\n%BR%%BR%%BR%%BR%\n\nCategorySPARQL CategoryVirtuoso" . . . . "VirtCustomizeSPARQLEndpoint" . . .