This HTML5 document contains 26 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/
oplhttp://www.openlinksw.com/schema/attribution#
n2http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/
dchttp://purl.org/dc/elements/1.1/
n9http://vos.openlinksw.com/dataspace/dav#
rdfshttp://www.w3.org/2000/01/rdf-schema#
siocthttp://rdfs.org/sioc/types#
n4http://vos.openlinksw.com/dataspace/person/dav#
n10http://vos.openlinksw.com/dataspace/owiki/wiki/
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
n7http://vos.openlinksw.com/dataspace/owiki#
xsdhhttp://www.w3.org/2001/XMLSchema#
n11http://vos.openlinksw.com/dataspace/person/owiki#
n15http://vos.openlinksw.com/dataspace/owiki/wiki/VOS/VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput/sioc.
siochttp://rdfs.org/sioc/ns#
Subject Item
n4:this
foaf:made
n2:VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
Subject Item
n9:this
sioc:creator_of
n2:VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
Subject Item
n7:this
sioc:creator_of
n2:VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
Subject Item
n10:VOS
sioc:container_of
n2:VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
atom:entry
n2:VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
atom:contains
n2:VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
Subject Item
n2:VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
rdf:type
atom:Entry sioct:Comment
dcterms:created
2017-06-13T05:37:15.721659
dcterms:modified
2019-07-17T14:11:15.862124
rdfs:label
VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
foaf:maker
n4:this n11:this
dc:title
VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
opl:isDescribedUsing
n15:rdf
sioc:has_creator
n9:this n7:this
sioc:content
%META:TOPICPARENT{name="VirtTipsAndTricksGuide"}% ---+How to output the results of a SPARQL query run against the /sparql endpoint to a file in Virtuoso? ---++Why? To manage output results of a SPARQL query. ---++What? Save the output results of a SPARQL query that is executed against Virtuoso SPARQL Endpoint using <b>curl</b> command. ---++How? To save the output of a SPARQL query against the Virtuoso <code>/sparql</code> endpoint to a file, a <b><code>curl</code></b> command of the following form can be run: <verbatim> curl --request POST 'http://hostname:portno/sparql/?' --header 'Accept-Encoding: gzip' --data 'format=outputformat' --data-urlencode 'query=SPARQLQuery' --output 'filename.gz' </verbatim> The [[http://docs.openlinksw.com/virtuoso/rdfsparqlprotocolendpoint/#rdfsupportedmimesofprotocolserver][supported "<b>outputformat</b>" values]], are detailed in the [[http://docs.openlinksw.com/virtuoso/rdfsparqlprotocolendpoint/#rdfrequestparamsextensions][SPARQL Protocol Extensions]] section of the Virtuoso documentation. ---+++Usage Example The following example demonstrates how to save the output of a simple CONSTRUCT Query that returns the first 5 triples from the Quad store in <b>JSON</b> format: <verbatim> $ curl --request POST 'http://localhost:8890/sparql/?' --header 'Accept-Encoding: gzip' --data 'format=json' --data-urlencode 'query=CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o }LIMIT 5' --output 'filename.gz' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 398 0 288 100 110 41854 15986 --:--:-- --:--:-- --:--:-- 48000 $ gzip -cd filename.gz | more { "head": { "link": [], "vars": [ "s", "p", "o" ] }, "results": { "distinct": false, "ordered": true, "bindings": [ { "s": { "type" : "uri", "value" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } , "p": { "type" : "uri", "value" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } , "o": { "type" : "uri", "value" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property" }}, { "s": { "type" : "uri", "value" : "http://www.openlinksw.com/virtrdf-data-formats#default-iid-nullable" } , "p": { "type" : "uri", "value" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } , "o": { "type" : "uri", "value" : "http://www.openlinksw.com/schemas/virtrdf#QuadMapFormat" }}, { "s": { "type" : "uri", "value" : "http://www.openlinksw.com/virtrdf-data-formats#default-iid" } , "p": { "type" : "uri", "value" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } , "o": { "type" : "uri", "value" : "http://www.openlinksw.com/schemas/virtrdf#QuadMapFormat" }}, { "s": { "type" : "uri", "value" : "http://www.openlinksw.com/virtrdf-data-formats#default-iid-nonblank-nullable" } , "p": { "type" : "uri", "value" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } , "o": { "type" : "uri", "value" : "http://www.openlinksw.com/schemas/virtrdf#QuadMapFormat" }}, { "s": { "type" : "uri", "value" : "http://www.openlinksw.com/virtrdf-data-formats#default-iid-nonblank" } , "p": { "type" : "uri", "value" : "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } , "o": { "type" : "uri", "value" : "http://www.openlinksw.com/schemas/virtrdf#QuadMapFormat" }} ] } } $ </verbatim> ---+++Related * [[VirtTipsAndTricksGuideISQLQueryResultOutput][How to output from iSQL the result of a SQL SELECT query to a file in Virtuoso?]] * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]]
sioc:id
3766a70f7604997781fe80b0380f7f01
sioc:link
n2:VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
sioc:has_container
n10:VOS
atom:title
VirtTipsAndTricksGuideSPARQLEndpointQueryResultOutput
atom:source
n10:VOS
atom:author
n4:this
atom:published
2017-06-13T05:37:15Z
atom:updated
2019-07-17T14:11:15Z