W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 2001

Re: [CSS-TECHS] List of CSS Values cross referenced with Properties?

From: Sean B. Palmer <sean@mysterylights.com>
Date: Sat, 10 Nov 2001 22:10:17 -0000
Message-ID: <013601c16a34$c250bf80$4ed993c3@localhost>
To: "Dan Brickley" <danbri@w3.org>
Cc: <w3c-wai-gl@w3.org>, "Al Gilman" <asgilman@iamdigex.net>, <libby.miller@bristol.ac.uk>
> Similarly, appliesTo is currently rather prosy. In RDF I'd be
> tempted to use rdfs:domain for this though that'd require
> defining classes for the (HTML? XHTML? XML?) elements
> the styles can be applied to.

"Applies to" is difficult because for some values there are no
strictly machine readable definitions (e.g. "all elements, but see
prose"), and for others, you can't implement it as a domain, because
the solution for what this property applies to may be based on other
property values (e.g. "positioned elements"), or something else. Well,
in that case the domain would be the set of selected elements that has
these certain properties applied to it.

By "defining classes for the elements", you're of course right, and
this would mean modelling CSS2 selectors in RDF... obviously, because
if you want to use this as other-than-documentation-only, then you're
going to want to port all of CSS2 over to RDF.

> The range/domain stuff probably isn't necessary for the immediate
> goal of listing properties by the values they take, while breaking
> the regex probably is.


> I'd also make the RDF define each CSS property as an RDF
> property explicitly, so other RDF/sw apps could re-use them.

Good point... I should have specified a schema for it; here's a
fragment of it that will cover your concern:-

   :inherited rdfs:domain css:Property .
   css:Property rdfs:subClassOf rdf:Property .

Same domain for all the properties...

   css:Property [ daml:inverseOf rdfs:domain ]
      :values, :initialValue, :appliesTo, :inherited, :percentages,
:mediaGroups .

I'm not even going to bother with the ranges: just let me know when
RDF Core is decided on what it wants to do with datatypes!

> [...] Imagine if everyone modeled (as per DanC's example) their
> organisational chart info in RDF, so it could be queried, re-used
> etc., derrriving visual presentations of if using RDF rules [...]

Let's charter a new WG! :-)

Kindest Regards,
Sean B. Palmer
@prefix : <http://webns.net/roughterms/> .
:Sean :hasHomepage <http://purl.org/net/sbp/> .
Received on Saturday, 10 November 2001 17:12:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 16 January 2018 15:33:39 UTC