Using HTTP to Request Remote Transformation Services

Created on 2015-06-10 19:31

Published on 2015-06-10 19:31

HTTP (Hypertext Transfer Protocol) is the "deceptively simple" protocol for data access and transformation that drives the World Wide Web. 

Here are some HTTP usage examples demonstrating how to request transformation services, across the Web, that involve a remote transformation service provider (Virtuoso Linked Open Data Middleware a/k/a "Sponger") and remote target documents to be transformed (e.g., documents [posts] from a public Bugzilla instance and Github). 

Note the following cURL template, in regards to the live examples that follow. 

curl -X {http-method} -H "Accept: {preferred-content-type}" -H "Content-Location: {document-to-be-transformed}" {transformation-service}

Bugzilla

RDF-Turtle Transformation via Fusepool Virtuoso Instance

curl -X POST -H "Accept: text/turtle" -H "Content-Location: https://www.w3.org/Bugs/Public/show_bug.cgi?id=9546" http://fusepool.openlinksw.com/ext/bugzilla

RDF-Turtle Transformation via URIBurner.com Virtuoso Instance

curl -X POST -H "Accept: text/turtle" -H "Content-Location: https://www.w3.org/Bugs/Public/show_bug.cgi?id=9546" http://linkeddata.uriburner.com/ext/bugzilla

JSON-LD Transformation via Fusepool Virtuoso Instance

curl -X POST -H "Accept: application/ld+json" -H "Content-Location: https://www.w3.org/Bugs/Public/show_bug.cgi?id=9546" http://fusepool.openlinksw.com/ext/bugzilla

JSON-LD Transformation via URIBurner.com Virtuoso Instance

curl -X POST -H "Accept: application/ld+json" -H "Content-Location: https://www.w3.org/Bugs/Public/show_bug.cgi?id=9546" http://linkeddata.uriburner.com/ext/bugzilla

Github

RDF-Turtle Transformation via Fusepool Virtuoso Instance

curl -X POST -H "Accept: text/turtle" -H "Content-Location: https://github.com/openlink/iODBC" http://fusepool.openlinksw.com/ext/github

RDF-Turtle Transformation via URIBurner.com Virtuoso Instance

curl -X POST -H "Accept: text/turtle" -H "Content-Location: https://github.com/openlink/iODBC" http://linkeddata.uriburner.com/ext/github

JSON-LD Transformation via Fusepool Virtuoso Instance

curl -X POST -H "Accept: application/ld+json" -H "Content-Location: https://github.com/openlink/iODBC" http://fusepool.openlinksw.com/ext/github

JSON-LD Transformation via URIBurner.com Virtuoso Instance

curl -X POST -H "Accept: application/ld+json" -H "Content-Location: https://github.com/openlink/iODBC" http://linkeddata.uriburner.com/ext/github