This HTML5 document contains 25 embedded RDF statements represented using HTML+Microdata notation.

The embedded RDF content will be recognized by any processor of HTML5 Microdata.

PrefixNamespace IRI
dctermshttp://purl.org/dc/terms/
atomhttp://atomowl.org/ontologies/atomrdf#
foafhttp://xmlns.com/foaf/0.1/
n17http://vos.openlinksw.com/dataspace/services/wiki/
oplhttp://www.openlinksw.com/schema/attribution#
n2http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/
dchttp://purl.org/dc/elements/1.1/
n19http://vos.openlinksw.com/dataspace/dav#
rdfshttp://www.w3.org/2000/01/rdf-schema#
n16http://rdfs.org/sioc/services#
siocthttp://rdfs.org/sioc/types#
n9http://vos.openlinksw.com/dataspace/person/dav#
n4http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n15http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtCustomizeSPARQLEndpoint/sioc.
n7http://vos.openlinksw.com/dataspace/owiki#
xsdhhttp://www.w3.org/2001/XMLSchema#
n18http://vos.openlinksw.com/wiki/main/VOS/VirtCustomizeSPARQLEndpoint/s1.
n11http://vos.openlinksw.com/dataspace/person/owiki#
siochttp://rdfs.org/sioc/ns#
Subject Item
n2:VirtCustomizeSPARQLEndpoint
rdf:type
sioct:Comment atom:Entry
dcterms:created
2017-06-13T05:48:02.348100
dcterms:modified
2017-06-13T05:48:02.348100
rdfs:label
VirtCustomizeSPARQLEndpoint
foaf:maker
n9:this n11:this
dc:title
VirtCustomizeSPARQLEndpoint
opl:isDescribedUsing
n15:rdf
sioc:has_creator
n7:this n19:this
sioc:attachment
n18:png
sioc:content
---+ Customizing the Virtuoso SPARQL Endpoint This page will guide you through changing the SPARQL endpoint web page. You can create different variants of the page for different IRIs: 1. The default SPARQL endpoint page is found in the procedure named <b><code>WS.WS."/!sparql/"</code></b>, which is built from source code found in <b><code>libsrc/Wi/sparql_io.sql</code></b>. 1. Copy the code from the above procedure, and load it to a different name, e.g., <b><code>WS.WS."/!sparql_new/"</code></b>, through iSQL -- <verbatim> SQL> CREATE PROCEDURE WS.WS."/!sparql_new/" ( INOUT path VARCHAR, INOUT params ANY, INOUT lines ANY ) {... http(' <p>TEST This query page is designed to help you test OpenLink Virtuoso</p> ... }; Done. -- 60 msec. SQL> </verbatim> 1. Remove the VHost definition targeting the original page -- <verbatim> SQL> DB.DBA.VHOST_REMOVE (lpath=>'/sparql'); </verbatim> 1. Add a VHost definition targeting your new page. The command follows this form -- <verbatim> SQL> DB.DBA.VHOST_DEFINE ( lpath=>'/sparql/', ppath => '/your-function-name/', is_dav => 1, vsp_user => 'dba', opts => vector('noinherit', 1) ); </verbatim> -- so, for this example -- <verbatim> SQL> DB.DBA.VHOST_DEFINE ( lpath=>'/sparql/', ppath => '/!sparql_new/', is_dav => 1, vsp_user => 'dba', opts => vector('noinherit', 1) ); </verbatim> 1. Give the SPARQL user permission to execute your new page, following this form -- <verbatim> SQL> GRANT EXECUTE ON WS.WS."your-function" TO "SPARQL" ; </verbatim> -- so, for this example -- <verbatim> SQL> GRANT EXECUTE ON WS.WS."/!sparql_new/" TO "SPARQL" ; </verbatim> <i><b>Note:</b> you should use double quotes around name of "SPARQL" user and the upper case, to avoid confusion with the <code>SPARQL</code> keyword, you should always use double-quote wrappers *and* upper-case to refer to the <code>"SPARQL"</code> user.</i>%BR%%BR% 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 -- <verbatim> SQL> registry_set ( '/your-function-name/', 'no_vsp_recompile' ); </verbatim> -- so, for this example -- <verbatim> SQL> registry_set ( '/!sparql_new/', 'no_vsp_recompile' ); </verbatim> 1. Access the new SPARQL endpoint, which should show your changes -- %BR%%BR%<img src="%ATTACHURLPATH%/s1.png" style="wikiautogen"/>%BR%%BR% CategorySPARQL CategoryVirtuoso
sioc:id
1290ba0921b501412aae1d24d3e5962b
sioc:link
n2:VirtCustomizeSPARQLEndpoint
sioc:has_container
n4:VOS
n16:has_services
n17:item
atom:title
VirtCustomizeSPARQLEndpoint
sioc:links_to
n2:CategoryVirtuoso n2:CategorySPARQL
atom:source
n4:VOS
atom:author
n9:this
atom:published
2017-06-13T05:48:02Z
atom:updated
2017-06-13T05:48:02Z
sioc:topic
n4:VOS