<docbook><section><title>VirtDeployingLinkedDataGuide_AppendixB</title><para> </para>
<title>Deploying Linked Data Guide - Appendix B: New Proxy URI Formats</title>Deploying Linked Data Guide - Appendix B: New Proxy URI Formats
 <ulink url="VirtDeployingLinkedDataGuide">Deploying Linked Data Guide - TOC</ulink><para>As of September 2009, the Sponger proxy paths /about/html and /about/rdf have been augmented to support a richer slash URI scheme for identifying an entity and its metadata in a variety of representation formats.</para>
<para>The proxy path /about/html returns an XHTML description of an entity as before, but now includes richer embedded RDFa.
 Although some of the examples in this document still refer to /about/rdf (which is still usable), please bear in mind that this path has been deprecated in favour of /about/id.</para>
<para>The new proxy path /about/id returns an RDF description of an entity, using a default serialization format of RDF/XML.
 Different serialization formats can be requested by specifying the appropriate media type in an Accept header.
 Supported alternative formats are N3, Turtle (TTL), NTriples or JSON.
 Alternatively, rather than using /about/id in combination with an Accept header specifying a media type, it is also possible to request a serialization format directly using another new proxy path /about/data.
 In this case, no Accept header is required as the required format is specified as part of the request URL.</para>
<para>To dereference the description of a Web-addressable resource via your browser simply type in one of the following URL patterns: </para>
<itemizedlist mark="bullet" spacing="compact"><listitem>HTML description - http://&lt;sponger proxy host&gt;/about/html/&lt;URLscheme&gt;/&lt;hostname&gt;/&lt;localpart&gt; </listitem>
<listitem>RDF description - http://&lt;sponger proxy host&gt;/about/data/&lt;format&gt;/&lt;URLscheme&gt;/&lt;hostname&gt;/&lt;localpart&gt; where format is one of xml, n3, nt, ttl or json.</listitem>
</itemizedlist><bridgehead class="http://www.w3.org/1999/xhtml:h2"> Examples</bridgehead>
 The examples which follow, illustrating how RDF metadata about a product described at www.bestbuy.com can be requested in different formats, use a public Virtuoso Sponger service hosted at <ulink url="http://linkeddata.uriburner.com">http://linkeddata.uriburner.com</ulink>.
 For more information refer to the <ulink url="http://www.uriburner.com/wiki/URIBurner/">URIBurner Wiki</ulink>.<para>Notice how requests to /about/id are redirected to /about/html, /about/data/nt, /about/data/xml or /about/data/json depending on the requested format.
 The required URL rewriting rules are preconfigured when the cartridges VAD is installed.</para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> HTML+RDFa based metadata</bridgehead>
<programlisting>curl -I -H &quot;Accept: text/html&quot; &quot;http://linkeddata.uriburner.com/about/id/http/www.bestbuy.com/site/olspage.jsp?skuId=9491935&amp;type=product&amp;id=1218115079278&quot;

HTTP/1.1 303 See Other
Server: Virtuoso/05.11.3040 (Solaris) x86_64-sun-solaris2.10-64  VDB
Connection: close
Content-Type: text/html; charset=ISO-8859-1
Date: Tue, 01 Sep 2009 21:41:52 GMT
Accept-Ranges: bytes
Location: http://linkeddata.uriburner.com/about/html/http/www.bestbuy.com/site/olspage.jsp?skuId=9491935&amp;type=product&amp;id=1218115079278
Content-Length: 13
</programlisting><para>or </para>
<programlisting>curl -I -H &quot;Accept: application/xhtml+xml&quot; &quot;http://linkeddata.uriburner.com/about/id/http/www.bestbuy.com/site/olspage.jsp?skuId=9491935&amp;type=product&amp;id=1218115079278&quot;

