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>/contentThe HTTP POST method requires the request body to comply with the following pattern:
content=<data>Example 1: Translate raw data
curl --data-urlencode content="@prefix : <http://example.org/#> . :a :b :c ." \ http://rdf-translator.appspot.com/convert/n3/nt/contentExample 2: Translate file contents (save to a file with proper file extension)
curl --data-urlencode firstname.lastname@example.org http://rdf-translator.appspot.com/convert/rdfa/n3/content > example.n3
Eligible values that can be supplied for source and target data formats are:
rdfa | microdata | xml | n3 | nt | json-ld | 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 | json-ld
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:
This service is built on top of RDFLib 5.0.0, an RDF library which allows to parse and serialize between data formats. Furthermore, it is using pyRdfa for RDFa 1.1 parsing, pyMicrodata for Microdata parsing, and rdflib-jsonld for parsing and serializing JSON-LD. For the conversion to RDFa and Microdata we implemented custom serialization mechanisms based on RDFLib's RDF/XML serializer. Unknown namespace prefixes are determined automatically using the prefix.cc namespace lookup of Richard Cyganiak.
Alex Stolz, Bene Rodriguez-Castro, and Martin Hepp: RDF Translator: A RESTful Multi-Format Data Converter for the Semantic Web. Technical Report TR-2013-1, E-Business and Web Science Research Group, 2013.
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
D-85579 Neubiberg, Germany
E-mail: tools (at) ebusiness-unibw.org
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 Education and Research (BMBF) by a grant under the KMU Innovativ program as part of the Intelligent Match project (FKZ 01IS10022B).