RE: Complexity of RDFa

On Thu, 2010-04-01 at 10:46 +0200, Hondros, Constantine wrote:
> <>  a cw:LawFragment;
>     cw:infoClass cw:LegislationRegulation;
>     ltr:referenceInformation _:b0 .
>      _:b0 a ltr:ReferenceInformation;         officialPublication
> <http://some.uri>;         ltr:applicablePeriod _:b1 .
>          _b:1 a ltr:ApplicablePeriod ;             cw:startDate
> "2009-04-24T00:00:00+01:00"^^xsd:dateTime ;             cw:endDate
> "2010-04-24T00:00:00+01:00"^^xsd:dateTime .
> 
> I see real complexity trying to represent this inline with RDFa. For
> example, the date literals will certainly be in the body of the
> document, so should I create a typed blank node in situ, and reference
> it from the more general metadata in the top of the document? 

<body typeof="cw:LawFragment"
      xmlns:cw="http://example.com/cw#"
      xmlns:ltr="http://example.com/ltr#"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

  <h1>
    <span rel="cw:infoClass"
    resource="[cw:LegislationRegulation]">Legislation Regulation:</span>
    number 123
  </h1>

  <p rel="ltr:referenceInformation">
    Official publication: <a rel="ltr:officialPublication"
      href="http://example.com/some.uri">http://example.com/some.uri</a>
    <br rel="rdf:type" resource="[ltr:ReferenceInformation]" />
    <span rel="lrt:applicablePeriod">(
      <span rel="rdf:type" resource="[ltr:ApplicablePeriod]"
        property="cw:startDate" datatype="xsd:dateTime"
        content="2009-04-24T00:00:00+01:00">24/04/09</span> until
      <span property="cw:startDate" datatype="xsd:dateTime"
        content="2010-04-24T00:00:00+01:00">24/04/10</span>
    )</span>
  </p>

</body>

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Thursday, 1 April 2010 09:25:03 UTC