[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSD: RDF and XSchema

  • From: Paul Prescod <papresco@t...>
  • To: xml-dev@i...
  • Date: Fri, 29 May 1998 17:01:51 -0400

xsd rdf
Tim Bray wrote:
> 
> This distinction seems questionable.  I'd like (potentially) to be able to
> issue a query along the lines of "find me elements in this repository
> which have a creation-date prior to 1998 and which are of a type that
> can have ProjectNumber as a child element."  

Here is how I understand Tim's argument:

Just as the benefit of using XML as an encoding for XSchema is that code
and even full applications that have never heard of XSchemas can do
interesting things with XSchema documents, the benefit of using RDF as an
encoding for XSchemas would be to allow RDF-smart code and even
applications to do interesting things with XSchema documents without
specifically knowing about XSchema.

If this is the important argument, then the "correct" level of RDF use is
the level at which this sort of "blind underlayer use" is practical. For
instance it makes perfect sense to ask about which element types have a
HasAttribute property with value "xml:link". It also makes perfect sense
to ask about which documents have a ConformsTo property of "HTML 5.0".

But when you get into trying to do queries on content models, you quickly
run into a problem. It's easy to check the

[element] ---CanContain--> [ProjectNumber]

relationship. That's essentially just asking if ProjectNumber is anywhere
in element's content model.

But try checking that an element type can contain BOTH a ProjectNumber AND
a ProjectDescription. That's easy with regular expression theory, but I
don't think it can be expressed in RDF alone. The relationship is more
complicated than a property/value relationship.

This suggests to me that RDF breaks down at that level. I think that RDF
should be used to:

 * describe the relationship between documents and schemata.
 * describe the relationship between elements and their attributes.

But I can't see an intuitive RDF-compatible encoding for content model
relationships. Some types of relationships are just outside of RDF's
competency.

RDF-philes, do you agree?

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

Three things see no end: A loop with exit code done wrong
A semaphore untested, and the change that comes along
http://www.geezjan.org/humor/computers/threes.html



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.