VOS.VirtFOAFSSLCurlExample1
Example for querying the SPARQL-SSL endpoint using cURL
The following example demonstrates how to query from the SPARQL-SSL endpoint (listening on default HTTPS 443 port) using cURL:
- Make sure the steps from the FOAF+SSL cURL Usage Guide are done.
- Execute:
curl -k -E mykey.pem "https://localhost/sparql-ssl?query=select+*+where+\{+%3Fx+%3Fy+%3Fz+.+\}+limit+10&format=text%2Fn3" @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 [ res:binding [ res:variable "x" ; res:value ns0:web2 ] ; 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:xmlxslt ] ; res:binding [ res:variable "y" ; res:value rdf:type ] ; res:binding [ res:variable "z" ; res:value "Tutorial" ] ] .
Related
- Example for querying the SPARQL-SSL endpoint using Virtuoso function http_client
- Set FOAF+SSL ACLs using the Virtuoso Authentication Server UI
- FOAF+SSL ACLs Tutorial
- SPARQL OAuth Tutorial
- FOAF+SSL Support in OpenLink Data Spaces
- Guide to Setting up a X.509 certificate issuer and HTTPS listener and Generating ODS user certificates
- CA Keys Import using Conductor
- Generate an X.509 Certificate hosted WebID Guide
- ODS Briefcase FOAF+SSL Share File Guide
- FOAF+SSL Specification
- Test FOAF+SSL Certificate page
- FOAF+SSL Certificate Generation page
- Virtuoso Demo SPARQL-SSL Endpoint