W3C home > Mailing lists > Public > www-rdf-interest@w3.org > June 2001

RE: Choosing XML Schema vs. RDF Schema

From: <Patrick.Stickler@nokia.com>
Date: Thu, 21 Jun 2001 11:13:08 +0300
Message-ID: <2BF0AD29BC31FE46B78877321144043114B428@trebe003.NOE.Nokia.com>
To: ruben.ortiz@newknow.com, www-rdf-interest@w3.org

One important distinction to understand between XML Schema
and RDF Schema is that the scope of XML Schema is a single
XML instance, whereas the scope of RDF Schema is a unified
knowledge base that may be the result of syndicating the
content from multiple XML instances (or other serializations).

Thus, an XML Schema may be more appropriate for some uses
and an RDF Schema for others.

E.g. if you have a employee record that must be completely
expressed in a single XML instance, then an XML Schema that
would e.g. require a phone number, employee number, etc.
such that e.g. only one last name is allowed, etc. could 
be used effectively.

If however, you might store different information about an
employee in different places, and those disparate sources
would each be serialized in their own XML (RDF) instance, to 
be combined for processing, then you must use RDF Schema
to e.g. ensure that only one last name or employee number
are specified, or that the address isn't missing.

RDF Schema constraints transcend the serialization level.
XML Schema constraints apply only to the serialization level.

The choice between the two are primarily governed by the
degree to which you syndicate information from multiple

Also, keep in mind that RDF Schema provides no mechanisms
for strong data type validation of literal values (e.g.
that a date value matches an explicit pattern or that an
integer value is actually an integer, etc.). XML Schema,
on the other hand, does. So generally, a combination of both
would be used; with XML Schema defining the serialization
of information (with strong data typing) and RDF Schema
defining completeness and other constraints about the full
body of knowledge.



Patrick Stickler                      Phone:  +358 3 356 0209
Senior Research Scientist             Mobile: +358 50 483 9453
Software Technology Laboratory        Fax:    +358 7180 35409
Nokia Research Center                 Video:  +358 3 356 0209 / 4227
Visiokatu 1, 33720 Tampere, Finland   Email:  patrick.stickler@nokia.com

> -----Original Message-----
> From: ext Rubén Ortiz [mailto:ruben.ortiz@newknow.com]
> Sent: 18 June, 2001 15:21
> To: 'www-rdf-interest@w3.org'
> Subject: Choosing XML Schema vs. RDF Schema
> > Hi friends.
> > 
> > I have to expose some information of my company to the 
> web.I know that
> > there are two manners of expose this information: Defining 
> and publishing
> > one or more XML Schema's, and publishing xml documents for 
> this schema.
> > The other manner is define one or more RDF Schema, and 
> publishing rdf
> > documents. 
> > 
> > I don't still understand very well the benefits of publishing the
> > information of my company as rdf documents.
> > 
> > ¿Can anybody explain me the benefits of RDF vs. XML?¿Where 
> can I read
> > anything about this?
> > 
> > thanks for all.
> > 
> > Ruben,.
> > 
> This message and any files transmitted with it are 
> confidential and intended
> solely for the use of the individual or entity to whom they 
> are addressed.
> No confidentiality or privilege is waived or lost by any 
> wrong transmission.
> If you have received this message in error, please 
> immediately destroy it
> and kindly notify the sender by reply email.
> You must not, directly or indirectly, use, disclose, 
> distribute, print, or
> copy any part of this message if you are not the intended recipient.
> Opinions, conclusions and other information in this message 
> that do not
> relate to the official business of Newknow shall be 
> understood as neither
> given nor endorsed by it. 
Received on Thursday, 21 June 2001 04:13:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:36 UTC