%META:TOPICPARENT{name="VirtTipsAndTricksGuide"}% ---+How Can I send SOAP requests to a Virtuoso SPARQL Endpoint? The following example presents a sample scenario on how to execute a SPARQL query as a SOAP request to the Virtuoso SPARQL Endpoint. 1 Assume the following sample SOAP request containing simple SPARQL query: SELECT DISTINCT ?z FROM virtrdf: {?x ?y ?z .} LIMIT 10 1 Save locally the content from above for ex. to file with the name "soap.xml". 1 To pass the SOAP request to a Virtuoso SPARQL Endpoint, execute the following curl command: $ curl -d@soap.xml -H "Content-Type:text/xml" -H "SOAPAction: ''" http://localhost:8890/sparql http://www.openlinksw.com/schemas/virtrdf#QuadMapFormat http://www.openlinksw.com/schemas/virtrdf#QuadStorage http://www.openlinksw.com/schemas/virtrdf#array-of-QuadMapFormat http://www.openlinksw.com/schemas/virtrdf#QuadMap http://www.openlinksw.com/schemas/virtrdf#QuadMapValue http://www.openlinksw.com/schemas/virtrdf#array-of-QuadMapColumn http://www.openlinksw.com/schemas/virtrdf#QuadMapColumn http://www.openlinksw.com/schemas/virtrdf#array-of-QuadMapATable http://www.openlinksw.com/schemas/virtrdf#QuadMapATable http://www.openlinksw.com/schemas/virtrdf#QuadMapFText ---++Related * [[VirtTipsAndTricksGuide][Virtuoso Tips and Tricks Collection]] * [[http://docs.openlinksw.com/virtuoso/soap.html#soapovervw][Virtuoso SOAP]]