Not logged in : Login

About: VirtCustomizeSPARQLEndpoint     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : atom:Entry, within Data Space : ods.openlinksw.com associated with source document(s)

AttributesValues
type
Date Created
Date Modified
label
  • VirtCustomizeSPARQLEndpoint
maker
Title
  • VirtCustomizeSPARQLEndpoint
isDescribedUsing
has creator
attachment
  • http://vos.openlinksw.com/wiki/main/VOS/VirtCustomizeSPARQLEndpoint/s1.png
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
id
  • 1290ba0921b501412aae1d24d3e5962b
link
has container
http://rdfs.org/si...ices#has_services
atom:title
  • VirtCustomizeSPARQLEndpoint
links to
atom:source
atom:author
atom:published
  • 2017-06-13T05:48:02Z
atom:updated
  • 2017-06-13T05:48:02Z
topic
is made of
is container of of
is link of
is http://rdfs.org/si...vices#services_of of
is creator of of
is atom:entry of
is atom:contains of
Faceted Search & Find service v1.17_git132 as of May 12 2023


Alternative Linked Data Documents: iSPARQL | ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3238 as of May 23 2023, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (15 GB total memory, 3 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software