W3C home > Mailing lists > Public > w3c-wai-er-ig@w3.org > December 2000

Re: Comments/Quibble on "Making Classes Accessible"

From: Sean B. Palmer <sean@mysterylights.com>
Date: Fri, 8 Dec 2000 20:16:09 -0000
Message-ID: <00bd01c06156$b37d7800$d8d993c3@z5n9x1>
To: "Charles McCathieNevile" <charles@w3.org>
Cc: <w3c-wai-er-ig@w3.org>, "Leonard R. Kasday" <kasday@acm.org>
> CMN This [1] seems really nice to me....

Thanks. I was quite pleased with the result myself. Very neat.

>   [[[
>   However, from a practical point of view, it's simpler to say
>       .p1 {title: "priority 1 checkpoint" }
>   ]]] - ibid.
>
> CMN I figure that the value in this would be in building a different
syntax
> that read CSS-style syntax - i.e. use a CSS parser as the basis for
selecting
> the subject, and then the predicate/object become propety and value
> respectively.

So, in other words: CSS => RDF.
.'. If you had

.p1 { title: "priority 1 checkpoint"; }
You could have the ".p1" as the subject (rdf:about="[@class='p1']"), "title"
as the predicate (@rdf:value, @rdf:predicate, or @dc:title. Maybe as it is
specific to being a CSS property, we would need to assign it a new value in
an RDF Schema/namespace), and "priority 1 checkpoint" as the object
(hmmmm.....I used rdfs:label; a good choice in this case, I believe). You
could quite easily generate something like the following:-

  <rdf:RDF
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:css="http://www.w3.org/2000/12/RDF-cssproperty#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
    <rdf:Description rdf:about="[@class='p1']"
        css:property="title">
      <rdfs:label rdf:ID="p1c">Priority 1 Checkpoint</rdfs:label>
    </rdf:Description>
    <rdf:Description rdf:about="#p1c">
      <rdfs:isDefinedBy
         rdf:resource="http://www.w3.org/TR/WCAG10/#priorities"/>
    </rdf:Description>
  </rdf:RDF>

Notice that I have used my own peculiar style of "quadding" here: I like
using rdf:ID's and then refering to them elsewhere because it can be parsed
very easily. Note that once again it parses neatly in SiRPAC.

> Personally I hate writing any syntax. But I guess this would be a
> neat tool for doing stuff locally if you had a quick generator that
> translated it to RDF syntax as per the recommendation (which,
> after all, is what should be ued as a transport syntax and understood
> somehow so that we keep interroperability)

As long as a syntax is kept as neat as it possibly can be, then it will work
(word of caution: apply that principle to EDL!). It would be a very neat
output going from CSS => RDF, as I have demonstrated, and it probably
wouldn't be too difficult to integrate it with ADL [sic].

[1] Here is the original bit of RDF:-
>   <rdf:RDF
>      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>      xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
>     <rdf:Description rdf:about="[@class='p1']">
>       <rdfs:label>Priority 1 Checkpoint</rdfs:label>
>       <rdfs:isDefinedBy
>          rdf:resource="http://www.w3.org/TR/WCAG10/#priorities" />
>     </rdf:Description>
>   </rdf:RDF>

Kindest Regards,
Sean B. Palmer
http://www.mysterylights.com/sbp/
"Perhaps, but let's not get bogged down in semantics."
   - Homer J. Simpson, BABF07.
Received on Friday, 8 December 2000 15:37:51 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 9 June 2005 12:10:37 GMT