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

> 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
out
> the regex probably is.

Yeah...

> 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