script to automatically include the mapping tables into the Ontology document.

Wonsuk,

I have written a simple PHP script executed on the W3C server to 
automatically include the mapping tables into the Ontology document.

It will include files from the CR directory
http://www.w3.org/2008/WebVideo/Annotations/drafts/ontology10/CR/


In order to automatically include the mapping table:



please replace the mapping table you have copied in the ontology 
document by the following code:

--------------------------------------
<div class="div3">
<h4><a name="mapping-table" id="mapping-table"></a>4.2.2 The mapping 
table</h4>

<p>The following mappings are established from the Media Ontology's core
properties to various multimedia metadata formats. This list of formats 
is not
closed, nor does it pretend to be exhaustive. A future version of this
specification MAY include additional mappings if a need or use case is
established for these new mappings.</p>


<div class="div4">
<h5><a name="CableLabs1.1" id="CableLabs1.1"></a>4.2.2.1 CableLabs 1.1</h5>
<?php include 'CableLabs1.html'; ?>
</div>

<div class="div4">
<h5><a name="DIG" id="DIG"></a>4.2.2.2 DIG</h5>
<?php include 'DIG.html'; ?></div>

<div class="div4">
<h5><a name="EBUCore" id="EBUCore"></a>4.2.2.3 EBUCore</h5>
<?php include 'EBUCore.html'; ?></div>

<div class="div4">
<h5><a name="EXIF" id="EXIF"></a>4.2.2.4 EXIF</h5>
<?php include 'EXIF.html'; ?></div>

<div class="div4">
<h5><a name="ID3" id="ID3"></a>4.2.2.5 ID3</h5>
<?php include 'ID3.html'; ?></div>

<div class="div4">
<h5><a name="IPTC" id="IPTC"></a>4.2.2.6 IPTC</h5>
<?php include 'IPTC.html'; ?></div>

<div class="div4">
<h5><a name="LOM" id="LOM"></a>4.2.2.7 LOM</h5>
<?php include 'LOM.html'; ?></div>

<div class="div4">
<h5><a name="MediaRDF" id="MediaRDF"></a>4.2.2.8 MediaRDF</h5>
<?php include 'MediaRDF.html'; ?></div>

<div class="div4">
<h5><a name="MediaRSS" id="MediaRSS"></a>4.2.2.9 MediaRSS</h5>
<?php include 'MediaRSS.html'; ?></div>

<div class="div4">
<h5><a name="d0e6402" id="d0e6402"></a>4.2.2.10 METS</h5>
<?php include 'METS.html'; ?></div>

<div class="div4">
<h5><a name="MPEG7" id="MPEG7"></a>4.2.2.11 MPEG7</h5>
<?php include 'MPEG7.html'; ?></div>

<div class="div4">
<h5><a name="OGG" id="OGG"></a>4.2.2.12 OGG</h5>
<?php include 'OGG.html'; ?></div></div>

<div class="div4">
<h5><a name="d0e7626" id="d0e7626"></a>4.2.2.13 SMTPD</h5>
<?php include 'SMTPD.html'; ?></div>

<div class="div4">
<h5><a name="TVA" id="TVA"></a>4.2.2.14 TVA</h5>
<?php include 'TVA.html'; ?></div>

<div class="div4">
<h5><a name="TXFeed" id="TXFeed"></a>4.2.2.15 TXFeed</h5>
<?php include 'TXFeed.html'; ?></div>

<div class="div4">
<h5><a name="XMP" id="XMP"></a>4.2.2.16 XMP</h5>
<?php include 'XMP.html'; ?></div>

<div class="div4">
<h5><a name="YouTube" id="YouTube"></a>4.2.2.17 YouTube</h5>
<?php include 'YouTube.html'; ?></div>

</div>
------------------------------------------




Once you have generated the output of the Ontology document;

copy it into this directory
http://www.w3.org/2008/WebVideo/Annotations/drafts/ontology10/CR/

and rename it with the .php extension.

here is an example of what the php script produces.
http://www.w3.org/2008/WebVideo/Annotations/drafts/ontology10/CR/Ontology1.0.php

If you have any issue let me know,

Thierry.

Received on Tuesday, 15 June 2010 20:54:40 UTC