HTTP/1.1 303 See Other
Server: Virtuoso/05.11.3040 (Solaris) x86_64-sun-solaris2.10-64  VDB
Connection: close
Content-Type: text/html; charset=ISO-8859-1
Date: Thu, 03 Sep 2009 14:33:45 GMT
Accept-Ranges: bytes
Location: http://linkeddata.uriburner.com/about/html/http/www.bestbuycom/site/olspage.jsp?skuId=9491935&amp;type=product&amp;id=1218115079278
Content-Length: 13 
</programlisting><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> N3 based metadata</bridgehead>
<programlisting>curl -I -H &quot;Accept: text/n3&quot; &quot;http://linkeddata.uriburner.com/about/id/http/www.bestbuy.com/site/olspage.jsp?skuId=9491935&amp;type=product&amp;id=1218115079278&quot;

HTTP/1.1 303 See Other
Server: Virtuoso/05.11.3040 (Solaris) x86_64-sun-solaris2.10-64  VDB
Connection: close
Date: Tue, 01 Sep 2009 21:38:44 GMT
Accept-Ranges: bytes
TCN: choice
Vary: negotiate,accept
Content-Location: /about/data/nt/http/www.bestbuy.com/site/olspage.jsp?skuId=9491935%26type=product%26id=1218115079278
Content-Type: text/n3; qs=0.8
Location: http://linkeddata.uriburner.com/about/data/nt/http/www.bestbuy.com/site/olspage.jsp?skuId=9491935%26type=product%26id=1218115079278
Content-Length: 13
</programlisting><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> RDF/XML based metadata</bridgehead>
<programlisting>curl -I -H &quot;Accept: application/rdf+xml&quot; &quot;http://linkeddata.uriburner.com/about/id/http/www.bestbuy.com/site/olspage.jsp?skuId=9491935&amp;type=product&amp;id=1218115079278&quot;

HTTP/1.1 303 See Other
Server: Virtuoso/05.11.3040 (Solaris) x86_64-sun-solaris2.10-64  VDB
Connection: close
Date: Tue, 01 Sep 2009 21:33:23 GMT
Accept-Ranges: bytes
TCN: choice
Vary: negotiate,accept
Content-Location: /about/data/xml/http/www.bestbuy.com/site/olspage.jsp?skuId=9491935%26type=product%26id=1218115079278
Content-Type: application/rdf+xml; qs=0.95
Location: http://linkeddata.uriburner.com/about/data/xml/http/www.bestbuy.com/site/olspage.jsp?skuId=9491935%26type=product%26id=1218115079278
Content-Length: 13
</programlisting><para> </para>
<bridgehead class="http://www.w3.org/1999/xhtml:h3"> JSON based metadata</bridgehead>
<programlisting>curl -I -H &quot;Accept: application/rdf+json&quot; &quot;http://linkeddata.uriburner.com/about/id/http/www.bestbuycom/site/olspage.jsp?skuId=9491935&amp;type=product&amp;id=1218115079278&quot;

HTTP/1.1 303 See Other
Server: Virtuoso/05.11.3040 (Solaris) x86_64-sun-solaris2.10-64  VDB
Connection: close
Date: Tue, 01 Sep 2009 11:22:52 GMT
Accept-Ranges: bytes
TCN: choice
Vary: negotiate,accept
Content-Location: /about/data/json/http/www.bestbuycom/site/olspage.jsp?skuId=9491935%26type=product%26id=1218115079278
Content-Type: application/rdf+json; qs=0.7
Location: http://linkeddata.uriburner.com/about/data/json/http/www.bestbuycom/site/olspage.jsp?skuId=9491935%26type=product%26id=1218115079278
Content-Length: 13
</programlisting><para> <emphasis><ulink url="VirtDeployingLinkedDataGuide">Back</ulink></emphasis> to Deploying Linked Data Guide | <emphasis><ulink url="VirtDeployingLinkedDataGuide_description_vsp">Previous:</ulink></emphasis> Appendix A: Description.vsp - Rendering RDF as HTML | <emphasis><ulink url="VirtDeployingLinkedDataGuide_Glossary">Next:</ulink></emphasis> Glossary </para>
</section></docbook>