Parses microformats, RDFa, RDF/XML, Turtle and N-Triples.
Pick an output format and enter the URI of a web document:
http://.../ best turtle ntriples rdfxml /
Input format: auto-detect Turtle (text/turtle) N-Triples (text/plain) RDF/XML (application/rdf+xml) Output format: best (content-negotiated) turtle ntriples rdfxml @prefix foaf: <http://xmlns.com/foaf/0.1/> . [] a foaf:Person; foaf:name "John X. Foobar"; foaf:mbox_sha1sum "cef817456278b70cee8e5a1611539ef9d928810e"; .
http://.../best/twitter.com/cygri
http://.../rdfxml/http://data.gov
http://.../ttl/http://www.w3.org/People/Berners-Lee/card
http://.../?uri=http://dbpedia.org/resource/Berlin
http://.../?format=nt&uri=http://dbpedia.org/resource/Berlin
HTTP GET requests can be made to URIs of the shape
http://.../format/input-uri
The response is the input document converted to the desired output format.
HTTP GET requests can be made to the URI http://.../ with the following query parameters:
http://.../
best
HTTP POSTing a document body to http://.../format will convert the document to the specified output format. The media type of the input has to be specified in the Content-Type HTTP header. Depending on the servlet container, a Content-Length header specifying the length of the input document in bytes might also be required. Typical media types for supported input formats are:
http://.../format
Content-Type
Content-Length
text/html
application/rdf+xml
text/turtle
text/plain
Example POST request:
POST /rdfxml HTTP/1.0 Host: example.com Content-Type: text/turtle Content-Length: 174 @prefix foaf: <http://xmlns.com/foaf/0.1/> . [] a foaf:Person; foaf:name "John X. Foobar"; foaf:mbox_sha1sum "cef817456278b70cee8e5a1611539ef9d928810e"; .
A document body can also be converted by HTTP POSTing form data to http://.../. The Content-Type HTTP header must be set to application/x-www-form-urlencoded. The following parameters are supported:
application/x-www-form-urlencoded
Supported output format identifiers are:
Accept
turtle
ttl
n3
ntriples
nt
rdfxml
rdf
xml
Processing errors are indicated via HTTP status codes and brief text/plain error messages. The following status codes can be returned:
any23 homepage | DERI Galway