Attributes | Values |
---|
type
| |
Date Created
| |
Date Modified
| |
label
| |
maker
| |
Title
| |
isDescribedUsing
| |
has creator
| |
content
| - ---++Example for querying the SPARQL-SSL endpoint using Virtuoso function http_client
The following example demonstrates how to query the SPARQL-SSL endpoint (listening on default HTTPS 443 port) using Virtuoso function http_client:
1 Make sure the steps from the [[VirtSPARQLSSL][FOAF+SSL cURL Usage Guide]] are done.
1. Log in at Virtuos ISQL with your user credentials:
<verbatim>
C:\>isql localhost:1111 johndoe ****
Connected to OpenLink Virtuoso
Driver: 06.01.3127 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL>
</verbatim>
1. Execute:
<verbatim>
SQL>select http_client ('https://localhost/sparql-ssl?query=select+*+where+{+%3Fx+%3Fy+%3Fz+.+}+limit+10&format=text%2Fn3', cert_file=>'d
b:cli_key', insecure=>1);
callret
VARCHAR
_______________________________________________________________________________
@prefix res: <http://www.w3.org/2005/sparql-results#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
_:_ a res:ResultSet .
_:_ res:resultVariable "x" , "y" , "z" .
@prefix ns0: <https://localhost/tutorial/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
_:_ res:solution [
res:binding [ res:variable "x" ; res:value ns0:hosting ] ;
res:binding [ res:variable "y" ; res:value rdf:type ] ;
res:binding [ res:variable "z" ; res:value "Tutorial" ] ] .
_:_ res:solution [
res:binding [ res:variable "x" ; res:value ns0:xml ] ;
res:binding [ res:variable "y" ; res:value rdf:type ] ;
res:binding [ res:variable "z" ; res:value "Tutorial" ] ] .
_:_ res:solution [
res:binding [ res:variable "x" ; res:value ns0:repl ] ;
res:binding [ res:variable "y" ; res:value rdf:type ] ;
res:binding [ res:variable "z" ; res:value "Tutorial" ] ] .
_:_ res:solution [
res:binding [ res:variable "x" ; res:value ns0:rdfview ] ;
res:binding [ res:variable "y" ; res:value rdf:type ] ;
res:binding [ res:variable "z" ; res:value "Tutorial" ] ] .
_:_ res:solution [
res:binding [ res:variable "x" ; res:value ns0:services ] ;
res:binding [ res:variable "y" ; res:value rdf:type ] ;
res:binding [ res:variable "z" ; res:value "Tutorial" ] ] .
_:_ res:solution [
res:binding [ res:variable "x" ; res:value ns0:wap ] ;
res:binding [ res:variable "y" ; res:value rdf:type ] ;
res:binding [ res:variable "z" ; res:value "Tutorial" ] ] .
_:_ res:solution [
res:binding [ res:variable "x" ; res:value ns0:bpeldemo ] ;
res:binding [ res:variable "y" ; res:value rdf:type ] ;
res:binding [ res:variable "z" ; res:value "Tutorial" ] ] .
_:_ res:solution [
res:binding [ res:variable "x" ; res:value ns0:web ] ;
res:binding [ res:variable "y" ; res:value rdf:type ] ;
res:binding [ res:variable "z" ; res:value "Tutorial" ] ] .
_:_ res:solution [
1 Rows. -- 281 msec.
SQL>
</verbatim>
---++Related
* [[VirtFOAFSSLCurlExample1][Example for querying the SPARQL-SSL endpoint using cURL]]
* [[VirtAuthServerUI][Set FOAF+SSL ACLs using the Virtuoso Authentication Server UI]]
* [[VirtAuthFOAFSSLACL][FOAF+SSL ACLs Tutorial]]
* [[VirtOAuthSPARQL][SPARQL OAuth Tutorial]]
* [[http://ods.openlinksw.com/wiki/ODS/VirtODSFOAFSSL][FOAF+SSL Support in OpenLink Data Spaces]]
* [[http://ods.openlinksw.com/wiki/ODS/ODSPkiSetup][Guide to Setting up a X.509 certificate issuer and HTTPS listener and Generating ODS user certificates]]
* [[http://ods.openlinksw.com/wiki/ODS/OdsKeyImport][CA Keys Import using Conductor]]
* [[http://ods.openlinksw.com/wiki/ODS/ODSBriefcaseFOAFSSLODSCert][Generate an X.509 Certificate hosted WebID Guide]]
* [[http://ods.openlinksw.com/wiki/ODS/ODSBriefcaseFOAFSSLShareFile][ODS Briefcase FOAF+SSL Share File Guide]]
* [[http://esw.w3.org/topic/foaf+ssl][FOAF+SSL Specification]]
* [[https://foaf.me/simpleLogin.php][Test FOAF+SSL Certificate page]]
* [[http://test.foafssl.org/cert/][FOAF+SSL Certificate Generation page]]
* [[https://demo.openlinksw.com/sparql-ssl][Virtuoso Demo SPARQL-SSL Endpoint]]
|
id
| - e233462911c3190121a1ae21630d9266
|
link
| |
has container
| |
http://rdfs.org/si...ices#has_services
| |
atom:title
| |
links to
| |
atom:source
| |
atom:author
| |
atom:published
| |
atom:updated
| |
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 | |