W3C home > Mailing lists > Public > public-esw-thes@w3.org > February 2010

Re: Markup of SKOS in HTML

From: Stephen Bounds <km@bounds.net.au>
Date: Tue, 23 Feb 2010 00:00:36 +1100
Message-ID: <4B827FF4.1060006@bounds.net.au>
To: SKOS <public-esw-thes@w3.org>
CC: Kevin Rapley <kevin@digikev.co.uk>
Hi Kevin,

The use of embedded RDF in HTML documents (which includes SKOS) is still 
very much a matter of flux and debate, and tends to overlap with 
concepts such as microformats.

I believe that the closest that exists to a standard is the RDF/a draft 
which you can find at http://www.w3.org/2006/07/SWD/RDFa/.

The syntax provided there doesn't quite match what you have used.  I 
believe the RDFa-compliant markup is something like:

<ol class="menu" typeof="skos:Concept" 
about="http://ukwildlife.co.uk/concepts#wildlife"
     rel="skos:narrower">

     <li typeof="skos:Concept" 
about="http://ukwildlife.co.uk/concepts#mammals">
         <a href="/galleries/mammals/" property="skos:prefLabel">Mammals</a>
     </li>
     <li typeof="skos:Concept" 
about="http://ukwildlife.co.uk/concepts#birds">
         <a href="/galleries/birds-ornithology/" 
property="skos:prefLabel">Birds</a>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#ornithology">Ornithology</span>
     </li>
     <li typeof="skos:Concept" 
about="http://ukwildlife.co.uk/concepts#odonata">
         <a href="/galleries/odonata-dragonflies-damselflies/" 
rel="skos:prefLabel">Odonata</a>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#dragonflies">Dragonflies</span>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#damselflies">Damselflies</span>
     </li>
     <li typeof="skos:Concept" 
about="http://ukwildlife.co.uk/concepts#insects">
         <a href="/galleries/insects/" property="skos:prefLabel">Insects</a>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#arthropod">arthropod</span>
     </li>
     <li typeof="skos:Concept" 
about="http://ukwildlife.co.uk/concepts#fungi">
         <a href="/galleries/fungi/" property="skos:prefLabel">Fungi</a>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#mushrooms">Mushrooms</span>
     </li>
     <li typeof="skos:Concept" 
about="http://ukwildlife.co.uk/concepts#spiders">
         <a href="/galleries/spiders-arachnida/" 
property="skos:prefLabel">Spiders</a>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#arachnida">Arachnida</span>
     </li>
     <li typeof="skos:Concept" 
about="http://ukwildlife.co.uk/concepts#butterflies">
         <a href="/galleries/butterflies-papilionoidea/" 
property="skos:prefLabel">Butterflies</a>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#papilionoidea">Papilionoidea</span>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#moths">Moths</span>
     </li>
     <li typeof="skos:Concept" 
about="http://ukwildlife.co.uk/concepts#amphibians">
         <a href="/galleries/amphibians-frogs-toads-newts/" 
property="skos:prefLabel">Amphibians</a>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#frogs">Frogs</span>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#toads">Toads</span>
         <span rel="skos:related" 
resource="http://ukwildlife.co.uk/concepts#newts">Newts</span>
     </li>
</ol>

I've tweaked this a little to make it explicit that each <li> item is 
classed as being <skos:narrower> of the #wildlife parent.  This seems 
like what you would want, but I'm not sure.

Cheers,

-- Stephen.


Kevin Rapley wrote:
> Hello all,
> 
> I am new to this list and also new to much of the semantic web. Please excuse my current ignorance, I hope by reading the specs and joining in here I will reach a higher level of understanding. But, for the time being my questions may be a little on the amateur side, please bare with me.
> 
> I am currently marking up the following:
> 
>                 <div id="aside">
>                     
>                     <div id="section-nav">
>                         <!--
>                             Simple Knowledge Organization System (SKOS) used to specify wildlife categories that are
>                             present within UK Wildlife
>                         -->
>                         <ol class="menu" rel="skos:Concept rdf:about=http://ukwildlife.co.uk/concepts#wildlife">
>                             <li>
>                                 <a href="/galleries/mammals/" property="skos:prefLabel">Mammals</a>
>                             </li>
>                             <li>
>                                 <a href="/galleries/birds-ornithology/" property="skos:prefLabel">Birds</a>
>                                 <span property="skos:related">Ornithology</span>
>                             </li>
>                             <li>
>                                 <a href="/galleries/odonata-dragonflies-damselflies/" property="skos:prefLabel">Odonata</a>
>                                 <span property="skos:related">Dragonflies</span>
>                                 <span property="skos:related">Damselflies</span>
>                             </li>
>                             <li>
>                                 <a href="/galleries/insects/" property="skos:prefLabel">Insects</a>
>                                 <span property="skos:related">arthropod </span>
>                             </li>
>                             <li>
>                                 <a href="/galleries/fungi/" property="skos:prefLabel">Fungi</a>
>                                 <span property="skos:related">Mushrooms</span>
>                             </li>
>                             <li>
>                                 <a href="/galleries/spiders-arachnida/" property="skos:prefLabel">Spiders</a>
>                                 <span property="skos:related">Arachnida</span>
>                             </li>
>                             <li>
>                                 <a href="/galleries/butterflies-papilionoidea/" property="skos:prefLabel">Butterflies</a>
>                                 <span property="skos:related">Papilionoidea</span>
>                                 <span property="skos:related">Moths</span>
>                             </li>
>                             <li>
>                                 <a href="/galleries/amphibians-frogs-toads-newts/" property="skos:prefLabel">Amphibians</a>
>                                 <span property="skos:related">Frogs</span>
>                                 <span property="skos:related">Toads</span>
>                                 <span property="skos:related">Newts</span>
>                             </li>
>                         </ol>
>                     </div><!-- / #section-nav -->
>                     
>                 </div><!-- / #aside -->
> 
> This is also available at http://ukwildlife.digikev.co.uk/galleries/
> 
> The idea being to categorise a menu of gallery items relating to wildlife in the UK and related labelling systems. I am certain I have much wrong and would like some pointers. I have tried to search for marking up SKOS within HTML but haven't found a reliable resource yet. Many of the examples are XML based. If you are able to point me towards some SKOS in HTML examples and/or tutorials this would be fab.
> 
> I look forward to being enlightened.
> 
> /*=========================================*/
> Kevin Rapley
> DigiKev
> 07723457862
> kevin@digikev.co.uk
> http://digikev.co.uk | Twitter: @digikev
> /*=========================================*/
Received on Monday, 22 February 2010 13:01:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 2 March 2016 13:32:13 UTC