RDF Translator is a multi-format conversion tool for structured markup. It provides translations between data formats ranging from RDF/XML to RDFa or Microdata. The service allows for conversions triggered either by URI or by direct text input. Furthermore it comes with a straightforward REST API for developers.
This on-line service provides an easily accessible API which allows for a couple of access methods:
http://rdf-translator.appspot.com/convert/<source>/<target>/<uri>Examples:
http://rdf-translator.appspot.com/convert/<source>/<target>/html/<uri>Examples:
http://rdf-translator.appspot.com/convert/<source>/<target>/contentThe HTTP POST method requires the request body to comply with the following pattern:
content=<data>Example:
curl -d "content=@prefix : <http://example.org/#> . :a :b :c ." http://rdf-translator.appspot.com/convert/n3/nt/content
Eligible values that can be supplied for source and target data formats are:
rdfa | microdata | xml | n3 | nt | rdf-json | json-ld | trix | detectThe usage of the detect parameter will prompt the service to try to determine the input format automatically. But caution: Though being a fairly powerful feature, it will not work for every kind of input (e.g. the data format of textual input cannot be recognized).
rdfa | microdata | pretty-xml | xml | n3 | nt | rdf-json-pretty | rdf-json | json-ld | trix
You may want to add some of the links below to your bookmarks. That way you can easily show the contained markup of any page in your preferred syntaxes. In recent browsers for example, simply drag one of the bookmark items from the matrix below into the bookmark bar:
| Output | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| rdfa | microdata | pretty-xml | xml | n3 | nt | rdf-json-pretty | rdf-json | json-ld | trix | ||
| Input | [detect] |
|
|
|
|
|
|
|
|
|
|
| rdfa |
|
|
|
|
|
|
|
|
|
| |
| microdata |
|
|
|
|
|
|
|
|
|
| |
| xml |
|
|
|
|
|
|
|
|
|
| |
| n3 |
|
|
|
|
|
|
|
|
|
| |
| nt |
|
|
|
|
|
|
|
|
|
| |
| rdf-json |
|
|
|
|
|
|
|
|
|
| |
| json-ld |
|
|
|
|
|
|
|
|
|
| |
| trix |
|
|
|
|
|
|
|
|
|
|
|
The source code of this tool is available under a LPGL license from here.
This service is built on top of RDFLib 3.2.0, an RDF library which allows to parse and serialize between data formats. For the translation between Microdata and other file formats it is using Ed Summers' Microdata plugin, for RDF/JSON and JSON-LD the plugin as available in the RDFLib add-on package RDFExtras. The conversion to RDFa and Microdata is borrowed from preliminary works done in RDF2RDFa and RDF2Microdata, both service frontends to a converter package developed by Roberto García in the ReDeFer project. Unknown namespace prefixes are tried to determine automatically using the prefix.cc namespace lookup of Richard Cyganiak.
Univ.-Prof. Dr. Martin Hepp
E-Business and Web Science Research Group, Chair of General Management and E-Business
Universität der Bundeswehr München
Werner-Heisenberg-Weg 39
D-85579 Neubiberg, Germany
Phone: +49-89-6004-4217
E-mail: tools (at) ebusiness-unibw.org
http://www.unibw.de/ebusiness/
This tool has been developed by Alex Stolz, a member of the E-Business and Web Science Research Group at Universität der Bundeswehr München. The author would like to thank Martin Hepp and Andreas Radinger for constructive feedback and ongoing substantial contributions to this project.
The work on RDF Translator has been supported by the German Federal Ministry of Research (BMBF) by a grant under the KMU Innovativ program as part of the Intelligent Match project (FKZ 01IS10022B).