VOS.VirtWebIDCurlExample2
Example for querying the SPARQL-WebID? endpoint using Virtuoso function http_client
The following example demonstrates how to query the SPARQL-WebID? endpoint (listening on default HTTPS 443 port) using Virtuoso function http_client:
- Make sure the steps from the WebID Protocol cURL Usage Guide are done.
- Log in at Virtuoso ISQL with your user credentials:
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>
- Execute:
SQL>select http_client ('https://localhost/sparql-webid?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>
Related
- Example for querying the SPARQL-WebID endpoint using cURL
- Safeguarding your Virtuoso-hosted SPARQL Endpoint
- SPARQL Endpoint Protection Methods Collection
- Virtuoso documentation
- Virtuoso Tips and Tricks Collection
- SPARUL over SPARQL using the http://cname:port/sparql-auth endpoint
- Virtuoso Authentication Server UI
- Manage a SPARQL-WebID based Endpoint
- Configure Virtuoso instance as an X.509 Certificate Authority and HTTPS listener
- Configure Virtuoso+ODS instance as an X.509 Certificate Authority and HTTPS listener
- WebID Protocol Support in OpenLink Data Spaces.
- Manage ODS Datadspaces Objects WebID? Access Control Lists (ACLs):
- Guide for Set up a X.509 certificate issuer and HTTPS listener and generate ODS user certificates.
- Setting up PubSubHub in ODS
- PubSubHubBub Demo Client Example
- Feed subscription via PubSubHub protocol Example
- Setting Up PubSubHub to use WebID Protocol or IP based control lists
- CA Keys Import using Conductor
- Generate an X.509 Certificate hosted WebID Guide
- Generate an X.509 Certificate (with a WebID watermark) to be managed by host operating system keystore
- Generate an X.509 Certificate (with a WebID watermark) to be managed by a browser-based keystore
- Using Virtuoso's WebID Verification Proxy Service with a WebID-bearing X.509 certificate
- Using Virtuoso's WebID Identity Provider (IdP) Proxy Service with an X.509 certificate
- ODS Briefcase WebID Protocol Share File Guide
- WebID Protocol Specification
- Test WebID Protocol Certificate page
- WebID Protocol Certificate Generation page