W3C home > Mailing lists > Public > www-mobile@w3.org > June 2002

Validation in CC/PP

From: Butler, Mark <Mark_Butler@hplb.hpl.hp.com>
Date: Wed, 5 Jun 2002 17:40:01 +0100
Message-ID: <5E13A1874524D411A876006008CD059F0450189D@0-mail-1.hpl.hp.com>
To: "'w3c-ccpp-wg@w3.org'" <w3c-ccpp-wg@w3.org>, "'www-mobile@w3.org'" <www-mobile@w3.org>

In my opinion, one key problem with CC/PP as it currently stands is there is
no notion of profile validation. I've been speaking about this to people
here at HP working on RDF and they have made a number of suggestions. I'd
like to briefly outline these suggestions as I think they are of general
interest to people working on CC/PP. 

So why do we need validation? Well experience with existing CC/PP
vocabularies has shown that even with a small number of profiles, vendors
make mistakes when creating profiles. For example they get property names
wrong e.g. use PixelsAspectRatio not PixelAspectRatio. There is also no
agreement on property literal values so two vendors might use the same
literal to indicate different capabilities or different literals to indicate
the same capability e.g. "1.2.1/June 2000" and "1.2.1" are used to refer to
the same capability. 

My colleague Andy Seaborne has suggested there are three assumptions you can
make about RDF properties when performing schema validation in order to
solve the first problem:
i) Open - the "correct" validation of data against a schema - can never
actually say anything is wrong because RDFS does not make any closed world
assumptions or contain negation. 
ii) Strict - must be able to prove that a resource is the type specified,
whether by domain/range or by rdf:type declaration.
iii) Exact - the resources must have all and only the declared properties.
This is a crude way of getting a robust checking - really need the idea of
optional/mandatory properties.

So it seems to me that by default CC/PP should be using the Strict
assumption i.e. a property can only be used in a profile if it is defined in
the associated schema. In addition if a property is associated with a
component(s), then it can only appear there. In the future, we may have
vocabularies where a device must supply all the profile attributes to
conform to the vocabulary i.e. schema need to be able to define if they
should be interpreted as Exact. 

The second problem has also been encountered by the DAML community who have
explored using XML Schema (XSD) to perform data validation on literal
values. For example this validator
provides support for XML schema validation using the Oracle XDK XML Schema
Validation toolkit to verify DAML files.

For examples of how to reference XSD in RDF, see this DAML example
which uses this XML schema file
via the dt namespace prefix i.e. 


I also found this document, Annotated DAML+OIL, useful

So what do other people think about this? Would providing validation be
useful? Are there any other appropriate methods?

best regards

Mark H. Butler, PhD
Research Scientist                HP Labs Bristol
Internet: http://www-uk.hpl.hp.com/people/marbut/
Received on Wednesday, 5 June 2002 12:40:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:16:03 UTC