Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

363 lines (332 sloc) 24.286 kB
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>omnidator</title>
<link rel="stylesheet" href="/css/overcast/jquery-ui-1.8.13.custom.css" type="text/css" media="all" />
<link rel="stylesheet" href="/css/style.css" type="text/css" />
<script src="/js/jquery-1.4.2.min.js"></script>
<script src="/js/jquery-ui-1.8.13.custom.min.js"></script>
<script src="/js/omnidator.js"></script>
</head>
<body>
<a href="https://github.com/mhausenblas/omnidator"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://d3nwyuy0nl342s.cloudfront.net/img/edc6dae7a1079163caf7f17c60495bbb6d027c93/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub"></a>
<h1>omni<span class="damped">potent</span>dat<span class="damped">a</span><span class="damped">translat</span>or</h1>
<div id="menu">
<span id="translate" class="active">Translate</span>
<span id="API">API</span>
<span id="about">About</span>
</div>
<div id="translate-content">
<h2>Translate <a href="http://schema.org/">Schema.org</a> data</h2>
<!-- <p>URL of the document to translate:</p> -->
<div class="ui-widget">
<input type="url" id="docURL" size="60" placeholder="URL of the input data source" /> <button id="doTranslate">translate!</button>
<div id="translate-examples-content">Examples: <span class="translate-examples">CSV to JSON</span> · <span class="translate-examples">Microdata to RDF/Turtle</span></div>
<div id="fromtosel">
from:
<select id="from" size="1">
<option value="csv">CSV</option>
<option value="microdata">HTML/Microdata</option>
</select>
to:
<select id="to" size="1">
<option value="json">JSON</option>
<option value="rdf-xml">RDF/XML</option>
<option value="rdf-turtle">RDF/Turtle</option>
</select>
</div>
</div>
<pre id="resultcontainer"><code id="result"></code></pre>
</div><!-- END OF TRANSLATE SECTION -->
<div id="API-content">
<h2>API</h2>
<p>The omnidator provides a set of simple <a href="http://enable-cors.org/" title="enable cross-origin resource sharing">CORS-enabled</a> APIs to translate <em>from</em> various data formats that use <a href="http://schema.org/" title="schema.org - Home">Schema.org</a> terms <em>to</em> various data formats:</p>
<ul>
<li><a href="#main-api">Main API</a></li>
<li><a href="#low-level-api">Low-level API</a></li>
<li><a href="#md-api">Microdata API</a></li>
</ul>
<h3 id="main-api">Main API</h3>
<div class="API">
http://omnidator.appspot.com/{from}/{to}/?url={URL}
</div>
<p>The <code>{from}</code> and <code>{to}</code> specifies the respective input and output format and can take <a href="in/out/" title="">the following values</a>:</p>
<pre><code>INPUT FORMATS:
microdata
csv
OUTPUT FORMATS:
json (served as: application/json)
rdf-xml (served as: application/rdf+xml)
rdf-turtle (served as: text/turtle)</code></pre>
<p>The <code>{URL}</code> is the HTTP URI (address) of the data source, such as a HTML+microdata document or a CSV file.</p>
<p>For example, invoking the omnidator API as follows (for translating a <a href="https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv">CSV file</a> that uses Schema.org terms in the header):</p>
<div class="API">
<a href="csv/json/?url=https%3A%2F%2Fraw.github.com%2Fmhausenblas%2Fschema-org-rdf%2Fmaster%2Ftools%2Fschema-gateway%2Ftest%2Fsolar-system.csv" target="_blank">http://omnidator.appspot.com/csv/json/?url=https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv</a>
</div>
<p>yields the following JSON data:</p>
<pre><code>{
&quot;@&quot;: [
{
&quot;a&quot;: &quot;&lt;http://schema.org/URL&gt;&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:3&quot;,
&quot;rdf:value&quot;: &quot;&lt;http://dbpedia.org/resource/Earth&gt;&quot;
},
{
&quot;a&quot;: &quot;&lt;http://schema.org/Mass&gt;&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:2&quot;,
&quot;rdf:value&quot;: &quot;1.988435x10^30 kg&quot;
},
{
&quot;http://purl.org/dc/terms/title&quot;: &quot;Thing&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:1&quot;
},
{
&quot;http://purl.org/dc/terms/title&quot;: &quot;row 2&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2&quot;,
&quot;http://purl.org/NET/schema-org-csv#cell&quot;: [
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:1&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:2&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:3&gt;&quot;
],
&quot;a&quot;: &quot;&lt;http://purl.org/NET/schema-org-csv#Row&gt;&quot;
},
{
&quot;a&quot;: &quot;&lt;http://schema.org/Thing&gt;&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:1&quot;,
&quot;rdf:value&quot;: &quot;Mars&quot;
},
{
&quot;http://purl.org/dc/terms/title&quot;: &quot;row 3&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3&quot;,
&quot;http://purl.org/NET/schema-org-csv#cell&quot;: [
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:2&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:3&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:1&gt;&quot;
],
&quot;a&quot;: &quot;&lt;http://purl.org/NET/schema-org-csv#Row&gt;&quot;
},
{
&quot;a&quot;: &quot;&lt;http://schema.org/URL&gt;&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:3&quot;,
&quot;rdf:value&quot;: &quot;&lt;http://dbpedia.org/resource/Sun&gt;&quot;
},
{
&quot;a&quot;: &quot;&lt;http://schema.org/URL&gt;&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:3&quot;,
&quot;rdf:value&quot;: &quot;&lt;http://dbpedia.org/resource/Mars&gt;&quot;
},
{
&quot;http://purl.org/dc/terms/title&quot;: &quot;row 4&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4&quot;,
&quot;http://purl.org/NET/schema-org-csv#cell&quot;: [
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:3&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:2&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:1&gt;&quot;
],
&quot;a&quot;: &quot;&lt;http://purl.org/NET/schema-org-csv#Row&gt;&quot;
},
{
&quot;a&quot;: &quot;&lt;http://schema.org/Mass&gt;&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:2&quot;,
&quot;rdf:value&quot;: &quot;6.4191x10^23 kg&quot;
},
{
&quot;a&quot;: &quot;&lt;http://schema.org/Mass&gt;&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:2&quot;,
&quot;rdf:value&quot;: &quot;5.9721986x10^24 kg&quot;
},
{
&quot;a&quot;: &quot;&lt;http://schema.org/Thing&gt;&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:1&quot;,
&quot;rdf:value&quot;: &quot;Sun&quot;
},
{
&quot;http://purl.org/dc/terms/title&quot;: &quot;header&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1&quot;,
&quot;http://purl.org/NET/schema-org-csv#cell&quot;: [
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:2&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:1&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:3&gt;&quot;
],
&quot;a&quot;: &quot;&lt;http://purl.org/NET/schema-org-csv#HeaderRow&gt;&quot;
},
{
&quot;a&quot;: &quot;&lt;http://schema.org/Thing&gt;&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:1&quot;,
&quot;rdf:value&quot;: &quot;Earth&quot;
},
{
&quot;http://purl.org/dc/terms/title&quot;: &quot;solar-system.csv&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#table&quot;,
&quot;http://purl.org/NET/schema-org-csv#row&quot;: [
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1&gt;&quot;,
&quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4&gt;&quot;
],
&quot;http://purl.org/dc/terms/source&quot;: &quot;&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv&gt;&quot;,
&quot;a&quot;: &quot;&lt;http://purl.org/NET/schema-org-csv#Table&gt;&quot;
},
{
&quot;http://purl.org/dc/terms/title&quot;: &quot;Mass&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:2&quot;
},
{
&quot;http://purl.org/dc/terms/title&quot;: &quot;URL&quot;,
&quot;@&quot;: &quot;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:3&quot;
}
],
&quot;#&quot;: {
&quot;xml&quot;: &quot;http://www.w3.org/XML/1998/namespace&quot;,
&quot;rdf&quot;: &quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;,
&quot;rdfs&quot;: &quot;http://www.w3.org/2000/01/rdf-schema#&quot;
}
}
</code></pre>
<h3 id="low-level-api">Low-Level API</h3>
<p>The omnidator also has a low-level API that takes data formats (the same as the above INPUT FORMATS) as input. We 'guess' the type of input format via sniffing, the output is fixed to RDF/Turtle - as you may guess, the low-level API is more for experimenting with omnidator's internal workings.
<div class="API">
http://omnidator.appspot.com/translate?url={URL}
</div>
<p>For example, invoking the omnidator API as follows (for a CSV file that uses Schema.org terms in the header):</p>
<div class="API">
<a href="translate?url=https%3A%2F%2Fraw.github.com%2Fmhausenblas%2Fschema-org-rdf%2Fmaster%2Ftools%2Fschema-gateway%2Ftest%2Fsolar-system.csv" target="_blank">http://omnidator.appspot.com/translate?url=https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv</a>
</div>
<p>yields the following RDF/Turtle data:</p>
<pre><code>@prefix dcterms: &lt;http://purl.org/dc/terms/&gt; .
@prefix rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt; .
@prefix scsv: &lt;http://purl.org/NET/schema-org-csv#&gt; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#table&gt; a &lt;http://purl.org/NET/schema-org-csv#Table&gt;;
scsv:row &lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4&gt;;
dcterms:source &lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv&gt;;
dcterms:title &quot;solar-system.csv&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1&gt; a &lt;http://purl.org/NET/schema-org-csv#HeaderRow&gt;;
scsv:cell &lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:1&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:2&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:3&gt;;
dcterms:title &quot;header&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:1&gt; dcterms:title &quot;Thing&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:2&gt; dcterms:title &quot;Mass&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:1,col:3&gt; dcterms:title &quot;URL&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2&gt; a &lt;http://purl.org/NET/schema-org-csv#Row&gt;;
scsv:cell &lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:1&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:2&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:3&gt;;
dcterms:title &quot;row 2&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:1&gt; a &lt;http://schema.org/Thing&gt;;
rdf:value &quot;Earth&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:2&gt; a &lt;http://schema.org/Mass&gt;;
rdf:value &quot;5.9721986x10^24 kg&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:2,col:3&gt; a &lt;http://schema.org/URL&gt;;
rdf:value &lt;http://dbpedia.org/resource/Earth&gt; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3&gt; a &lt;http://purl.org/NET/schema-org-csv#Row&gt;;
scsv:cell &lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:1&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:2&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:3&gt;;
dcterms:title &quot;row 3&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:1&gt; a &lt;http://schema.org/Thing&gt;;
rdf:value &quot;Mars&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:2&gt; a &lt;http://schema.org/Mass&gt;;
rdf:value &quot;6.4191x10^23 kg&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:3,col:3&gt; a &lt;http://schema.org/URL&gt;;
rdf:value &lt;http://dbpedia.org/resource/Mars&gt; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4&gt; a &lt;http://purl.org/NET/schema-org-csv#Row&gt;;
scsv:cell &lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:1&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:2&gt;,
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:3&gt;;
dcterms:title &quot;row 4&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:1&gt; a &lt;http://schema.org/Thing&gt;;
rdf:value &quot;Sun&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:2&gt; a &lt;http://schema.org/Mass&gt;;
rdf:value &quot;1.988435x10^30 kg&quot; .
&lt;https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/solar-system.csv#row:4,col:3&gt; a &lt;http://schema.org/URL&gt;;
rdf:value &lt;http://dbpedia.org/resource/Sun&gt; .</code></pre>
<p>Another example, a HTML page with Schema.org terms encoded in microdata:</p>
<div class="API">
<a href="translate?url=https%3A%2F%2Fraw.github.com%2Fmhausenblas%2Fschema-org-rdf%2Fmaster%2Ftools%2Fschema-gateway%2Ftest%2Fmd-test-1.html" target="_blank">http://omnidator.appspot.com/translate?url=https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/md-test-1.html</a>
</div>
<p>yields the following RDF/Turtle data:</p>
<pre><code>@prefix ns1: &lt;http://schema.org/Event#&gt; .
@prefix ns2: &lt;http://schema.org/Place#&gt; .
@prefix ns3: &lt;http://schema.org/AggregateOffer#&gt; .
@prefix ns4: &lt;http://schema.org/PostalAddress#&gt; .
&lt;http://example.org/event123&gt; a &lt;http://schema.org/Event&gt;;
ns1:location [ a &lt;http://schema.org/Place&gt;;
ns2:address [ a &lt;http://schema.org/PostalAddress&gt;;
ns4:addressLocality &quot;Philadelphia&quot;;
ns4:addressRegion &quot;PA&quot; ];
ns2:url &lt;wells-fargo-center.html&gt; ];
ns1:offers [ a &lt;http://schema.org/AggregateOffer&gt;;
ns3:lowPrice &quot;$35&quot;;
ns3:offerCount &quot;1,938&quot; ];
ns1:startDate &quot;2011-04-21T20:00&quot;;
ns1:url &lt;nba-miami-philidelphia-game3.html&gt; .
[] a &lt;http://schema.org/Event&gt; .</code></pre>
<h3 id="md-api">Microdata API</h3>
<p>You can use omnidator also to inspect microdata, like so:</p>
<div class="API">
http://omnidator.appspot.com/mdpretty?url={URL}
</div>
<p>For example, invoking the omnidator API as follows:</p>
<div class="API">
<a href="mdpretty?url=https%3A%2F%2Fraw.github.com%2Fmhausenblas%2Fschema-org-rdf%2Fmaster%2Ftools%2Fschema-gateway%2Ftest%2Fmd-test-1.html" target="_blank">http://omnidator.appspot.com/mdpretty?url=https://raw.github.com/mhausenblas/schema-org-rdf/master/tools/schema-gateway/test/md-test-1.html</a>
</div>
<p>yields the following (text/plain) rendering of the contained items:</p>
<pre><code>********************************************************************************
7 data items found in total:
--------------------------------------------------------------------------------
ITEM (http://example.org/event123) OF TYPE (http://schema.org/Event) {
url = nba-miami-philidelphia-game3.html
startDate = 2011-04-21T20:00
offers ->
ITEM (anonymous::cb1f06fa-94f2-11e0-a963-0d6c9d121c6d) OF TYPE (http://schema.org/AggregateOffer) {
lowPrice = $35
offerCount = 1,938
}
location ->
ITEM (anonymous::cb1f0a87-94f2-11e0-be0d-0d6c9d121c6d) OF TYPE (http://schema.org/Place) {
url = wells-fargo-center.html
address ->
ITEM (anonymous::cb1f0d11-94f2-11e0-8a1d-0d6c9d121c6d) OF TYPE (http://schema.org/PostalAddress) {
addressLocality = Philadelphia
addressRegion = PA
}
}
}
--------------------------------------------------------------------------------
ITEM (http://example.org/event456) {
}
--------------------------------------------------------------------------------
ITEM (anonymous::cb1f123a-94f2-11e0-a890-0d6c9d121c6d) OF TYPE (http://schema.org/Event) {
}
--------------------------------------------------------------------------------
ITEM (anonymous::cb1f1423-94f2-11e0-916f-0d6c9d121c6d) {
}</code></pre>
</div><!-- END OF API SECTION -->
<div id="about-content">
<h2>What is omnidator about?</h2>
<p>Conceptually, omnidator takes whatever kind of data format that uses Schema.org terms and turns it into any other kind of data format. The following overview diagram renders omnidator's functionality on an abstract level:</p>
<div class="fig"><img src="/img/omnidator-concept.png" alt="omnidator concept"></div>
<p>The omnidator eats <em>any kind of data formats</em> - well, actually at the time only microdata and CSV - and translates it to the data lingua franca RDF. It then <em>translates the data to any other target data formats</em>. Currently JSON and RDF serialisations (RDF/XML and RDF/Turtle) are supported for the output, but we're working on the others, seriously ;).</p>
<h2>Components</h2>
Technically, omnidator is a web application written in Python, deployed on <a href="http://code.google.com/appengine/">Google App Engine</a>, using the following components:
<ul>
<li><a href="https://github.com/mhausenblas/schema-org-rdf/tree/master/tools/schema-gateway">Schema.org gateway</a>, which, in turn, uses:
<ul>
<li>Ed Summers' <a href="https://github.com/edsu/rdflib-microdata">rdflib-microdata</a> rdflib-plugin for processing microdata.</li>
<li>A bespoke <a href="https://github.com/mhausenblas/schema-org-rdf/blob/master/tools/schema-gateway/rdflib_schemaorg_csv.py">rdflib-plugin</a> for processing CSV data (part of the Schema.org gateway) along with a <a href="http://vocab.deri.ie/scsv">vocabulary</a> to express the structure of the table.</li>
</ul>
<li>The <a href="http://code.google.com/p/rdflib/">RDFLib</a> library for processing RDF, the internal data representation.</li>
<li>The <a href="http://schema.org/docs/full.html">Schema.org terms</a>, to be more precise, the <a href="http://schema.rdfs.org/">Schema.RDFS.org</a> reformulations in <a href="http://www.w3.org/TR/rdf-schema/">RDFS</a>.</li>
</ul>
</div><!-- END OF ABOUT SECTION -->
<div id="footer">
<div id="footer-content">Last update on: 2011-06-15 | <a href="https://github.com/mhausenblas/omnidator">Code</a> is Public Domain | Complaints? Suggestions? Contact <a href="mailto:&#x6D;&#x69;&#x63;&#x68;&#x61;&#x65;&#x6C;&#x2E;&#x68;&#x61;&#x75;&#x73;&#x65;&#x6E;&#x62;&#x6C;&#x61;&#x73;&#x40;&#x67;&#x6D;&#x61;&#x69;&#x6C;&#x2E;&#x63;&#x6F;&#x6D;">us</a>! | <a href="http://code.google.com/appengine/"><img src="http://code.google.com/appengine/images/appengine-noborder-120x30.gif" alt="Powered by Google App Engine" style="width: 80px; float:right; margin:0"/></a>
</div>
</div>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.