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

Re: RDF syntax


ignore unknown xml schema
Toni Uusitalo wrote:


> But I was shocked when I started browsing through RDF syntax spec 
> http://www.w3.org/TR/2003/WD-rdf-syntax-grammar-20030905/ and came to
>  2.5 Property Attributes where it says: "When a property element's 
> content is string literal, it may be possible to use it as an XML 
> attribute on the containing node element. This can be done for 
> multiple properties on the same node element only if the property 
> element name is not repeated "...
> 
> compared to section 2.4 Empty Property Elements' Example 5 what's 
> gained with this "abbreviation" but maybe that "the most horrible 
> markup usage award" or something?!
> 

It seems that putting literal values into an attribute was motivated by
wanting ordinary browsers not to display them - browsers will normally
display element content even for unknown element types, but will ignore
unknown attributes.  So if you wanted to embed rdf data into a web page
and  not have it displayed (so as not to confuse a humna reader),
attributes are a convenient way to do so.

As David Megginson said -

"... RDF's flexible syntax is well-designed for embedding in Web pages, 
but unfortunately, it turns out that almost no one wants to do that.

... As a result, it might be fair to conclude that RDF's syntactic
flexibility was a kind of premature optimization, a lot of work to
accomodate premature requirements."

Cheers,

Tom P



  • References:
    • RDF syntax
      • From: Toni Uusitalo <toni.uusitalo@l...>

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.